From b69070a3c7f079109f1922c1321dd02cf6e1d9d8 Mon Sep 17 00:00:00 2001 From: Manuel Namici Date: Fri, 7 Jun 2024 12:24:34 +0200 Subject: [PATCH] plugins: metadata_importer: append rather that replace path in requests This avoids problems when the api is hosted under a base path, which would otherwise always be stripped. --- eddy/plugins/metadata-importer/metadata_importer/widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eddy/plugins/metadata-importer/metadata_importer/widgets.py b/eddy/plugins/metadata-importer/metadata_importer/widgets.py index 93877613..f0b3a975 100644 --- a/eddy/plugins/metadata-importer/metadata_importer/widgets.py +++ b/eddy/plugins/metadata-importer/metadata_importer/widgets.py @@ -307,7 +307,7 @@ def onRepositoryChanged(self, index): if repo: self.settings.setValue('metadata/index', self.combobox.currentIndex()) url = QtCore.QUrl(repo.uri) - url.setPath('/classes') + url.setPath(f'{url.path()}/classes') request = QtNetwork.QNetworkRequest(url) request.setAttribute(MetadataRequest.RepositoryAttribute, repo) reply = self.session.nmanager.get(request)