[27] Fixes `custom_repo` when URL does not end in a `/` character (#2371)

dependabot/pip/nightly/psutil-6.1.1
YozoraXCII 1 week ago committed by GitHub Action
parent 498cbcf340
commit da6704c8b8

@ -38,3 +38,4 @@ Fixes an issue causing IMDB collection to fail due to duplicate keys
Removed Blog from the Navigation due to lack of time for updating/maintaining it
Fixes #2354 by updating version of tmdbapi dependency
Added Start Time, Finished and Run Time to Summary of run.
Fixed an issue where custom repositories would not work correctly if the URL did not end in a trailing `/` character.

@ -1 +1 @@
2.1.0-build26
2.1.0-build27

@ -488,6 +488,8 @@ class ConfigFile:
repo = self.general["custom_repo"]
if "https://github.com/" in repo:
repo = repo.replace("https://github.com/", "https://raw.githubusercontent.com/").replace("/tree/", "/")
if not repo.endswith("/"):
repo += "/"
self.custom_repo = repo
if not self.general["verify_ssl"]:

Loading…
Cancel
Save