mirror of
https://gitlab.com/RemixDev/deemix-py.git
synced 2025-02-15 10:00:11 +00:00
Made downloadObject optional in streamTrack
This commit is contained in:
parent
54374c87e2
commit
7e6202b7f0
|
@ -41,7 +41,7 @@ def reverseStreamURL(url):
|
|||
return reverseStreamPath(urlPart)
|
||||
|
||||
def streamTrack(outputStream, track, start=0, downloadObject=None, listener=None):
|
||||
if downloadObject.isCanceled: raise DownloadCanceled
|
||||
if downloadObject and downloadObject.isCanceled: raise DownloadCanceled
|
||||
headers= {'User-Agent': USER_AGENT_HEADER}
|
||||
chunkLength = start
|
||||
isCryptedStream = "/mobile/" in track.downloadURL or "/media/" in track.downloadURL
|
||||
|
|
Loading…
Reference in a new issue