GNOME Bugzilla – Bug 541895
OPML Importing
Last modified: 2020-03-17 08:36:20 UTC
There should be an easy way to import an OPML list containing an outline of podcasts.
Created attachment 114125 [details] [review] Implementation of OPML import The attached patch adds OPML import capabilities to Banshee. This is a patch to svn revision 4212. This patch does a few things: Adds a "Import OPML" menu item to the Media menu, with a Ctrl+Shift+P shortcut. Adds functionality to download the OPML file and subscribe to each feed. Adds a constructor and some properties to the Podcast Subscription dialog box to allow you to customize the text of the dialog and the default in the sync preferences drop down. Adds the RSS feed url when logging errors in the RSS download (mostly for troubleshooting) Adds some functions and fleshes out some functionality to the OPMLParser class to parse the XML and extract the feeds. Issues: The download of the OPML is entirely cut-and-pasted from the FeedTask code for downloading the feed, some of the implementation is hacked and will need to be better implemented. Areas for expansion: It would be nice to retain a reference to the OPML file if the user wanted and then synchronize the podcasts with the OPML file as Podcasts are removed and added within Banshee so that you could share a centralized list of Podcasts across multiple installations or with multiple users. The downloading of the OPML should be moved to it's own set of code like the FeedTask code, this would allow the user to cancel the download of the entire OPML in one shot. Right now when I accidentally clicked import and download the most recent Podcast I had to manually cancel each Feed or close the entire window. It might be nice to be able to set the feeds imported from the OPML to all have the preference to download the most recent episode but not on import. (e.g. download the most recent episode after today) It would als bee cool to maintain an import error list like when Music is imported so that users can see which feeds failed and why. And perhaps import them anyway or manually try them later. I look forward to your feedback and I would be happy to help with any additional code if some one can help point me in the right direction.
Hey Brandon, thanks for the patch. Please read the HACKING file for the style guideline. Specifically, look at {}s on properties and loops. Also, add 'using' statments for the generic collections and migo stuff. Lastly, it would be great (but not blocking this patch) to support OPML where the outline objects are not directly under the <body> tag. Should be able to do that by selecting all the outline nodes in xpath, no matter what the parent.
I committed the OpmlParser code and hooked things up so we handle local OPML files (and ones that Firefox passes off to us, like if you use the Miro Guide).
Bulk changing the assignee to banshee-maint@gnome.bugs to make it easier for people to get updated on all banshee bugs by following that address. It's usually quite apparent who is working on a given bug by the comments and/or patches attached.
There is OPML import / export support in the podcast-ng git branch.
When is this going to be in the Main branch? it's a 2 year old bug!
*** Bug 645048 has been marked as a duplicate of this bug. ***
Hi, I'm just wondering what's happening with this in the main branch? I'm using v. 2.6 and podcasting import/export doesn't seem to have reached here yet (linux mint 14 kde)
Banshee is not under active development anymore and had its last code changes more than three years ago. Its codebase has been archived. Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this ticket (or rather transfer the project to GNOME Gitlab, as GNOME Bugzilla is being shut down) if anyone takes the responsibility for active development again. See https://gitlab.gnome.org/Infrastructure/Infrastructure/issues/264 for more info.