summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/YoutubeCom.py
diff options
context:
space:
mode:
authorGravatar reinoldus <idonthave@amail.com> 2013-05-06 21:57:08 +0200
committerGravatar reinoldus <idonthave@amail.com> 2013-05-06 21:57:08 +0200
commit6ccaef8875ad3e3855717066d71ababbbc1fb67d (patch)
tree685a216ac745f701051da332df1a4455b39c42a0 /module/plugins/hoster/YoutubeCom.py
parentDebridItaliaCom: new hoster supported (diff)
downloadpyload-6ccaef8875ad3e3855717066d71ababbbc1fb67d.tar.xz
Changed the way of checking for available youtube videos
The other way didn't work, because the string doesn't always say watch-player-unavailable This strings appears in all blocked videos, like age, region blocked
Diffstat (limited to 'module/plugins/hoster/YoutubeCom.py')
-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: