Pavion / tvstreamrecord

Timed TV stream recording for Python
GNU General Public License v3.0
45 stars 10 forks source link

Cannot set a password #52

Closed robaca closed 3 years ago

robaca commented 3 years ago

When I try to set a remote access password via the configuration, nothing happens on submit (dialog stays open).

I get the following error in the logs:

Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/bottle.py", line 868, in _handle return route.call(*args) File "/usr/lib/python3.8/site-packages/bottle.py", line 1748, in wrapper rv = callback(a, **ka) File "tvstreamrecord.py", line 164, in setPass pass_new_1 = hashlib.sha224(request.forms.pass_new_1).hexdigest() if request.forms.pass_new_1 else ""TypeError: Unicode-objects must be encoded before hashing

I'm using the latest docker image and the password contains no special characters.

Pavion commented 3 years ago

Fixed with https://github.com/Pavion/tvstreamrecord/commit/0696ba8b99833cc6daf3ee98480c58e4d3a84247, Docker build updated. Thanks for reporting this issue.