From f644218e3a48065108305ca654cdf603e38bc5b4 Mon Sep 17 00:00:00 2001 From: girst Date: Sat, 25 Jul 2020 01:25:50 +0200 Subject: [PATCH] fix premiere video handling isLiveContent==False, isLive==True --- app/common/common.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/common/common.py b/app/common/common.py index 5a6884e..f251e4d 100644 --- a/app/common/common.py +++ b/app/common/common.py @@ -189,9 +189,7 @@ def get_video_info(video_id, sts=0, algo=""): # without videoDetails, there's only the error message maybe_metadata = metadata if 'videoDetails' in metadata else None return None, maybe_metadata, 'player', player_error - if metadata['videoDetails']['isLiveContent'] and \ - (metadata['videoDetails'].get('isLive', False) or \ - metadata['videoDetails'].get('isPostLiveDvr', False)): + if metadata['videoDetails'].get('isLive', False): return None, metadata, 'livestream', None if not 'formats' in metadata['streamingData']: -- 2.39.3