Commit e0bd6d66 authored by Akarsh Simha's avatar Akarsh Simha Committed by Jasem Mutlaq

Update DSS URLs to https.

Retrieving DSS images was not working because we got a service
redirect HTML blurb instead of an image.
parent dcc946b4
Pipeline #48489 passed with stage
in 6 minutes and 21 seconds
......@@ -136,7 +136,7 @@ QString KSDssDownloader::getDSSURL(const dms &ra, const dms &dec, float width, f
QString version = version_.toLower();
QString type = type_.toLower();
QString URLprefix = QString("").arg(version);
QString URLprefix = QString("").arg(version);
QString URLsuffix = QString("&e=J2000&f=%1&c=none&fov=NONE").arg(type);
char decsgn = (dec.Degrees() < 0.0) ? '-' : '+';
......@@ -125,7 +125,7 @@ QString getDSSURL(const SkyPoint *const p)
QString getDSSURL(const dms &ra, const dms &dec, float width, float height, const QString &type)
const QString URLprefix("");
const QString URLprefix("");
QString URLsuffix = QString("&e=J2000&f=%1&c=none&fov=NONE").arg(type);
const double dss_default_size = Options::defaultDSSImageSize();
......@@ -477,7 +477,7 @@ void SkyMap::slotDSS()
if (kstars)
new ImageViewer(
url, i18n("Digitized Sky Survey image provided by the Space Telescope Science Institute [public domain]."),
url, i18n("Digitized Sky Survey image provided by the Space Telescope Science Institute [free for non-commercial use]."),
......@@ -545,8 +545,8 @@ void SkyMap::slotSDSS()
// implemented in ObservingList::setCurrentImage() etc. in
// tools/observinglist.cpp; must try to de-duplicate as much as
// possible.
QString URLprefix("");
QString URLsuffix("&scale=1.0&width=600&height=600&opt=GST&query=SR(10,20)");
QString URLprefix("");
QString URLsuffix("&scale=1.0&width=600&height=600");
dms ra(0.0), dec(0.0);
QString RAString, DecString;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment