* 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 -