<div dir="ltr">Ben Cooksley got me part of the way to an answer.<div><br></div><div>The problem was that kstars was keeping a cache in  ~/.cache/kstars/knewstuff/...</div><div>On Mac, the equivalent directory is ~/Library/Caches/kstars/knewstuff/...</div><div>Once I removed those directories, then the "Data->Download New Data" menus worked fine for my new catalogs on both Mac and Linux.</div><div><br></div><div>The next question is, how can we get users to clear that cache when we update new stuff? </div><div>If anyone has tried the ImagingPlanner tool, then they won't get the latest catalog but rather will be stuck with the old cached versions.</div><div><br></div><div>Perhaps I need to re-name each version of my catalog?</div><div><br></div><div>Hy</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Fri, Mar 14, 2025 at 10:47 PM Hy Murveit <<a href="mailto:murveit@gmail.com">murveit@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I wanted to document some issues I've been having with our data downloads (the "Data -> Download New Data" menu) in hopes someone has insight in how to fix it or who to contact to help. This has been an ongoing issue for several months now, with previous updates to this data.</div><div><br></div><div>The issue is that though I've uploaded a new data catalog for the Imaging Planner (version 2) I, and presumably some of you, but presumably not all of you) still see Version 1 in the download menu.</div><div><br></div><div>Here's a screenshot</div><div><br></div><div><img src="cid:ii_m89rrg2n0" alt="Screenshot 2025-03-14 at 10.29.07 PM.png" width="534" height="542" style="margin-right: 0px;"><br></div><div><br></div><div>Please note in the screenshot that the description says "<span style="background-color:rgb(255,255,0)">Catalog 1 for the KStars ImagingPlanner tool".</span></div><div><br></div><div>Though KStars displays that, when I chase down all the web links using curl I do get the right data. This is shown below. </div><div><br></div><div>As an explanation to the below, here's how things work. </div><div><ul><li>We use the KNewStuff3 library to manage all this downloading. It is configured as described in the following bullets. I don't know when that got implemented, though it's been working for a long time. There are more recent versions of that library, but they probably depend on moving to Qt6.</li><li>We store a kstars.knsrc "KNewStuff file" in data/kstars.knsrc that tells KNewStuff where to look for a "providers file", </li><li>This providers file gives links to "providers download files", </li><li>and those files show the titles, descriptions, and payload urls for the actual data. </li></ul>All that looks configured fine to me when chasing the urls using curl. See details below.</div><div><br></div><div>Hy</div><div><br></div><div><b>The kstars.knsrc file says the providers can be found at <a href="https://cdn.kde.org/edu/kstars/providers.xml" target="_blank">https://cdn.kde.org/edu/kstars/providers.xml</a></b></div>> cat ~/Projects/kstars/kstars/data/kstars.knsrc <br>[KNewStuff3]<br><span style="background-color:rgb(255,255,0)">ProvidersUrl=<a href="https://cdn.kde.org/edu/kstars/providers.xml" target="_blank">https://cdn.kde.org/edu/kstars/providers.xml</a></span><br>TargetDir=kstars<br>Uncompress=true<br><br><b>Accessing providers.xml shows one of the two providers at <a href="https://cdn.kde.org/edu/kstars/main.xml" target="_blank">https://cdn.kde.org/edu/kstars/main.xml</a></b><br>> curl -O <a href="https://cdn.kde.org/edu/kstars/providers.xml" target="_blank">https://cdn.kde.org/edu/kstars/providers.xml</a><br>  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current<br>                                 Dload  Upload   Total   Spent    Left  Speed<br>100   607  100   607    0     0   3668      0 --:--:-- --:--:-- --:--:--  3678<br>> cat providers.xml<br><?xml version="1.0" encoding="UTF-8"?><br><!DOCTYPE knewstuffproviders SYSTEM "knewstuffproviders.dtd"><br><knewstuffproviders><br><span style="background-color:rgb(255,255,0)">  <provider downloadurl="<a href="https://cdn.kde.org/edu/kstars/main.xml" target="_blank">https://cdn.kde.org/edu/kstars/main.xml</a>"</span><br>            nouploadurl="<a href="https://edu.kde.org/contrib/" target="_blank">https://edu.kde.org/contrib/</a>"<br>          icon="<a href="http://edu.kde.org/pics/projects/cr32-app-kstars.png" target="_blank">http://edu.kde.org/pics/projects/cr32-app-kstars.png</a>"><br>    <title>KStars Data</title><br>  </provider><br>  <provider downloadurl="<a href="https://cdn.kde.org/edu/kstars/dso.xml" target="_blank">https://cdn.kde.org/edu/kstars/dso.xml</a>"<br>            nouploadurl="<a href="https://edu.kde.org/contrib/" target="_blank">https://edu.kde.org/contrib/</a>"<br>            icon="<a href="http://edu.kde.org/pics/projects/cr32-app-kstars.png" target="_blank">http://edu.kde.org/pics/projects/cr32-app-kstars.png</a>"><br>    <title>KStars Data</title><br>  </provider><br></knewstuffproviders><div><br></div><div><b>That main.xml contains the right "Catalog 2" description and payload url</b><br>> curl -O <a href="https://cdn.kde.org/edu/kstars/main.xml" target="_blank">https://cdn.kde.org/edu/kstars/main.xml</a><br>  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current<br>                                 Dload  Upload   Total   Spent    Left  Speed<br>100  6236  100  6236    0     0  25844      0 --:--:-- --:--:-- --:--:-- 25875<br>> cat main.xml<br><knewstuff><br>...<br><stuff><br><name>ImagingPlanner Catalog1</name><br><type>ImagingPlanner</type><br><author email="<a href="mailto:kstars-devel@kde.org" target="_blank">kstars-devel@kde.org</a>">Hy Murveit</author><br><licence>Free noncommercial ShareAlike use with credit. Creative Commons license. Credit for individual images in .csv files.</licence><br><span style="background-color:rgb(255,255,0)"><summary lang="en">Catalog 2 for the KStars ImagingPlanner tool.</summary></span><br><version>2.0</version><br><release>1</release><br><releasedate>2025-03-12</releasedate><br><downloadsize1>9300</downloadsize1><br><preview lang="en"><a href="https://www.indilib.org/jdownloads/knewstuff/imagingplanner-screenshot.jpg" target="_blank">https://www.indilib.org/jdownloads/knewstuff/imagingplanner-screenshot.jpg</a></preview><br><span style="background-color:rgb(255,255,0)"><payload lang="en"><a href="https://cdn.kde.org/edu/kstars/ImagingPlanner-catalog-2.0.tar.gz" target="_blank">https://cdn.kde.org/edu/kstars/ImagingPlanner-catalog-2.0.tar.gz</a></payload></span><br><rating>5</rating><br><downloads>0</downloads><br></stuff><br>...<br></knewstuff><br></div><div><br></div><div><b>So why does kstars not display the right description? I've tried clearing the cache in </b></div><div><b>~/.local/share/knewstuff3/</b></div></div>
</blockquote></div>