support other types of streams such as rtmp
This commit is contained in:
parent
5a5b0afaaa
commit
7576e847ca
4
radio.py
4
radio.py
@ -27,9 +27,7 @@ class Radio(object):
|
||||
def play(self):
|
||||
self.playingUrl = self.queue.get()
|
||||
info = downloader.getVideoInfo(self.playingUrl)
|
||||
if info is None:
|
||||
return self.play()
|
||||
elif "direct" in info and info["direct"] == True:
|
||||
if info is None or ("direct" in info and info["direct"] == True):
|
||||
self.downloader = downloader.DirectDownloader(self.playingUrl, self.downloadFinished)
|
||||
else:
|
||||
self.downloader = downloader.YtdlpDownloader(self.playingUrl, self.downloadFinished)
|
||||
|
Loading…
x
Reference in New Issue
Block a user