for mobile urls

This commit is contained in:
Andrea de Marco 2014-05-31 10:00:42 +02:00
parent 454ff7dcc0
commit 90ba3b0b53

View file

@ -206,7 +206,7 @@ class YoutubeBackend(VideoBackend):
Backend for YouTube URLs.
"""
re_detect = re.compile(
r'^(http(s)?://)?(www\.)?youtu(\.?)be(\.com)?/.*', re.I
r'^(http(s)?://)?(www\.|m\.)?youtu(\.?)be(\.com)?/.*', re.I
)
re_code = re.compile(