GNOME Bugzilla – Bug 437913
Allow commands to generate podcast feeds
Last modified: 2018-05-24 12:34:13 UTC
As does liferea, it should be possible to add commands as podcast feeds. The idea is to be able to generate feeds locally, for instance to filter an online feed or generate a podcast from a directory or whatnot. Akregator is able to use launch a command and use its result when an executable file is given as the feed. Liferea has an "advanced" button which allows to select the feed type (url, local, command).
What's the actual use case for that, especially given things like Feedburner, and Yahoo Pipes.
because - Yahoo Pipes is not available for sources in the local network (think about a voicemail feed) - I'm not affiliated to yahoo! and don't need to. Now I'm using a small http server in order to simulate this, but it would be nicer if I could just add a command feed right into rythmbox.
It should be easy enough to do. In rb_podcast_parse_load_feed() in podcast/rb-podcast-parse.c make URLs finishing with "|" be special and have them be handled as commands. So something like: //FIXME should probably ignore trailing spaces) if (g_str_has_suffix(filename, "|") != FALSE) { //FIXME error out if /desktop/gnome/lockdown/disable_command_line forbids launches applications //FIXME grab output of the command with g_spawn_sync_with_pipes() //FIXME error out if the g_spawn fails //FIXME flush the output to a file with the correct suffix (use gnome_vfs_get_mime_type_for_data to get a proper mime-type, and deduce the suffix from that) //FIXME set the new data->url } ... carry on as usual I don't think that the feature would need special handling in the UI, but would probably need a word in the documentation. Adding to gnome-love.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/rhythmbox/issues/370.