youtube playlist info should be returning URL as a tuple item
This commit is contained in:
parent
bbc19f9cfe
commit
ecca7927fe
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue