Fixed url test when url is None

This commit is contained in:
RemixDev 2021-08-03 18:53:15 +02:00
parent 8cea4289d1
commit 41469cee64
No known key found for this signature in database
GPG Key ID: B33962B465BDB51C
1 changed files with 1 additions and 0 deletions

View File

@ -113,6 +113,7 @@ def getPreferredBitrate(dz, track, preferredBitrate, shouldFallback, uuid=None,
formats = formats_non_360
def testURL(track, url, formatName):
if not url: return False
request = requests.head(
url,
headers={'User-Agent': USER_AGENT_HEADER},