1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 12:15:40 +01:00

dashparse: we don't need to "/ 1000" one more time

This commit is contained in:
Johan Andersson 2017-09-18 14:46:57 +02:00
parent 6f2f3fbc94
commit 44703b47e8

View File

@ -124,7 +124,7 @@ def dashparse(options, res, url):
videofiles = adaptionset(temp, url) videofiles = adaptionset(temp, url)
for i in videofiles.keys(): for i in videofiles.keys():
bitrate = (int(i) + int(list(audiofiles.keys())[0])) / 1000 bitrate = (int(i) + int(list(audiofiles.keys())[0]))
options.other = "mp4" options.other = "mp4"
options.segments = videofiles[i]["segments"] options.segments = videofiles[i]["segments"]
streams[int(bitrate)] = DASH(copy.copy(options), url, bitrate, cookies=res.cookies, audio=audiofiles[list(audiofiles.keys())[0]]["files"], files=videofiles[i]["files"]) streams[int(bitrate)] = DASH(copy.copy(options), url, bitrate, cookies=res.cookies, audio=audiofiles[list(audiofiles.keys())[0]]["files"], files=videofiles[i]["files"])