Skip to content

Commit

Permalink
Fix recent changes to download urls
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelSchneid3r committed Sep 26, 2023
1 parent fe89e91 commit 703474f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
project(docs VERSION 1.4)
project(docs VERSION 1.5)
albert_plugin(
NAME Docs
DESCRIPTION "Documentation quick access"
Expand Down
2 changes: 1 addition & 1 deletion docs/src/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ void Plugin::downloadDocset(const QString &name)

auto *docset = &docsets_.at(name);
static const char *docsets_url_template = "https://go.zealdocs.org/d/%1/%2/latest";
auto url = QUrl{QString(docsets_url_template).arg(docset->source_id, docset->identifier)};
auto url = QUrl{QString(docsets_url_template).arg(docset->source_id.chopped(5), docset->identifier)};
debug(QString("Downloading docset from '%1'").arg(url.toString()));
download_ = albert::networkManager()->get(QNetworkRequest(url));

Expand Down

0 comments on commit 703474f

Please sign in to comment.