Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

username and password not working on AfreecaTV #10438

Closed
11 tasks done
eviljust opened this issue Jul 12, 2024 · 5 comments · Fixed by #10440
Closed
11 tasks done

username and password not working on AfreecaTV #10438

eviljust opened this issue Jul 12, 2024 · 5 comments · Fixed by #10440
Labels
account-needed Account details are needed to test/fix this can-share-account Someone is willing to provide account details for development regression Works in youtube-dl/older yt-dlp site-bug Issue with a specific website

Comments

@eviljust
Copy link

eviljust commented Jul 12, 2024

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Region

Singapore

Provide a description that is worded well enough to be understood

yt-dlp.exe --username "USERNAME" --password "PASSWORD" --get-url https://vod.afreecatv.com/player/

Error message I got is "WARNING: [afreecatv] In accordance with local laws and regulations, underage users are restricted from watching adult content. Only content suitable for all ages will be downloaded. Use --username and --password, --netrc-cmd, or --netrc (afreecatv) to provide account credentials"

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

C:\Users\justinho\Desktop>yt-dlp.exe -vU --username username --password password --get-url https://vod.afreecatv.com/player/
[debug] Command-line config: ['-vU', '--username', 'PRIVATE', '--password', 'PRIVATE', '--get-url', 'https://vod.afreecatv.com/player/129944563']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2024.07.09 from yt-dlp/yt-dlp [7ead7332a] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg 7.0-full_build-www.gyan.dev (setts), ffprobe 7.0-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.07.04, curl_cffi-0.5.10, mutagen-1.47.0, requests-2.32.3, sqlite3-3.35.5, urllib3-2.2.2, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets, curl_cffi
[debug] Loaded 1834 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: stable@2024.07.09 from yt-dlp/yt-dlp
yt-dlp is up to date (stable@2024.07.09 from yt-dlp/yt-dlp)
[afreecatv] Logging in
[afreecatv] Extracting URL: https://vod.afreecatv.com/player/
[afreecatv] 129944563: Downloading JSON metadata
[afreecatv] 129944563: Downloading part 1 m3u8 information
[afreecatv] 129944563: Downloading part 2 m3u8 information
[afreecatv] 129944563: Downloading part 3 m3u8 information
[afreecatv] 129944563: Downloading part 4 m3u8 information
WARNING: [afreecatv] In accordance with local laws and regulations, underage users are restricted from watching adult content. Only content suitable for all ages will be downloaded. Use --username and --password, --netrc-cmd, or --netrc (afreecatv) to provide account credentials
@eviljust eviljust added site-bug Issue with a specific website triage Untriaged issue labels Jul 12, 2024
@bashonly bashonly added account-needed Account details are needed to test/fix this can-share-account Someone is willing to provide account details for development labels Jul 12, 2024
@bashonly
Copy link
Member

Please don't edit your log / redact the URL.

yt-dlp is downloading 4 parts of the VOD in your log. How many parts does this VOD have in your browser when logged in?

Also, could you test this completely restricted VOD with yt-dlp login:

yt-dlp --username "YOURUSERNAME" --password "YOURPASSWORD" -vF "https://vod.afreecatv.com/player/70395877"

@eviljust
Copy link
Author

eviljust commented Jul 12, 2024

I found one age restricted VOD which only have one part to make it easier for me to try.

C:\Users\xxxxxx\Desktop>yt-dlp.exe --username "x" --password "x" -vF "https://vod.afreecatv.com/player/128831147"
[debug] Command-line config: ['--username', 'PRIVATE', '--password', 'PRIVATE', '-vF', 'https://vod.afreecatv.com/player/128831147']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2024.07.09 from yt-dlp/yt-dlp [7ead733] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k 25 Mar 2021)
[debug] exe versions: ffmpeg 7.0-full_build-www.gyan.dev (setts), ffprobe 7.0-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.07.04, curl_cffi-0.5.10, mutagen-1.47.0, requests-2.32.3, sqlite3-3.35.5, urllib3-2.2.2, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets, curl_cffi
[debug] Loaded 1834 extractors
[afreecatv] Logging in
[afreecatv] Extracting URL: https://vod.afreecatv.com/player/128831147
[afreecatv] 128831147: Downloading JSON metadata
ERROR: [afreecatv] 128831147: Only users older than 19 are able to watch this video. Use --username and --password, --netrc-cmd, or --netrc (afreecatv) to provide account credentials
File "yt_dlp\extractor\common.py", line 740, in extract
File "yt_dlp\extractor\afreecatv.py", line 235, in _real_extract
File "yt_dlp\extractor\common.py", line 1245, in raise_login_required

@bashonly
Copy link
Member

Will be fixed by #10440. See the PR description for an explanation of what was going wrong.

@eviljust FYI the original version of your last comment contained your username and password. I have edited the comment and removed them, and I've deleted the original version of the comment. However, the original version of the comment was emailed to anyone subscribed to this issue or to the yt-dlp repository. I'd recommend changing your password ASAP

@bashonly bashonly added regression Works in youtube-dl/older yt-dlp and removed triage Untriaged issue labels Jul 12, 2024
@eviljust
Copy link
Author

Thanks. I have changed my password for the site.

@bashonly
Copy link
Member

@eviljust Fixed in master: yt-dlp --update-to master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
account-needed Account details are needed to test/fix this can-share-account Someone is willing to provide account details for development regression Works in youtube-dl/older yt-dlp site-bug Issue with a specific website
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants