1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-23 00:54:31 +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:
nindogo 2019-06-27 10:42:32 +03:00
parent 5c27f88745
commit 8901527aae

View File

@ -125,7 +125,7 @@ class PornTrexPlayListIE(PornTrexBaseIE):
playlist_id = self._match_id(url)
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 = []
for this_url in all_urls: