diff options
author | reinoldus <idonthave@amail.com> | 2013-05-06 21:57:08 +0200 |
---|---|---|
committer | reinoldus <idonthave@amail.com> | 2013-05-06 21:57:08 +0200 |
commit | 6ccaef8875ad3e3855717066d71ababbbc1fb67d (patch) | |
tree | 685a216ac745f701051da332df1a4455b39c42a0 /module/plugins/hoster/YoutubeCom.py | |
parent | DebridItaliaCom: new hoster supported (diff) | |
download | pyload-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.py | 2 |
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: |