Fixes bug with audo urls

This commit is contained in:
pluja 2020-10-05 17:00:20 +02:00
parent 66f81c3608
commit 7711c07739

View File

@ -139,10 +139,6 @@ def get_video_primary_info(datad, datai):
isUpcoming = False isUpcoming = False
premieres = False premieres = False
views = details['viewCount'] views = details['viewCount']
if not isLive:
audioURL = audio_urls[-1]
else:
audioURL = "#"
ydl = YoutubeDL() ydl = YoutubeDL()
@ -169,7 +165,11 @@ def get_video_primary_info(datad, datai):
} }
audio_urls.append(audio_inf) audio_urls.append(audio_inf)
except: except:
continue continue
if not isLive:
audioURL = audio_urls[-1]
else:
audioURL = "#"
else: # If it is a scheduled video else: # If it is a scheduled video
audio_urls = False audio_urls = False
formats = False formats = False