mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-18 04:04:50 -05:00
[youporn] Fix sources regex
This commit is contained in:
parent
d627cec608
commit
002c755248
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ def _real_extract(self, url):
|
||||||
links = []
|
links = []
|
||||||
|
|
||||||
sources = self._search_regex(
|
sources = self._search_regex(
|
||||||
r'sources\s*:\s*({.+?})', webpage, 'sources', default=None)
|
r'(?s)sources\s*:\s*({.+?})', webpage, 'sources', default=None)
|
||||||
if sources:
|
if sources:
|
||||||
for _, link in re.findall(r'[^:]+\s*:\s*(["\'])(http.+?)\1', sources):
|
for _, link in re.findall(r'[^:]+\s*:\s*(["\'])(http.+?)\1', sources):
|
||||||
links.append(link)
|
links.append(link)
|
||||||
|
|
Loading…
Reference in a new issue