fixed the frankly ridiculously wrong youtube url regex in youtube.py.

This commit is contained in:
jesopo 2016-03-31 13:36:26 +01:00
parent 19083d3bf6
commit 4bca2cb95d
No known key found for this signature in database
GPG key ID: 0BBDEB2AEFCFFCB3

View file

@ -4,7 +4,7 @@ import re
import Utils
REGEX_YOUTUBE = re.compile(
"https?://(?:www.)?(?:youtu.be/|youtube.com/watch\?[^\S]*v=)(\w{11})",
"https?://(?:www.)?(?:youtu.be/|youtube.com/watch\?[\S]*v=)([\w\-]{11})",
re.I)
REGEX_ISO8601 = re.compile("PT(\d+H)?(\d+M)?(\d+S)?", re.I)