diff --git a/docs/changelog.rst b/docs/changelog.rst index 066ebd6..b0a5736 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,4 +2,5 @@ Changelog ========= - Fix bug with the icon of the autohotkey docs not loading +- Fix bug with a slash at the end of a url resulting in presets not detecting them - Add unittests to help detect when presets stop working \ No newline at end of file diff --git a/plugin/plugin.py b/plugin/plugin.py index 5ea64eb..53eea5d 100644 --- a/plugin/plugin.py +++ b/plugin/plugin.py @@ -250,7 +250,7 @@ def convert_raw_loc(self, loc: str) -> URL | Path: async def get_library_from_url( self, name: str, raw_url: str ) -> Library | PresetLibrary | None: - loc = self.convert_raw_loc(raw_url) + loc = self.convert_raw_loc(raw_url.rstrip("/")) log.debug("Getting library from url: %r", loc) is_path: bool = True if isinstance(loc, URL):