Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aiopyarr/request_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def __init__( # pylint: disable=too-many-arguments, too-many-locals

self._host = host_configuration
if self._host.url:
regex = r"(https?:\/\/[a-z|\d|\.]*[^:])([\/^:\d]*)(.*)"
regex = r"(https?:\/\/[a-z|A-Z|\d|\.|\-]*[^:])([\/^:\d]*)(.*)"
if (res := search(regex, self._host.url)) and not res.group(2):
self._host.url = f"{res.group(1).rstrip('/')}:{port}/{res.group(3)}"
self._host.url = self._host.url.rstrip("/")
Expand Down