Get screenshots from debian.net in Arch#75
Conversation
|
Merging this one, but there is a high chance that I will drop this feature and make appstream-generator cache the screenshots instead. |
|
Are we sure this is going to work? Does debian screenshots support appstream ids now? |
|
This will only work if the Arch package names are equal to the Debian package names. |
|
Then this sounds like a horrible idea... we already went through this, it didn't work well. |
|
I must be missing something here... How is downloading screenshots from s.d.net worse than not having any screenshot at all (for packages that don't provide it themselves)? |
|
By default we used to have this, and Discover UI was full of images saying |
|
Just to let you know. I'm following this thread if you have any ideas, wishes or requests. I intend to implement AppStream parsing to get the data soon. I'm just still confused whether I need to implement both XML and YAML parsing. The screenshot's site runs on Ruby (on Rails) and there doesn't seem to be any real Ruby Gem for that purpose yet. So I need to use either your command-line tools or implement the parser(s) myself. …Christoph (the guy behind screenshots.debian.net) |
|
And without this patch you get only the "missing image" icon instead of any screenshot, which looks even more broken. So again, I don't see how this makes anything worse. |
|
@Signum I am planning to go the other way round and use screenshots.d.o to complement the AppStream metadata when we generate it for Debian, using its JSON interface - for that it would be useful to return a consistent error code when something wasn't found, at time that could be a 404 code, some page or a JSON document saying that no screenshot was found. Whether AppStream is XML or YAML depends on whether you want to read metainfo files (always XML) or collection files (YAML or XML). In any case, I recommend using libappstream for reading stuff, if Ruby understands GIR that should be pretty trivial. |
|
I reverted the patch due to its controversial nature, and because the AppStream-Generator will itself soon pull the proper files and set the right metadata, rendering this feature in the AppStream client tool obsolete. Patches for asgen to implement the screenshots.d.o feature are very welcome, as that doesn't have the highest priority at the moment. |
No description provided.