gPodder Bug Tracker – Bug 1711
Export OPML Remember Custom Feed Names
Last modified: 2012-11-17 11:54:18 GMT
I like to keep a copy of my opml around just in case something happens. I listen to a few podcasts from IGN and Smodcast Networks. Well they like to call all their podcasts IGN This or Smodcast that. Well when you listen to your podcasts on a small mp3 player you want to keep the podcast title down to as few characters as possible. Well I rename the podcasts and everything works fine. Then i export to opml and when reimported custom podcast titles are lost. It would be nice if you could export the custom titles into the opml file so that i don't have to rename them after reimport.
Sounds like a very good idea to me.
Required code changes (just personal notes):
- src/gpodder/gtkui/desktop/podcastdirectory.py (get_selected_channels must return a list of (title, url) pairs instead of just urls)
- src/gpodder/gtkui/main.py (add_urls_callback, i.e. gPodder.add_podcast_list must deal with (title, url) pairs instead of just urls, also check all calls to self.add_podcast_list() in this file)
- src/gpodder/gtkui/interface/addpodcast.py (in on_btn_add_clicked, we must supply a (title, url) pair to add_urls_callback())
As the "Add podcast" dialog does not have a title, we have several possibilities:
- Use None as the title value, and handle that accordingly
- Allow the user to enter a title during "add podcast", too (possibly already downloading / detecting the title while the user enters a URL? or make it optional)
- In add_podcast_list(), after the call to self.model.load_podcast it should be enough to say channel.title = <desired title> and then channel.save()
- If we do that, then in progress.on_message(url) we could use the title (if available) which makes the progress dialog nicer to the user (showing the podcast title instead of the URL)
- A side-effect of this is that by default all subscriptions from the example podcasts and podcast directory / podcast directory search will also have the title taken from the directory entry, and not directly from the feed (given that we might "cleanup" podcast titles automatically on gpodder.net [not sure if we do right now], this might be a good thing to have or something that's not that good)
As far as I know (and I've just tested this), custom titles are already exported into the OPML file, and they even show up in the selection dialog when you load the OPML file. It's just that the titles are lost from the dialog to the real subscription, because all the dialog gives back is a list of URLs to subscribe to.