summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/YoutubeCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-02 22:47:07 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-02 22:47:07 +0100
commit772e47ef806d18fd209e910be0535bce7c07dc7b (patch)
treedc6c2027e6e306da70817be917a7c426dc8fd044 /module/plugins/hoster/YoutubeCom.py
parent[LetitbitNet][Share4webCom][UnibytesCom] https support + use urljoin + update... (diff)
downloadpyload-772e47ef806d18fd209e910be0535bce7c07dc7b.tar.xz
Update all other plugins
Diffstat (limited to 'module/plugins/hoster/YoutubeCom.py')
-rw-r--r--module/plugins/hoster/YoutubeCom.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/YoutubeCom.py b/module/plugins/hoster/YoutubeCom.py
index 3dca83d7f..565aa63f0 100644
--- a/module/plugins/hoster/YoutubeCom.py
+++ b/module/plugins/hoster/YoutubeCom.py
@@ -54,7 +54,7 @@ class YoutubeCom(Hoster):
("zoidberg", "zoidberg@mujmail.cz")]
- FILE_URL_REPLACEMENTS = [(r'youtu\.be/', 'youtube.com/')]
+ URL_REPLACEMENTS = [(r'youtu\.be/', 'youtube.com/')]
# Invalid characters that must be removed from the file name
invalidChars = u'\u2605:?><"|\\'
@@ -88,7 +88,7 @@ class YoutubeCom(Hoster):
def process(self, pyfile):
- pyfile.url = replace_patterns(pyfile.url, self.FILE_URL_REPLACEMENTS)
+ pyfile.url = replace_patterns(pyfile.url, self.URL_REPLACEMENTS)
html = self.load(pyfile.url, decode=True)
if re.search(r'<div id="player-unavailable" class="\s*player-width player-height\s*">', html):