MTP: Configurable podcast folders (bug 1098)
commit3d4ae773393984d0c0abdc529ce43b866abc5346
authorJustin Forest <justin.forest@gmail.com>
Wed, 28 Jul 2010 21:27:08 +0000 (29 01:27 +0400)
committerThomas Perl <thp@thpinfo.com>
Mon, 23 Aug 2010 21:07:01 +0000 (23 23:07 +0200)
treefcc32cf2cf68380f2a420db3a2302f9fb6488bc8
parent060ba862ddb6f9d484f86c94f69a14bf1ee542e5
MTP: Configurable podcast folders (bug 1098)

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.

Attached is 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)
src/gpodder/config.py
src/gpodder/sync.py