summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-08-20 02:15:48 +0700
committerSergey M․ <dstftw@gmail.com>2018-08-20 02:15:48 +0700
commitbf1245d236f4199497a8cbc42ff0baa5f92f9edc (patch)
tree9b6650f450226883b55e100a54a2f3035da55fa3
parent6f356cbbcf0bb3e3e3abce912d451d1852999b67 (diff)
downloadyoutube-dl-bf1245d236f4199497a8cbc42ff0baa5f92f9edc.tar.gz
youtube-dl-bf1245d236f4199497a8cbc42ff0baa5f92f9edc.tar.xz
youtube-dl-bf1245d236f4199497a8cbc42ff0baa5f92f9edc.zip
[lci] Fix extraction (closes #17274)
-rw-r--r--youtube_dl/extractor/lci.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/lci.py b/youtube_dl/extractor/lci.py
index af34829e7..920872f5c 100644
--- 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)