add video title command
This commit is contained in:
parent
da612c58c4
commit
4d82163b41
6 changed files with 80 additions and 8 deletions
|
|
@ -29,8 +29,12 @@ class Videoob(ConsoleApplication):
|
|||
self.weboob.load_backends(ICapVideoProvider)
|
||||
return self.process_command(*argv[1:])
|
||||
|
||||
@ConsoleApplication.command('Get video URL from page URL')
|
||||
def command_video_url(self, page_url):
|
||||
self.weboob.load_backends(ICapVideoProvider)
|
||||
for name, backend in self.weboob.iter_backends():
|
||||
@ConsoleApplication.command('Get video file URL from page URL')
|
||||
def command_file_url(self, page_url):
|
||||
for name, backend in self.weboob.iter_backends(ICapVideoProvider):
|
||||
print backend.get_video_url(page_url)
|
||||
|
||||
@ConsoleApplication.command('Get video title from page URL')
|
||||
def command_title(self, page_url):
|
||||
for name, backend in self.weboob.iter_backends(ICapVideoProvider):
|
||||
print backend.get_video_title(page_url)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue