From 7576e847cadea73e56fd1540b07e0a53e4185b1c Mon Sep 17 00:00:00 2001 From: zuckerberg <5-zuckerberg@users.noreply.git.neet.dev> Date: Wed, 8 Sep 2021 20:58:54 -0400 Subject: [PATCH] support other types of streams such as rtmp --- radio.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/radio.py b/radio.py index 04c1332..ad5d248 100644 --- a/radio.py +++ b/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)