From da6704c8b898ce8c1fd00f1a37b35e9e6eecea62 Mon Sep 17 00:00:00 2001 From: YozoraXCII <96386153+YozoraXCII@users.noreply.github.com> Date: Thu, 19 Dec 2024 12:05:55 +0000 Subject: [PATCH] [27] Fixes `custom_repo` when URL does not end in a `/` character (#2371) --- CHANGELOG | 1 + VERSION | 2 +- modules/config.py | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 80ccd09a..65b8c56e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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. diff --git a/VERSION b/VERSION index 3c52617f..7e5ea07e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.1.0-build26 +2.1.0-build27 diff --git a/modules/config.py b/modules/config.py index f43dc23d..5833c342 100644 --- a/modules/config.py +++ b/modules/config.py @@ -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"]: