mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-22 00:34:31 +01:00
A few more clean ups to porntrex.py.
This commit is contained in:
parent
efa80dfec7
commit
54e063db97
@ -80,8 +80,10 @@ class PornTrexIE(PornTrexBaseIE):
|
||||
thumbnails.append({'url': thumbs})
|
||||
|
||||
formats = []
|
||||
movie_urls = re.findall(r"'(https://www.porntrex.com/get_file/.*?)/'", webpage)
|
||||
movie_urls = re.findall(r"[\"'](https://www.porntrex.com/get_file/.*?)/[\"']", webpage)
|
||||
for movie_url in movie_urls:
|
||||
if re.search(r'screenshots', movie_url):
|
||||
continue
|
||||
formats.append({'url': movie_url,
|
||||
'height': int(self._search_regex(r'_(\d+)p\.',
|
||||
movie_url,
|
||||
|
Loading…
Reference in New Issue
Block a user