diff options
| author | 2016-03-31 13:36:26 +0100 | |
|---|---|---|
| committer | 2016-03-31 13:36:26 +0100 | |
| commit | 4bca2cb95deefa018b9ec4ad00d20a82b0648fb9 (patch) | |
| tree | 5b71d256276817d55bfe5657f53f22f77d0f79a6 /modules | |
| parent | added command line options to start.py for config file and database file loca... (diff) | |
fixed the frankly ridiculously wrong youtube url regex in youtube.py.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/youtube.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/youtube.py b/modules/youtube.py index 350e7863..3c766db8 100644 --- a/modules/youtube.py +++ b/modules/youtube.py @@ -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) |
