From cff3a4897e312a904a43ca0155dab922c6723d3a Mon Sep 17 00:00:00 2001 From: Stefano Date: Tue, 30 Apr 2013 20:25:20 +0200 Subject: SerienjunkiesOrg: fail if the link is blocked by the GeoIP see #93 --- module/plugins/crypter/SerienjunkiesOrg.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'module/plugins/crypter/SerienjunkiesOrg.py') diff --git a/module/plugins/crypter/SerienjunkiesOrg.py b/module/plugins/crypter/SerienjunkiesOrg.py index 0506d90fb..5d887de02 100644 --- a/module/plugins/crypter/SerienjunkiesOrg.py +++ b/module/plugins/crypter/SerienjunkiesOrg.py @@ -30,6 +30,8 @@ class SerienjunkiesOrg(Crypter): def getSJSrc(self, url): src = self.req.load(str(url)) + if "This website is not available in your country" in src: + self.fail("Not available in your country") if not src.find("Enter Serienjunkies") == -1: sleep(1) src = self.req.load(str(url)) -- cgit v1.2.3