ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.19k stars 10.02k forks source link

Afreecatv 19+ VODS cannot be downloaded #26622

Open sneakwish opened 4 years ago

sneakwish commented 4 years ago

Checklist

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-u', 'PRIVATE', '-p', 'PRIVATE', '-R', '999', '--hls-prefer-native', 'http://vod.afreecatv.com/PLAYER/STATION/58994262', '-v']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2019.11.22
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: ffmpeg N-93022-g260f1960e7, ffprobe N-93022-g260f1960e7
[debug] Proxy map: {}
[afreecatv] Logging in
[afreecatv] 58994262: Downloading webpage
[afreecatv] 58994262: Downloading video info XML
ERROR: afreecatv said: Only users older than 19 are able to watch this video. Provide account credentials to download this content.
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpwnp2jh33\build\youtube_dl\YoutubeDL.py", line 796, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpwnp2jh33\build\youtube_dl\extractor\common.py", line 530, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpwnp2jh33\build\youtube_dl\extractor\afreecatv.py", line 271, in _real_extract
youtube_dl.utils.ExtractorError: afreecatv said: Only users older than 19 are able to watch this video. Provide account credentials to download this content.

Description

When I try to download a video from afreecatv and putting credentials it is 19+ , it gives an error "Only users older than 19 are able to watch this video. Provide account credentials to download this content." Command: youtube-dl.exe -u username -p password -R 999 --hls-prefer-native "http://vod.afreecatv.com/PLAYER/STATION/xxx"

ready2r commented 4 years ago

FFmpeg works if you pass the User Agent and Referer tags. Just need to get the playlist.m3u8 from inspect elements. A work around for the time being:

ffmpeg -user_agent "UA" -referer "http://vod.afreecatv.com/PLAYER/STATION/xxx" -i "...playlist.m3u8" -c copy test.mp4

bruce20190119 commented 3 years ago

Hello,do you know how to solve this question?