summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-05-07 00:00:13 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2013-05-07 00:00:13 +0200
commit474253da9fe24316c6072790bb90a075451a1ab7 (patch)
tree685a216ac745f701051da332df1a4455b39c42a0
parentDebridItaliaCom: new hoster supported (diff)
parentChanged the way of checking for available youtube videos (diff)
downloadpyload-474253da9fe24316c6072790bb90a075451a1ab7.tar.xz
Merge pull request #105 from reinoldus/stable
Changed the way of checking for available youtube videos
-rw-r--r--module/plugins/hoster/YoutubeCom.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/plugins/hoster/YoutubeCom.py b/module/plugins/hoster/YoutubeCom.py
index 2fb1e5264..e2ec25ca4 100644
--- a/module/plugins/hoster/YoutubeCom.py
+++ b/module/plugins/hoster/YoutubeCom.py
@@ -76,7 +76,7 @@ class YoutubeCom(Hoster):
def process(self, pyfile):
html = self.load(pyfile.url, decode=True)
- if "watch-player-unavailable" in html:
+ if '<h1 id="unavailable-message" class="message">' in html:
self.offline()
if "We have been receiving a large volume of requests from your network." in html: