From 6ccaef8875ad3e3855717066d71ababbbc1fb67d Mon Sep 17 00:00:00 2001 From: reinoldus Date: Mon, 6 May 2013 21:57:08 +0200 Subject: 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 --- module/plugins/hoster/YoutubeCom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/plugins') 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 '

' in html: self.offline() if "We have been receiving a large volume of requests from your network." in html: -- cgit v1.2.3