From b863b5aa0af8cdbfa566923fc95009c357461ae6 Mon Sep 17 00:00:00 2001 From: sebnapi Date: Sat, 9 May 2009 13:43:37 +0000 Subject: ordnung muss sein --- Plugins/RapidshareCom.py | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 Plugins/RapidshareCom.py (limited to 'Plugins/RapidshareCom.py') diff --git a/Plugins/RapidshareCom.py b/Plugins/RapidshareCom.py new file mode 100755 index 000000000..a3ca09e87 --- /dev/null +++ b/Plugins/RapidshareCom.py @@ -0,0 +1,37 @@ +import urllib2 +import urllib +import re +import time + +plugin_name = "Rapidshare.com" +plugin_type = "hoster" +plugin_pattern = r"http://(?:www.)?rapidshare.com/files/" + +def get_file_url(url): + root_url = urllib2.urlopen(url).read() + + if re.search(r".*The File could not be found.*", root_url) != None or re.search(r"(

This limit is reached.

)", root_url) or re.search(r"(.*is momentarily not available.*)", root_url): + return ("missing", url) + else: + last_url = urllib2.urlopen(re.search(r"