1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-26 10:24:33 +01:00

Slight changes to enable scanning for videos in pages on logging in.

This commit is contained in:
nindogo 2019-06-27 11:08:22 +03:00
parent 8901527aae
commit 88bf7eb9bb

View File

@ -80,7 +80,7 @@ class PornTrexIE(PornTrexBaseIE):
thumbnails.append({'url': thumbs}) thumbnails.append({'url': thumbs})
formats = [] 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: for movie_url in movie_urls:
formats.append({'url': movie_url, formats.append({'url': movie_url,
'height': int(self._search_regex(r'_(\d+)p\.', 'height': int(self._search_regex(r'_(\d+)p\.',