Browse Source

[youporn] Fix sources regex

totalwebcasting
Sergey M․ 9 years ago
parent
commit
002c755248
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/youporn.py

+ 1
- 1
youtube_dl/extractor/youporn.py View File

@ -75,7 +75,7 @@ class YouPornIE(InfoExtractor):
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…
Cancel
Save