summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/TurbouploadCom.py
diff options
context:
space:
mode:
authorGravatar zoidberg10 <zoidberg@mujmail.cz> 2011-12-20 18:40:01 +0100
committerGravatar zoidberg10 <zoidberg@mujmail.cz> 2011-12-20 18:40:01 +0100
commit942437162dabde1fa2d35452c76061889f47ec90 (patch)
tree1afaab2bbcf1c8f3ab9818a52d868148f2f84132 /module/plugins/hoster/TurbouploadCom.py
parentincrease version numbers (diff)
downloadpyload-942437162dabde1fa2d35452c76061889f47ec90.tar.xz
update bloody mediafire, fix share-rapid file info
Diffstat (limited to 'module/plugins/hoster/TurbouploadCom.py')
-rw-r--r--module/plugins/hoster/TurbouploadCom.py44
1 files changed, 44 insertions, 0 deletions
diff --git a/module/plugins/hoster/TurbouploadCom.py b/module/plugins/hoster/TurbouploadCom.py
new file mode 100644
index 000000000..59939d3c7
--- /dev/null
+++ b/module/plugins/hoster/TurbouploadCom.py
@@ -0,0 +1,44 @@
+# -*- coding: utf-8 -*-
+"""
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License,
+ or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ See the GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, see <http://www.gnu.org/licenses/>.
+
+ @author: zoidberg
+"""
+
+import re
+from module.plugins.internal.SimpleHoster import create_getInfo
+from module.plugins.hoster.EasybytezCom import EasybytezCom
+
+class TurbouploadCom(EasybytezCom):
+ __name__ = "TurbouploadCom"
+ __type__ = "hoster"
+ __pattern__ = r"http://(?:\w*\.)?turboupload.com/(\w+).*"
+ __version__ = "0.01"
+ __description__ = """turboupload.com"""
+ __author_name__ = ("zoidberg")
+ __author_mail__ = ("zoidberg@mujmail.cz")
+
+ # shares code with EasybytezCom
+
+ DIRECT_LINK_PATTERN = r'<a href="(http://turboupload.com/files/[^"]+)">\1</a>'
+
+ def handleFree(self):
+ self.html = self.load(self.pyfile.url, post = self.getPostParameters(), ref = True, cookies = True)
+ found = re.search(self.DIRECT_LINK_PATTERN, self.html)
+ if not found: self.parseError('Download Link')
+ url = found.group(1)
+ self.logDebug('URL: ' + url)
+ self.download(url)
+
+getInfo = create_getInfo(TurbouploadCom) \ No newline at end of file