Skip to content

Syncplay server no longer works with --password option #200

@crabdancing

Description

@crabdancing

Syncplay server exits with TypeError when I try to start it with --password option.

[syncplay@caesium ~]$ /usr/bin/syncplay-server --port [REDACTED] --password [REDACTED]                          
Welcome to Syncplay server, ver. 1.5.6
Traceback (most recent call last):
  File "/usr/bin/syncplay-server", line 36, in <module>
    args.stats_db_file))
  File "/usr/lib/syncplay/syncplay/server.py", line 28, in __init__
    password = hashlib.md5(password).hexdigest()
TypeError: Unicode-objects must be encoded before hashing

I fixed the code by adding password = password.encode('utf-8') before line 28 in server.py. Some similar modification should be made to fix this regression. 😉

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions