[gpodder-devel] Configurable MTP folders

  • From: justin.forest at gmail.com (Justin Forest)
  • Date: Thu, 29 Jul 2010 01:33:54 +0400

Hello.  I've recently switched from an iPod to a Sony Ericsson mobile
phone, which is accessible as an MTP device.  It has support for
podcasts, but it only recognizes tracks as podcasts if they're in
certain folders, namely:

    Music/podcast
    Video/podcast
    Picture/podcast

Tracks from these folders show up in the "Podcasts" menu, are
highlighted until played and per-file playback positions are
remembered.

gPodder currently sends all episodes to the root folder, which makes
them regular MP3 files, without podcast-specific properties.  I'm
attaching a patch which adds configurable folders for audio, video and
image podcasts.  There is also a new option to create folders per
podcast (e.g., Music/podcast/No Agenda).  The complete list of added
config options is:

    mtp_audio_folder (str)
    mtp_video_folder (str)
    mtp_image_folder (str)
    mtp_podcast_folders (bool)

These options are only editable using the extended config editor, no
UI.

A patched version of pymtp is required for this to work on modern
systems, see <https://bugs.gpodder.org/show_bug.cgi?id=307>.

The patch applies to revision 85ba576213 from git.  I would like to
read improvement suggestions and bug reports.

PS: image podcasts only work in theory, I was unable to make gPodder
synchronize a Flickr RSS feed.  Pictures just aren't seen as episodes,
although the files are downloaded.  This is a separate issue.

-- 
Justin Forest    PGP Key-ID: 0x6B442D10
umonkey.net | deadchannel.ru | cms.molinos.ru
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Configurable-podcast-folders-for-MTP.patch
Type: text/x-diff
Size: 5062 bytes
Desc: not available
URL: 
<https://lists.berlios.de/pipermail/gpodder-devel/attachments/20100729/d3d8e8ca/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: 
<https://lists.berlios.de/pipermail/gpodder-devel/attachments/20100729/d3d8e8ca/attachment.pgp>

Other related posts: