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