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

Brilliant pala elearn and classes #9771

Closed
9 of 10 tasks
asdfghjkl87755 opened this issue Apr 23, 2024 · 2 comments · May be fixed by #9788
Closed
9 of 10 tasks

Brilliant pala elearn and classes #9771

asdfghjkl87755 opened this issue Apr 23, 2024 · 2 comments · May be fixed by #9788
Labels
incomplete Further information is needed site-bug Issue with a specific website triage Untriaged issue

Comments

@asdfghjkl87755
Copy link

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

Provide a description that is worded well enough to be understood

Brilliantpala:Elearn] Downloading login page
ERROR: An extractor error has occurred. (caused by KeyError('csrfmiddlewaretoken')); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U

Student id 292870
Password 292870

Also push the update to both elearn.brilliantpala.org and classes.brilliantpala.org

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

~ $ yt-dlp -vU --embed-thumbnail
--embed-metadata
--username 292870
--password 292870
https://elearn.brilliantpala.org/courses/303/contents/149625

Latest version: stable@2024.04.09 from yt-dlp/yt-dlp
yt-dlp is up to date (stable@2024.04.09 from yt-dlp/yt-dlp)
[Brilliantpala:Elearn] Downloading login page
[debug] Command-line config: ['--config-locations', '/data/user/0/com.deniscerri.ytdl/cache/config-TERMINAL[1713877481243].txt', '--cookies', '/data/user/0/com.deniscerri.ytdl/cache/cookies.txt', '--add-header', 'User-Agent:Mozilla/5.0 (Linux; Android 10; Lenovo TB-X306F Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/123.0.6312.118 Safari/537.36', '-P', '/storage/emulated/0/Android/data/com.deniscerri.ytdl/files/downloads//TERMINAL/49', '--no-cache-dir', '--ffmpeg-location', '/data/app/com.deniscerri.ytdl-SFePdeRXHhS517Web3COGw==/lib/arm64/libffmpeg.so']
[debug] | Config "/data/user/0/com.deniscerri.ytdl/cache/config-TERMINAL[1713877481243].txt": ['-vU', '--embed-thumbnail', '--embed-metadata', '--username', 'PRIVATE', '--password', 'PRIVATE', 'https://elearn.brilliantpala.org/courses/303/contents/149625']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8 (No ANSI), error utf-8 (No ANSI), screen utf-8 (No ANSI)
[debug] yt-dlp version stable@2024.04.09 from yt-dlp/yt-dlp [ff0779267] (zip)
[debug] Python 3.8.0 (CPython aarch64 64bit) - Linux-4.9.190+-aarch64-with-libc (OpenSSL 1.1.1t  7 Feb 2023, libc)
[debug] exe versions: ffmpeg 5.1 (setts), ffprobe 5.1
[debug] Optional libraries: Cryptodome-3.17, mutagen-1.46.0, sqlite3-3.30.1
[debug] Proxy map: {}
[debug] Request Handlers: urllib
[debug] Loaded 1810 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
ERROR: An extractor error has occurred. (caused by KeyError('csrfmiddlewaretoken')); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "/data/user/0/com.deniscerri.ytdl/no_backup/youtubedl-android/yt-dlp/yt-dlp/yt_dlp/extractor/common.py", line 731, in extract
    self.initialize()
  File "/data/user/0/com.deniscerri.ytdl/no_backup/youtubedl-android/yt-dlp/yt-dlp/yt_dlp/extractor/common.py", line 637, in initialize
    self._perform_login(username, password)
  File "/data/user/0/com.deniscerri.ytdl/no_backup/youtubedl-android/yt-dlp/yt-dlp/yt_dlp/extractor/brilliantpala.py", line 36, in _perform_login
    self._set_cookie(self._DOMAIN, 'csrftoken', login_form['csrfmiddlewaretoken'])
KeyError: 'csrfmiddlewaretoken'
@asdfghjkl87755 asdfghjkl87755 added bug Bug that is not site-specific triage Untriaged issue labels Apr 23, 2024
@pukkandan pukkandan added site-bug Issue with a specific website and removed bug Bug that is not site-specific labels Apr 23, 2024
@bashonly
Copy link
Member

Try it without passing cookies and only passing username/password

@bashonly bashonly added the incomplete Further information is needed label Apr 23, 2024
@asdfghjkl87755
Copy link
Author

Thanks @pzhlkj6612 it worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
incomplete Further information is needed site-bug Issue with a specific website triage Untriaged issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants