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 541895 - OPML Importing
OPML Importing
Status: RESOLVED WONTFIX
Product: banshee
Classification: Other
Component: Podcasting
git master
Other All
: Normal enhancement
: 1.x
Assigned To: Banshee Maintainers
Mike Urbanski
gnome[unmaintained]
: 645048 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-07-07 15:27 UTC by Brandan E. Lloyd
Modified: 2020-03-17 08:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Implementation of OPML import (15.24 KB, patch)
2008-07-07 15:28 UTC, Brandan E. Lloyd
needs-work Details | Review

Description Brandan E. Lloyd 2008-07-07 15:27:45 UTC
There should be an easy way to import an OPML list containing an outline of podcasts.
Comment 1 Brandan E. Lloyd 2008-07-07 15:28:55 UTC
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.
Comment 2 Gabriel Burt 2008-07-14 15:16:12 UTC
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.
Comment 3 Gabriel Burt 2008-09-09 23:36:11 UTC
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).
Comment 4 Gabriel Burt 2009-10-27 20:18:05 UTC
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.
Comment 5 Mike Urbanski 2010-04-05 03:47:48 UTC
There is OPML import / export support in the podcast-ng git branch.
Comment 6 Daniel 2010-10-12 15:51:04 UTC
When is this going to be in the Main branch? it's a 2 year old bug!
Comment 7 Gabriel Burt 2011-03-21 13:44:31 UTC
*** Bug 645048 has been marked as a duplicate of this bug. ***
Comment 8 Nick 2013-06-25 17:13:23 UTC
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)
Comment 9 André Klapper 2020-03-17 08:36:20 UTC
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.