Closed ThomasSeeker closed 1 week ago
The url to the actual image is https://img.kleinanzeigen.de/api/v1/prod-ads/images/2f/2fae58c4-5ec9-4fe5-8a9f-5e4252dc27dc?rule=$_59.JPG
and I think the dollar sign ($) may be causing problems in a terminal command
I'm trying to figure out if the problem is with this addon or not. I'll let you know.
Thank you ssborbis!
I tried to only grab the url of the image via:
echo "{searchTerms}" > /home/user/file
The result is:
https://img.kleinanzeigen.de/api/v1/prod-ads/images/2f/2fae58c4-5ec9-4fe5-8a9f-5e4252dc27dc?rule=.JPG
This url does not even work in the browser. Whereas the slightly different url you shared, works at least in the browser. And if I escape the dollar sign ($) it even works with gwenview. ... How did you get your url?
The problem appears to be with python. Apparently dollar signs ($) are special characters in python strings. The latest ContextSearch.py corrects this, and has some additional improvements ( maybe ) . Try clicking the gear icon in the edit modal for your native app engine to update to v2.20.
Thank you so much, ssborbis!
Now it works beautifully!
:-)
No problem The python code hasn't been thoroughly tested (obviously) so if you notice any weirdness with launching other apps, let me know.
I gladly will!
In my early linux-days I was very hesitant to report bugs etc. And even these days it is kind of hard for me to wrap my head around the idea, that my complaining is not a burden, but actually of help for a project.
:-D
Hey there,
I'm trying to open images in Gwenview with an App Launcher. This command works some of the time:
curl "{searchTerms}" -o /tmp/image & gwenview /tmp/image
But it doesn't work on some images, e.g. here: https://www.kleinanzeigen.de/s-anzeige/sattelstuetze-rs-lite-concept-rs-bikes-31-4mm/2792055486-217-9294
What is causing the command to fail on the example image?