fixed mistype

#32
This commit is contained in:
RemixDev 2021-12-28 08:46:01 +01:00
parent e94a3ab28f
commit 32a31d8842
No known key found for this signature in database
GPG Key ID: B33962B465BDB51C
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ def getPreferredBitrate(dz, track, preferredBitrate, shouldFallback, feelingLuck
url = None url = None
# Check the track with the legit method # Check the track with the legit method
wrongLicense = ( wrongLicense = (
(formatName == "FLAC" or formatName.startswidth("MP4_RA")) and not dz.current_user.get('can_stream_lossless') or \ (formatName == "FLAC" or formatName.startswith("MP4_RA")) and not dz.current_user.get('can_stream_lossless') or \
formatName == "MP3_320" and not dz.current_user.get('can_stream_hq') formatName == "MP3_320" and not dz.current_user.get('can_stream_hq')
) )
if track.filesizes.get(formatName.lower()) and track.filesizes[formatName.lower()] != "0": if track.filesizes.get(formatName.lower()) and track.filesizes[formatName.lower()] != "0":