Merge pull request 'bug: change variable to actually defined one and remove non-existent method call' (#4) from lexicallychallenged/deemix:fix-formats360 into main

Reviewed-on: https://codeberg.org/RemixDev/deemix/pulls/4
This commit is contained in:
RemixDev 2020-07-25 20:11:15 +02:00
commit 04827898b0
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: if not fallback:
error_num = -100 error_num = -100
formats = formats360 formats = formats_360
formats.extend(formats_non_360) formats.update(formats_non_360)
elif int(bitrate) in formats_360: elif int(bitrate) in formats_360:
error_num = -200 error_num = -200
formats = formats_360 formats = formats_360