https://bugs.kde.org/show_bug.cgi?id=526447

[email protected] <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from [email protected] <[email protected]> ---
Not only has the URL changed, but the whole document structure.
Also, the image URL is composed differently. It seems that it's necessary to
extract the _whole_ URL including parameters. Otherwise, a low resolution image
is served.

This means, that we cannot simply exchange the URL in apodprovider.cpp; there
needs to be a new code to search for the images’ URL in the HTML document.

I narrowed the position of the image URL down to the element

```html
<figure class="hds-media-inner hds-cover-wrapper hds-media-ratio-fit "><a
href="https://science.nasa.gov/image-article/apod-2026-september-30-arp-78-peculiar-galaxy-in-aries/";><img
width="1772" height="1182"
src="https://assets.science.nasa.gov/dynamicimage/assets/science/cds/apod/apod/2026/october/NGC772_Robert_Eder.jpg?w=1772&amp;h=1182&amp;fit=clip&amp;crop=faces%2Cfocalpoint";
```

which contains the <img> element with the URL of today’s image.

IMHO though this could still be extracted with RegExes, a different code that
parses the DOM would probably be more reliable.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to