r0bc94 / JellyfinDownloader

Tool to download Series or Movies from a Jellyfin Server
5 stars 2 forks source link

Enhance URL Specification #7

Closed r0bc94 closed 4 months ago

r0bc94 commented 7 months ago

This PR enhances the general handling of specified URL and some of the error handling. Currently, the error message which is shown when something goes wrong while connecting to a given Jellyfin server only suggests, that the Authentication Failed and that some should Check the username and password. Since there are of cause many other reasons, why an initial connection would fail, this PR prints out the whole message returned by the Jellyfin URL library.

Also, a rudimentary check if the passed url conforms a simple pattern is added. Meaning that if the server url is specified in the wrong format, this is catched before trying to reach this server. Also an appropriate error message is displayed.

Keep in mind that its currently not possible to specify a raw IPv6 address!