]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[afreecatv] Update referrer (closes #15947)
authorSergey M․ <dstftw@gmail.com>
Sat, 24 Mar 2018 07:21:08 +0000 (14:21 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 24 Mar 2018 07:21:08 +0000 (14:21 +0700)
youtube_dl/extractor/afreecatv.py

index df2a3fc4a2a24d2feeb81083d2414d8dc09b682b..0f45358042bd4dbe1b2c768169c20ee01c51f539 100644 (file)
@@ -187,11 +187,11 @@ class AfreecaTVIE(InfoExtractor):
             r'nBbsNo\s*=\s*(\d+)', webpage, 'bbs')
         video_id = self._search_regex(
             r'nTitleNo\s*=\s*(\d+)', webpage, 'title', default=video_id)
-
+        print(video_id, station_id, bbs_id)
         video_xml = self._download_xml(
             'http://afbbs.afreecatv.com:8080/api/video/get_video_info.php',
             video_id, headers={
-                'Referer': 'http://vod.afreecatv.com/embed.php',
+                'Referer': url,
             }, query={
                 'nTitleNo': video_id,
                 'nStationNo': station_id,