Allow video and audio in media timeline

main
Bob Mottram 2021-03-07 10:58:18 +00:00
parent ca43402bed
commit 3181398df5
1 changed files with 4 additions and 1 deletions

View File

@ -3055,7 +3055,10 @@ def _addPostStringToTimeline(postStr: str, boxname: str,
return False
elif boxname == 'tlmedia':
if '"Create"' in postStr:
if 'mediaType' not in postStr or 'image/' not in postStr:
if ('mediaType' not in postStr or \
('image/' not in postStr and
'video/' not in postStr and
'audio/' not in postStr)):
return False
# add the post to the dictionary
postsInBox.append(postStr)