fixed "getPreferredBitrare" typo
This commit is contained in:
parent
1a1883fabb
commit
e9167ccc54
|
@ -23,7 +23,7 @@ extensions = {
|
||||||
13: '.mp4'
|
13: '.mp4'
|
||||||
}
|
}
|
||||||
|
|
||||||
def getPreferredBitrare(filesize, bitrate):
|
def getPreferredBitrate(filesize, bitrate):
|
||||||
bitrateFound = False
|
bitrateFound = False
|
||||||
selectedFormat = 0
|
selectedFormat = 0
|
||||||
selectedFilesize = 0
|
selectedFilesize = 0
|
||||||
|
@ -249,7 +249,7 @@ def downloadTrackObj(trackAPI, settings, overwriteBitrate=False, extraTrack=None
|
||||||
|
|
||||||
# Get the selected bitrate
|
# Get the selected bitrate
|
||||||
bitrate = overwriteBitrate if overwriteBitrate else settings['maxBitrate']
|
bitrate = overwriteBitrate if overwriteBitrate else settings['maxBitrate']
|
||||||
(format, filesize) = getPreferredBitrare(track['filesize'], bitrate)
|
(format, filesize) = getPreferredBitrate(track['filesize'], bitrate)
|
||||||
track['selectedFormat'] = format
|
track['selectedFormat'] = format
|
||||||
track['selectedFilesize'] = filesize
|
track['selectedFilesize'] = filesize
|
||||||
track['album']['bitrate'] = format
|
track['album']['bitrate'] = format
|
||||||
|
|
Loading…
Reference in New Issue