bug: change variable to actually defined one and remove non-existent method call

This commit is contained in:
lexicallychallenged 2020-07-25 18:08:53 +00:00
parent 5163685216
commit 93ec5383e8
1 changed files with 2 additions and 2 deletions

View File

@ -144,8 +144,8 @@ def getPreferredBitrate(dz, track, bitrate, fallback=True):
if not fallback:
error_num = -100
formats = formats360
formats.extend(formats_non_360)
formats = formats_360
formats.update(formats_non_360)
elif int(bitrate) in formats_360:
error_num = -200
formats = formats_360