Permalink
Browse files

Added deprecation comment to blip_fixer.py script.

  • Loading branch information...
1 parent 817845e commit 414972ecb135915d3cce2f3957eebf29dcd07d71 Paul Burt committed Oct 13, 2011
Showing with 8 additions and 1 deletion.
  1. +8 −1 akvo/blip_fixer.py
View
@@ -19,11 +19,18 @@ def get_new_url(url):
Returns a new-style URL string or None
+ IMPORTANT:
+
+ This, in fact, doesn't work because new-style URLs cannot be predicted based
+ on anything in the old URL.
+
+ This script should be deprecated.
+
"""
parsed_url = urlparse(url)
if parsed_url.netloc.endswith('.blip.tv'): # matches *.blip.tv but not ^blip.tv
user, video_id = parsed_url.netloc.split('.')[0], parsed_url.path
- return u'http://blip.tv/%s/%s' % (user, video_id)
+ return u'http://blip.tv/%s%s' % (user, video_id)
return

0 comments on commit 414972e

Please sign in to comment.