Modified:
trunk/main.py
Log:
fix problem with stage6 (url renamed)
Modified: trunk/main.py
==============================================================================
--- trunk/main.py (original)
+++ trunk/main.py Sun Jan 13 10:03:03 2008
@@ -93,13 +93,13 @@
class get_data(threading.Thread):
"""
- Fetch data from videograb.de
+ Fetch data from nachrichtenmann.de/cgi-bin/video/video.cgi
FIXME: make this a bit prettier
"""
def __init__(self, url):
threading.Thread.__init__(self)
self.status = -1
- self.url = url
+ self.url = url.replace("www.stage6.com", "stage6.divx.com").replace("stage6.com", "stage6.divx.com")
self.data = [None, None, None, None]
def run(self):
if re.match("(http://)?stage6.divx.com/.*/video/[0-9]*/.*",
self.url) == None: # if no stage6 video