From 3181398df521bc60892e18372efbcd179d4274db Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 7 Mar 2021 10:58:18 +0000 Subject: [PATCH] Allow video and audio in media timeline --- posts.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/posts.py b/posts.py index a2340eaa1..d010d8d23 100644 --- a/posts.py +++ b/posts.py @@ -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)