After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 437913 - Allow commands to generate podcast feeds
Allow commands to generate podcast feeds
Status: RESOLVED OBSOLETE
Product: rhythmbox
Classification: Other
Component: Podcast
0.10.0
Other Linux
: Normal enhancement
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-05-12 14:41 UTC by Steve Frécinaux
Modified: 2018-05-24 12:34 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Steve Frécinaux 2007-05-12 14:41:39 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).
Comment 1 Bastien Nocera 2007-11-07 00:36:47 UTC
What's the actual use case for that, especially given things like Feedburner, and Yahoo Pipes.
Comment 2 Steve Frécinaux 2007-12-26 12:04:49 UTC
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.
Comment 3 Bastien Nocera 2007-12-26 14:01:49 UTC
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.
Comment 4 GNOME Infrastructure Team 2018-05-24 12:34:13 UTC
-- 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.