Basic Regex! Fixed

This commit is contained in:
Vijay Singh 2017-01-10 09:00:26 +05:30 committed by GitHub
parent 9637acfac1
commit 89258b840b

View File

@ -64,7 +64,7 @@ class OpenloadIE(InfoExtractor):
raise ExtractorError('File not found', expected=True)
ol_id = self._search_regex(
'<span[^>]+id="[^"]*"[^>]*>([^<]+)</span>',
'<span[^>]+id="[^"]+"[^>]*>([^<]+)</span>',
webpage, 'openload ID')
first_three_chars = int(float(ol_id[0:][:3]))