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

Error in user_sanitize_info() #6

Open
Robotto opened this issue Oct 7, 2023 · 0 comments
Open

Error in user_sanitize_info() #6

Robotto opened this issue Oct 7, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Robotto
Copy link

Robotto commented Oct 7, 2023

Is this a yt-dlp error, a flask error, or does it actually belong here?

Log output:

 * Serving Flask app 'main'
 * Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:9001
 * Running on http://REMOVED:9001
Press CTRL+C to quit
 * Restarting with stat
[youtube] Extracting URL: https://www.youtube.com/watch?v=fwtBBTVDFsk
[youtube] fwtBBTVDFsk: Downloading webpage
[youtube] fwtBBTVDFsk: Downloading ios player API JSON
[youtube] fwtBBTVDFsk: Downloading android player API JSON
[youtube] fwtBBTVDFsk: Downloading m3u8 information
[2023-10-07 09:26:17,892] ERROR in app: Exception on / [POST]
Traceback (most recent call last):
  File "/home/USERNAME/.local/lib/python3.10/site-packages/flask/app.py", line 1455, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/USERNAME/.local/lib/python3.10/site-packages/flask/app.py", line 869, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/USERNAME/.local/lib/python3.10/site-packages/flask/app.py", line 867, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/USERNAME/.local/lib/python3.10/site-packages/flask/app.py", line 852, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/var/www/html/maskinen/main.py", line 13, in _index
    user_dict = get_youtube_extract(youtube_url)
  File "/var/www/html/maskinen/utils/tool.py", line 102, in get_youtube_extract
    user_sanitize = user_sanitize_info(sanitize_info)
  File "/var/www/html/maskinen/utils/tool.py", line 23, in user_sanitize_info
    file_size_sanitize = formats['filesize'] if formats['filesize'] else 0
KeyError: 'filesize'
REDACTED - - [07/Oct/2023 09:26:17] "POST / HTTP/1.1" 500 -

@abhint abhint added the bug Something isn't working label Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants