1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-09 11:42:16 +00:00

Handle port in database URI

This commit is contained in:
Alban Féron 2020-02-02 15:23:53 +01:00
parent 94624518ed
commit ef129a042a
No known key found for this signature in database
GPG Key ID: 8CE0313646D16165

View File

@ -559,6 +559,8 @@ def parse_uri(database_uri):
uri = urlparse(database_uri)
args = dict(parse_qsl(uri.query))
if uri.port is not None:
args["port"] = uri.port
if uri.scheme == "sqlite":
path = uri.path