support URLs and IDs with '-' in
This commit is contained in:
parent
eedb2a7b55
commit
31863d3171
4 changed files with 4 additions and 4 deletions
|
|
@ -44,7 +44,7 @@ class YoutubeBrowser(BaseBrowser):
|
|||
return self.page.iter_videos()
|
||||
|
||||
def get_video(self, _id):
|
||||
if re.match('^\w+$', _id):
|
||||
if re.match('^[\w-]+$', _id):
|
||||
url = 'http://www.youtube.com/watch?v=%s' % _id
|
||||
else:
|
||||
url = _id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue