diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-08-30 00:10:13 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-08-30 00:10:13 +0200 |
commit | 8bd6433cdca6b618db5ab8727ca10684cd0e88fb (patch) | |
tree | ea89bf3bafaac240dc380da6bf237b502e33ed56 /module | |
parent | Merge pull request #1773 from GammaC0de/patch-1 (diff) | |
parent | Update to resolve issue #1793 (diff) | |
download | pyload-8bd6433cdca6b618db5ab8727ca10684cd0e88fb.tar.xz |
Merge pull request #1794 from B1gG/patch-1
Update to resolve issue #1793
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/hoster/YoutubeCom.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/YoutubeCom.py b/module/plugins/hoster/YoutubeCom.py index 86cca7cf1..9c7421be1 100644 --- a/module/plugins/hoster/YoutubeCom.py +++ b/module/plugins/hoster/YoutubeCom.py @@ -36,7 +36,7 @@ class YoutubeCom(Hoster): __version__ = "0.45" __status__ = "testing" - __pattern__ = r'https?://(?:[^/]*\.)?(youtube\.com|youtu\.be)/watch\?(?:.*&)?v=.+' + __pattern__ = r'https?://(?:[^/]*\.)?(youtube\.com/watch\?v=|youtu\.be)(?:.*)' __config__ = [("quality", "sd;hd;fullhd;240p;360p;480p;720p;1080p;3072p", "Quality Setting" , "hd" ), ("fmt" , "int" , "FMT/ITAG Number (0 for auto)", 0 ), (".mp4" , "bool" , "Allow .mp4" , True ), @@ -51,7 +51,7 @@ class YoutubeCom(Hoster): ("zoidberg", "zoidberg@mujmail.cz")] - URL_REPLACEMENTS = [(r'youtu\.be/', 'youtube.com/')] + URL_REPLACEMENTS = [(r'youtu\.be/', 'youtube.com/watch?v=')] #: Invalid characters that must be removed from the file name invalid_chars = u'\u2605:?><"|\\' |