mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-26 18:34:32 +01:00
Clean up regex as advised in review.
Changed regex to reduce the chance of getting string if it is an empty string.
This commit is contained in:
parent
5c27f88745
commit
8901527aae
@ -125,7 +125,7 @@ class PornTrexPlayListIE(PornTrexBaseIE):
|
|||||||
playlist_id = self._match_id(url)
|
playlist_id = self._match_id(url)
|
||||||
webpage = self._download_webpage(url, playlist_id)
|
webpage = self._download_webpage(url, playlist_id)
|
||||||
|
|
||||||
all_urls = re.findall(r'data-playlist-item="(.*?)"', webpage)
|
all_urls = re.findall(r'data-playlist-item=["\'](https?://www\.porntrex\.com/[^\'"]+)', webpage)
|
||||||
|
|
||||||
entries = []
|
entries = []
|
||||||
for this_url in all_urls:
|
for this_url in all_urls:
|
||||||
|
Loading…
Reference in New Issue
Block a user