Describe the bug
When I download something, the download goes through but when I try to download it, I got various errors
To Reproduce
Steps to reproduce the behavior:
Run MetaTube
Download Music
Proceed with the download
Click download item
Expected behavior
Should download as normal
Screenshots
If applicable, add screenshots to help explain your problem.
Server information
Installation method: Windows 11, Fresh github clone of master
Python version: Python 3.11
Operating System: Windows 11
Additional context
Traceback (most recent call last):
File "src\\gevent\\greenlet.py", line 908, in gevent._gevent_cgreenlet.Greenlet.run
File "A:\metatube1\.venv\Lib\site-packages\socketio\server.py", line 586, in _handle_event_internal
r = server._trigger_event(data[0], namespace, sid, *data[1:])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "A:\metatube1\.venv\Lib\site-packages\socketio\server.py", line 611, in _trigger_event
return handler(*args)
^^^^^^^^^^^^^^
File "A:\metatube1\.venv\Lib\site-packages\flask_socketio\__init__.py", line 282, in _handler
return self._handle_event(handler, message, namespace, sid,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "A:\metatube1\.venv\Lib\site-packages\flask_socketio\__init__.py", line 827, in _handle_event
ret = handler(*args)
^^^^^^^^^^^^^^
File "A:\metatube1\metatube\overview\routes.py", line 325, in downloaditem
mimetype = magic.from_file(path)
^^^^^^^^^^^^^^^^^^^^^
File "A:\metatube1\.venv\Lib\site-packages\magic\magic.py", line 89, in from_file
return maybe_decode(magic_file(self.cookie, filename))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "A:\metatube1\.venv\Lib\site-packages\magic\magic.py", line 214, in maybe_decode
return s.decode('utf-8')
^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe3 in position 44: invalid continuation byte
2024-04-15T14:49:01Z <Thread at 0x179a124b920: <bound method Server._handle_event_internal of <socketio.server.Server object at 0x000001799EDFE310>>(<socketio.server.Server object at 0x000001799EDFE3, '6XkNKTSvTGRHPSsvAAAL', 'WCPARVZdyxMXkqOpAAAK', ['downloaditem', 'A:\\Projects\\MetaTube\\download, '/', None)> failed with UnicodeDecodeError
Describe the bug When I download something, the download goes through but when I try to download it, I got various errors
To Reproduce Steps to reproduce the behavior:
Expected behavior Should download as normal
Screenshots If applicable, add screenshots to help explain your problem.
Server information
Additional context
pip freeze