support /embed/<id> youtube urls too
This commit is contained in:
parent
dadefeb8f3
commit
1340691413
1 changed files with 2 additions and 0 deletions
|
@ -89,6 +89,8 @@ class Module(ModuleManager.BaseModule):
|
|||
return self.video_details(parsed.path[1:])
|
||||
elif parsed.path == "/watch" and "v" in query:
|
||||
return self.video_details(query["v"][0])
|
||||
elif parsed.path.startswith("/embed/"):
|
||||
return self.video_details(parsed.path.split("/embed/", 1)[1])
|
||||
elif parsed.path == "/playlist" and "list" in query:
|
||||
return self.playlist_details(query["list"][0])
|
||||
|
||||
|
|
Loading…
Reference in a new issue