changeset 16:4df89753eaef

Fix import of collections with a space in their names
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 06 Nov 2021 11:59:01 +0100
parents 4c0dd6329892
children c30e86b4a9d5
files NEWS Plugin/TciaImportJob.cpp
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Wed Sep 15 22:33:12 2021 +0200
+++ b/NEWS	Sat Nov 06 11:59:01 2021 +0100
@@ -1,6 +1,8 @@
 Pending changes in the mainline
 ===============================
 
+* Fix import of collections with a space in their names
+
 
 Version 1.0 (2021-08-29)
 ========================
--- a/Plugin/TciaImportJob.cpp	Wed Sep 15 22:33:12 2021 +0200
+++ b/Plugin/TciaImportJob.cpp	Sat Nov 06 11:59:01 2021 +0100
@@ -260,9 +260,9 @@
     else
     {
       const Series& series = series_[position_];
-      const std::string url = (
-        std::string(TCIA_BASE_URL) + "/getImage?Collection" + series.GetCollection() +
-        "&SeriesInstanceUID=" + series.GetSeriesInstanceUid());
+
+      const std::string url = (std::string(TCIA_BASE_URL) +
+                               "/getImage?SeriesInstanceUID=" + series.GetSeriesInstanceUid());
 
       Json::Value query;
       query["Level"] = "Instance";