projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[ivi] Modernize
[youtube-dl]
/
youtube_dl
/
extractor
/
izlesene.py
diff --git
a/youtube_dl/extractor/izlesene.py
b/youtube_dl/extractor/izlesene.py
index a83dd249f6cd5694884158de6471802df6fe2d01..d16d483eeb0d533debe041b7cd6c7b4826d41dde 100644
(file)
--- a/
youtube_dl/extractor/izlesene.py
+++ b/
youtube_dl/extractor/izlesene.py
@@
-5,11
+5,11
@@
import re
from .common import InfoExtractor
from ..utils import (
from .common import InfoExtractor
from ..utils import (
- get_element_by_id,
- parse_iso8601,
determine_ext,
determine_ext,
- int_or_none,
float_or_none,
float_or_none,
+ get_element_by_id,
+ int_or_none,
+ parse_iso8601,
str_to_int,
)
str_to_int,
)
@@
-30,7
+30,7
@@
class IzleseneIE(InfoExtractor):
'description': 'md5:253753e2655dde93f59f74b572454f6d',
'thumbnail': 're:^http://.*\.jpg',
'uploader_id': 'pelikzzle',
'description': 'md5:253753e2655dde93f59f74b572454f6d',
'thumbnail': 're:^http://.*\.jpg',
'uploader_id': 'pelikzzle',
- 'timestamp': 1404
2986
98,
+ 'timestamp': 1404
3022
98,
'upload_date': '20140702',
'duration': 95.395,
'age_limit': 0,
'upload_date': '20140702',
'duration': 95.395,
'age_limit': 0,
@@
-46,7
+46,7
@@
class IzleseneIE(InfoExtractor):
'description': 'Tarkan Dortmund 2006 Konseri',
'thumbnail': 're:^http://.*\.jpg',
'uploader_id': 'parlayankiz',
'description': 'Tarkan Dortmund 2006 Konseri',
'thumbnail': 're:^http://.*\.jpg',
'uploader_id': 'parlayankiz',
- 'timestamp': 11633
185
93,
+ 'timestamp': 11633
221
93,
'upload_date': '20061112',
'duration': 253.666,
'age_limit': 0,
'upload_date': '20061112',
'duration': 253.666,
'age_limit': 0,
@@
-55,15
+55,15
@@
class IzleseneIE(InfoExtractor):
]
def _real_extract(self, url):
]
def _real_extract(self, url):
- mobj = re.match(self._VALID_URL, url)
- video_id = mobj.group('id')
- url = 'http://www.izlesene.com/video/%s' % video_id
+ video_id = self._match_id(url)
+ url = 'http://www.izlesene.com/video/%s' % video_id
webpage = self._download_webpage(url, video_id)
title = self._og_search_title(webpage)
description = self._og_search_description(webpage)
webpage = self._download_webpage(url, video_id)
title = self._og_search_title(webpage)
description = self._og_search_description(webpage)
- thumbnail = self._og_search_thumbnail(webpage)
+ thumbnail = self._proto_relative_url(
+ self._og_search_thumbnail(webpage), scheme='http:')
uploader = self._html_search_regex(
r"adduserUsername\s*=\s*'([^']+)';",
uploader = self._html_search_regex(
r"adduserUsername\s*=\s*'([^']+)';",