diff options
author | Stefano <l.stickell@yahoo.it> | 2013-04-30 20:25:20 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-04-30 20:25:20 +0200 |
commit | cff3a4897e312a904a43ca0155dab922c6723d3a (patch) | |
tree | 9ef461736225452963eee83fe7ec96628f8dbd13 | |
parent | RapidgatorNet: convert unicode to integer (diff) | |
download | pyload-cff3a4897e312a904a43ca0155dab922c6723d3a.tar.xz |
SerienjunkiesOrg: fail if the link is blocked by the GeoIP
see #93
-rw-r--r-- | module/plugins/crypter/SerienjunkiesOrg.py | 2 |
1 files changed, 2 insertions, 0 deletions
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)) |