youtube playlist info should be returning URL as a tuple item

This commit is contained in:
jesopo 2019-10-18 16:40:31 +01:00
parent bbc19f9cfe
commit ecca7927fe

View file

@ -79,9 +79,9 @@ class Module(ModuleManager.BaseModule):
content = self.get_playlist_page(playlist_id, "contentDetails")
count = content.data["items"][0]["contentDetails"]["itemCount"]
return "%s - %s (%d %s) %s" % (snippet["channelTitle"],
snippet["title"], count, "video" if count == 1 else "videos",
URL_PLAYLIST % playlist_id)
return "%s - %s (%d %s)" % (snippet["channelTitle"],
snippet["title"], count, "video" if count == 1 else "videos"
), URL_PLAYLIST % playlist_id
def _from_url(self, url):
parsed = urllib.parse.urlparse(url)