support URLs and IDs with '-' in
This commit is contained in:
parent
eedb2a7b55
commit
31863d3171
4 changed files with 4 additions and 4 deletions
|
|
@ -25,7 +25,7 @@ from weboob.tools.browser import BasePage
|
|||
from weboob.capabilities.video import Video
|
||||
|
||||
class VideoPage(BasePage):
|
||||
URL_REGEX = re.compile(r"https?://[w\.]*youtube.com/watch\?v=(\w+)")
|
||||
URL_REGEX = re.compile(r"https?://[w\.]*youtube.com/watch\?v=([\w-]+)")
|
||||
VIDEO_SIGNATURE_REGEX = re.compile(r'&t=([^ ,&]*)')
|
||||
|
||||
def on_loaded(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue