projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f356cb
)
[lci] Fix extraction (closes #17274)
author
Sergey M․
<dstftw@gmail.com>
Sun, 19 Aug 2018 19:15:48 +0000
(
02:15
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 19 Aug 2018 19:15:48 +0000
(
02:15
+0700)
youtube_dl/extractor/lci.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/lci.py
b/youtube_dl/extractor/lci.py
index af34829e783b6df9c7c9d10691f245fe386b9b30..920872f5c428ad61a0b16b0fc384ecd022389432 100644
(file)
--- a/
youtube_dl/extractor/lci.py
+++ b/
youtube_dl/extractor/lci.py
@@
-20,5
+20,7
@@
class LCIIE(InfoExtractor):
def _real_extract(self, url):
video_id = self._match_id(url)
webpage = self._download_webpage(url, video_id)
- wat_id = self._search_regex(r'data-watid=[\'"](\d+)', webpage, 'wat id')
+ wat_id = self._search_regex(
+ (r'data-watid=[\'"](\d+)', r'idwat["\']?\s*:\s*["\']?(\d+)'),
+ webpage, 'wat id')
return self.url_result('wat:' + wat_id, 'Wat', wat_id)