Elinvention / gnome-shell-extension-nasa-apod

Change your wallpaper daily to the NASA's astronomy picture of the day
https://extensions.gnome.org/extension/1202/nasa-apod/
GNU General Public License v3.0
119 stars 21 forks source link

issues with images with forward slash "/" in the title #60

Closed S0litaire closed 9 months ago

S0litaire commented 1 year ago

Issue: in today's APOD the jpeg's title included a forward slash, throwing up a 200 error and the image is not displayed.

Error :

NASA APOD extention error : Genric error
Gio.IOErrorEnum: Error removing file /home/bill/Pictures/APOD/2023-07-14-Comet C/2023 E1 ATLAS near Perihelion.jpg No such file or directory

image

The Image it's trying to save as: 2023-07-14-Comet C/2023 E1 ATLAS near Perihelion.jpg So it's looking for a folder called "2003-07-14-Comet C" to save the image into:

Workaround: I created a folder called "2003-07-14-Comet C" and the image saved and displayed correctly.

direct NASA link to image: https://apod.nasa.gov/apod/image/2307/C_2023_E1_ATLAS_C14F2_DEBartlett1024.jpg NASA Title: Comet C/2023 E1 ATLAS near Perihelion

Solution: When creating locally saved image replace "/" with "-" or remove completely

Elinvention commented 9 months ago

Should be solved with version 37. Feel free to reopen if it is not.