summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-25 02:53:05 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-25 02:53:05 +0200
commite3f5280529921100f48bb8a79853bf480c7611e4 (patch)
treef1005d656b123b1b7c5ffb9e4ef1e39c7fa4460e /module/plugins/crypter
parentSpare code cosmetics (diff)
downloadpyload-e3f5280529921100f48bb8a79853bf480c7611e4.tar.xz
Replace single quotes with doubles in self.error and self.fail msg
Diffstat (limited to 'module/plugins/crypter')
-rw-r--r--module/plugins/crypter/ChipDe.py2
-rw-r--r--module/plugins/crypter/CzshareComFolder.py2
-rw-r--r--module/plugins/crypter/DataHuFolder.py2
-rw-r--r--module/plugins/crypter/DuckCryptInfo.py2
-rw-r--r--module/plugins/crypter/EmbeduploadCom.py2
-rw-r--r--module/plugins/crypter/FileserveComFolder.py2
-rw-r--r--module/plugins/crypter/FreetexthostCom.py2
-rw-r--r--module/plugins/crypter/GooGl.py2
-rw-r--r--module/plugins/crypter/LetitbitNetFolder.py2
-rw-r--r--module/plugins/crypter/LinkSaveIn.py2
-rw-r--r--module/plugins/crypter/LinkdecrypterCom.py2
-rw-r--r--module/plugins/crypter/MediafireComFolder.py2
-rw-r--r--module/plugins/crypter/MultiloadCz.py2
-rw-r--r--module/plugins/crypter/NCryptIn.py2
-rw-r--r--module/plugins/crypter/QuickshareCzFolder.py2
-rw-r--r--module/plugins/crypter/RelinkUs.py4
-rw-r--r--module/plugins/crypter/UlozToFolder.py2
-rw-r--r--module/plugins/crypter/UploadedToFolder.py2
-rw-r--r--module/plugins/crypter/XupPl.py2
19 files changed, 20 insertions, 20 deletions
diff --git a/module/plugins/crypter/ChipDe.py b/module/plugins/crypter/ChipDe.py
index 317f73e4c..4ef476895 100644
--- a/module/plugins/crypter/ChipDe.py
+++ b/module/plugins/crypter/ChipDe.py
@@ -21,7 +21,7 @@ class ChipDe(Crypter):
try:
f = re.search(r'"(http://video\.chip\.de/.+)"', self.html)
except:
- self.fail('Failed to find the URL')
+ self.fail("Failed to find the URL")
else:
self.urls = [f.group(1)]
self.logDebug("The file URL is %s" % self.urls[0])
diff --git a/module/plugins/crypter/CzshareComFolder.py b/module/plugins/crypter/CzshareComFolder.py
index 2b4d736b7..8cca84e42 100644
--- a/module/plugins/crypter/CzshareComFolder.py
+++ b/module/plugins/crypter/CzshareComFolder.py
@@ -29,4 +29,4 @@ class CzshareComFolder(Crypter):
self.urls.extend(re.findall(self.LINK_PATTERN, m.group(1)))
if not self.urls:
- self.fail('Could not extract any links')
+ self.fail("Could not extract any links")
diff --git a/module/plugins/crypter/DataHuFolder.py b/module/plugins/crypter/DataHuFolder.py
index 86e816c04..303b5835c 100644
--- a/module/plugins/crypter/DataHuFolder.py
+++ b/module/plugins/crypter/DataHuFolder.py
@@ -42,4 +42,4 @@ class DataHuFolder(SimpleCrypter):
if package_links:
self.packages = [(package_name, package_links, folder_name)]
else:
- self.fail('Could not extract any links')
+ self.fail("Could not extract any links")
diff --git a/module/plugins/crypter/DuckCryptInfo.py b/module/plugins/crypter/DuckCryptInfo.py
index 54a2bd8b9..41c245c00 100644
--- a/module/plugins/crypter/DuckCryptInfo.py
+++ b/module/plugins/crypter/DuckCryptInfo.py
@@ -27,7 +27,7 @@ class DuckCryptInfo(Crypter):
m = re.match(self.__pattern__, url)
if m is None:
- self.fail('Weird error in link')
+ self.fail("Weird error in link")
if str(m.group(1)) == "link":
self.handleLink(url)
else:
diff --git a/module/plugins/crypter/EmbeduploadCom.py b/module/plugins/crypter/EmbeduploadCom.py
index 8e4f5da07..54c8d2df0 100644
--- a/module/plugins/crypter/EmbeduploadCom.py
+++ b/module/plugins/crypter/EmbeduploadCom.py
@@ -42,7 +42,7 @@ class EmbeduploadCom(Crypter):
self.urls = self.getLocation(tmp_links)
if not self.urls:
- self.fail('Could not extract any links')
+ self.fail("Could not extract any links")
def getLocation(self, tmp_links):
diff --git a/module/plugins/crypter/FileserveComFolder.py b/module/plugins/crypter/FileserveComFolder.py
index fd4c28918..42d0f3829 100644
--- a/module/plugins/crypter/FileserveComFolder.py
+++ b/module/plugins/crypter/FileserveComFolder.py
@@ -35,4 +35,4 @@ class FileserveComFolder(Crypter):
if new_links:
self.urls = [map(lambda s: "http://fileserve.com%s" % s, new_links)]
else:
- self.fail('Could not extract any links')
+ self.fail("Could not extract any links")
diff --git a/module/plugins/crypter/FreetexthostCom.py b/module/plugins/crypter/FreetexthostCom.py
index 402a04c22..73a5c98dc 100644
--- a/module/plugins/crypter/FreetexthostCom.py
+++ b/module/plugins/crypter/FreetexthostCom.py
@@ -20,6 +20,6 @@ class FreetexthostCom(SimpleCrypter):
def getLinks(self):
m = re.search(r'<div id="contentsinner">\s*(.+)<div class="viewcount">', self.html, re.S)
if m is None:
- self.fail('Unable to extract links | Plugin may be out-of-date')
+ self.fail("Unable to extract links | Plugin may be out-of-date")
links = m.group(1)
return links.strip().split("<br />\r\n")
diff --git a/module/plugins/crypter/GooGl.py b/module/plugins/crypter/GooGl.py
index 29c5a5f5e..4f551aa42 100644
--- a/module/plugins/crypter/GooGl.py
+++ b/module/plugins/crypter/GooGl.py
@@ -27,4 +27,4 @@ class GooGl(Crypter):
if 'longUrl' in rep:
self.urls = [rep['longUrl']]
else:
- self.fail('Unable to expand shortened link')
+ self.fail("Unable to expand shortened link")
diff --git a/module/plugins/crypter/LetitbitNetFolder.py b/module/plugins/crypter/LetitbitNetFolder.py
index 7f1f8f3d0..af10f248c 100644
--- a/module/plugins/crypter/LetitbitNetFolder.py
+++ b/module/plugins/crypter/LetitbitNetFolder.py
@@ -31,4 +31,4 @@ class LetitbitNetFolder(Crypter):
self.urls.extend(re.findall(self.LINK_PATTERN, folder.group(0)))
if not self.urls:
- self.fail('Could not extract any links')
+ self.fail("Could not extract any links")
diff --git a/module/plugins/crypter/LinkSaveIn.py b/module/plugins/crypter/LinkSaveIn.py
index b22d87f38..96d737382 100644
--- a/module/plugins/crypter/LinkSaveIn.py
+++ b/module/plugins/crypter/LinkSaveIn.py
@@ -74,7 +74,7 @@ class LinkSaveIn(SimpleCrypter):
if package_links:
self.packages = [(package_name, package_links, folder_name)]
else:
- self.fail('Could not extract any links')
+ self.fail("Could not extract any links")
def isOnline(self):
diff --git a/module/plugins/crypter/LinkdecrypterCom.py b/module/plugins/crypter/LinkdecrypterCom.py
index 98efd3d84..8731d1d0f 100644
--- a/module/plugins/crypter/LinkdecrypterCom.py
+++ b/module/plugins/crypter/LinkdecrypterCom.py
@@ -29,7 +29,7 @@ class LinkdecrypterCom(Crypter):
# API not working anymore
self.urls = self.decryptHTML()
if not self.urls:
- self.fail('Could not extract any links')
+ self.fail("Could not extract any links")
def decryptAPI(self):
diff --git a/module/plugins/crypter/MediafireComFolder.py b/module/plugins/crypter/MediafireComFolder.py
index fce8be8d6..607c630e4 100644
--- a/module/plugins/crypter/MediafireComFolder.py
+++ b/module/plugins/crypter/MediafireComFolder.py
@@ -54,4 +54,4 @@ class MediafireComFolder(Crypter):
self.urls.append(url)
if not self.urls:
- self.fail('Could not extract any links')
+ self.fail("Could not extract any links")
diff --git a/module/plugins/crypter/MultiloadCz.py b/module/plugins/crypter/MultiloadCz.py
index 0c0291147..54e9343e5 100644
--- a/module/plugins/crypter/MultiloadCz.py
+++ b/module/plugins/crypter/MultiloadCz.py
@@ -40,4 +40,4 @@ class MultiloadCz(Crypter):
self.urls.extend([x[1] for x in m if x[0] not in ignored_set])
if not self.urls:
- self.fail('Could not extract any links')
+ self.fail("Could not extract any links")
diff --git a/module/plugins/crypter/NCryptIn.py b/module/plugins/crypter/NCryptIn.py
index 6c31a19f1..a9f04f45f 100644
--- a/module/plugins/crypter/NCryptIn.py
+++ b/module/plugins/crypter/NCryptIn.py
@@ -74,7 +74,7 @@ class NCryptIn(Crypter):
# Pack and return links
if not package_links:
- self.fail('Could not extract any links')
+ self.fail("Could not extract any links")
self.packages = [(package_name, package_links, folder_name)]
diff --git a/module/plugins/crypter/QuickshareCzFolder.py b/module/plugins/crypter/QuickshareCzFolder.py
index c368353f7..cb6bd4696 100644
--- a/module/plugins/crypter/QuickshareCzFolder.py
+++ b/module/plugins/crypter/QuickshareCzFolder.py
@@ -29,4 +29,4 @@ class QuickshareCzFolder(Crypter):
self.urls.extend(re.findall(self.LINK_PATTERN, m.group(1)))
if not self.urls:
- self.fail('Could not extract any links')
+ self.fail("Could not extract any links")
diff --git a/module/plugins/crypter/RelinkUs.py b/module/plugins/crypter/RelinkUs.py
index 5c9d9e5ca..184e1a38e 100644
--- a/module/plugins/crypter/RelinkUs.py
+++ b/module/plugins/crypter/RelinkUs.py
@@ -94,7 +94,7 @@ class RelinkUs(Crypter):
if package_links:
self.packages = [(package_name, package_links, folder_name)]
else:
- self.fail('Could not extract any links')
+ self.fail("Could not extract any links")
def initPackage(self, pyfile):
@@ -187,7 +187,7 @@ class RelinkUs(Crypter):
elif source == 'web':
return self.handleWEBLinks()
else:
- self.error('Unknown source [%s] (this is probably a bug)' % source)
+ self.error('Unknown source type "%s" (this is probably a bug)' % source)
def handleCNL2Links(self):
diff --git a/module/plugins/crypter/UlozToFolder.py b/module/plugins/crypter/UlozToFolder.py
index 241f382ad..8b763dd82 100644
--- a/module/plugins/crypter/UlozToFolder.py
+++ b/module/plugins/crypter/UlozToFolder.py
@@ -43,4 +43,4 @@ class UlozToFolder(Crypter):
if new_links:
self.urls = [map(lambda s: "http://ulozto.net/%s" % s, new_links)]
else:
- self.fail('Could not extract any links')
+ self.fail("Could not extract any links")
diff --git a/module/plugins/crypter/UploadedToFolder.py b/module/plugins/crypter/UploadedToFolder.py
index a2ceccc68..94afe98ea 100644
--- a/module/plugins/crypter/UploadedToFolder.py
+++ b/module/plugins/crypter/UploadedToFolder.py
@@ -30,7 +30,7 @@ class UploadedToFolder(SimpleCrypter):
if m:
plain_link = 'http://uploaded.net/' + m.group('plain')
else:
- self.fail('Parse error - Unable to find plain url list')
+ self.fail("Parse error - Unable to find plain url list")
self.html = self.load(plain_link)
package_links = self.html.split('\n')[:-1]
diff --git a/module/plugins/crypter/XupPl.py b/module/plugins/crypter/XupPl.py
index 5a42a1d1e..1cb1b0b10 100644
--- a/module/plugins/crypter/XupPl.py
+++ b/module/plugins/crypter/XupPl.py
@@ -20,4 +20,4 @@ class XupPl(Crypter):
if 'location' in header:
self.urls = [header['location']]
else:
- self.fail('Unable to find link')
+ self.fail("Unable to find link")