mirror of https://gitlab.com/bashrc2/epicyon
Allow video and audio in media timeline
parent
ca43402bed
commit
3181398df5
5
posts.py
5
posts.py
|
@ -3055,7 +3055,10 @@ def _addPostStringToTimeline(postStr: str, boxname: str,
|
||||||
return False
|
return False
|
||||||
elif boxname == 'tlmedia':
|
elif boxname == 'tlmedia':
|
||||||
if '"Create"' in postStr:
|
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
|
return False
|
||||||
# add the post to the dictionary
|
# add the post to the dictionary
|
||||||
postsInBox.append(postStr)
|
postsInBox.append(postStr)
|
||||||
|
|
Loading…
Reference in New Issue