[vdown commit] r72 - trunk

0 views
Skip to first unread message

codesite...@google.com

unread,
Feb 5, 2008, 3:15:32 PM2/5/08
to vdow...@googlegroups.com
Author: kopfgeldjaeger
Date: Tue Feb 5 12:14:59 2008
New Revision: 72

Modified:
trunk/main.py

Log:
added dirty stage6 video names

Modified: trunk/main.py
==============================================================================
--- trunk/main.py (original)
+++ trunk/main.py Tue Feb 5 12:14:59 2008
@@ -137,9 +137,10 @@
self.status = 0
self.data = [WANTEDLINK, WANTEDNAME, VIDEO_FILENAME, True]
else: # if stage6 video
- video_id =
re.match("(http://)?stage6.divx.com/.*/video/([0-9]*)/.*", self.url).group(2)
+ matchMe =
re.match("(http://)?stage6.divx.com/.*/video/([0-9]*)/(.*)", self.url)
+ video_id = matchMe.group(2)
WANTEDLINK="http://video.stage6.com/%s/.divx" % (video_id)
- VIDEO_FILENAME=re.sub("$", ".divx", video_id) # add .divx
at the end
+ VIDEO_FILENAME=re.sub("$", ".divx", matchMe.group(3)) #
add .divx at the end
self.status = 0
self.data = [WANTEDLINK, video_id, VIDEO_FILENAME, False]

Reply all
Reply to author
Forward
0 new messages