Fix for broken thumbnail url

This commit is contained in:
Jürn Brodersen 2015-08-08 18:18:55 +02:00
parent 44124f0268
commit 63f14d8b73

View File

@ -151,6 +151,11 @@ class WDRIE(InfoExtractor):
video_url = flashvars['dslSrc'][0]
title = flashvars['trackerClipTitle'][0]
thumbnail = flashvars['startPicture'][0] if 'startPicture' in flashvars else None
if thumbnail is not None:
double_url_regex = r'(' + re.escape(page_url) + r'*){2,}'
thumbnail = re.sub(double_url_regex, page_url, thumbnail)
is_live = flashvars.get('isLive', ['0'])[0] == '1'
if is_live: