Share Pastebin
Guest
Public paste!

clovanzo

By: a guest | Aug 31st, 2009 | Syntax: Python | Size: 0.68 KB | Hits: 622 | Expires: Never
Copy text to clipboard
  1.             # Indowebster.com Video file caching is handled here. www[0-9][0-9]\.indowebster\.com
  2.             if enable_indowebster_cache:
  3.                 if re.compile('www[0-9][0-9]\.indowebster\.com').search(host) and (path.find('.mp3')) > -1 :
  4.                     type = 'INDOWEBSTER'
  5.                     try:
  6.                         video_id = path.strip('/').split('/')[-1]
  7.                     except:
  8.                         log(format%(pid, client, '-', 'URL_ERROR', type, 'Error in parsing the url ' + new_url))
  9.                         video_id = None
  10.                     if video_id is not None:
  11.                         new_url = submit_video(pid, client, type, url, video_id)