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

pull/2366/merge
YozoraXCII 7 days ago committed by GitHub
parent 498cbcf340
commit 66d9c41e7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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.

@ -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