mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-12-26 08:17:54 +01:00
Small changes done to make things cleaner.
Hopefully also make things pythonic.
This commit is contained in:
parent
151adc3216
commit
54db14c4ea
@ -81,7 +81,7 @@ class PornTrexIE(PornTrexBaseIE):
|
||||
formats.append({'url': movie_url,
|
||||
'ext': movie_url.split('.')[-1],
|
||||
'protocol': movie_url.split(':')[0],
|
||||
'height': int(self._search_regex(r'_(\d+)p.', movie_url.split('/')[8], 'height', default='480')),
|
||||
'height': int(self._search_regex(r'_(\d+)p.', movie_url.split('/')[-1], 'height', default='480')),
|
||||
})
|
||||
self._sort_formats(formats)
|
||||
|
||||
@ -129,7 +129,7 @@ class PornTrexPlayListIE(PornTrexBaseIE):
|
||||
|
||||
return {
|
||||
'_type': 'playlist',
|
||||
'id': url.split('/')[4],
|
||||
'id': playlist_id,
|
||||
'title': self._html_search_regex(
|
||||
r'<title>(.+?)</title>',
|
||||
webpage,
|
||||
|
Loading…
Reference in New Issue
Block a user