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)
Sanitize the filename encoding of the cover
file, so that on Windows systems with non-utf8
locales, the filename is correctly submitted.
Thanks to Vladimir Voroshilov for the initial patch.
Request a proper width for the message label, so
that the message isn't truncated. Also fix the
positioning (parent widget / window) code.
Thanks to Vladimir Voroshilov for the initial patch.
Some feeds have cover art bigger than the size of my
laptop's screen. Which make the podcast settings dialog
really hard to use (close button out of screen).
The parameter MAX_SIZE was already defined, and just
waiting to be used.
Don't append columns and add data later, but
inject valid data at append time to avoid race
conditions when trying to read data after the
append but before data has been filled in.
Add a new configuration option that controls the
ordering of mime types when multiple enclosures
(file formats) are available in a podcast feed.
Based on an initial patch by Bernd Schlapsi.
On my iPod classic, sometimes when syncing with gpodder, some podcasts
would vanish. Opening the iPod in gtkpod and resaving the database
makes these missing podcasts reappear.
Add more support for watching the MAFW state and
for injecting a resume position and setting the
position when the episode is played back, so that
the resume function is on par with Panucci (when
opening the episode from within gPodder).
Take advantage of an entry in the file
/etc/hildon-desktop/notification-groups.conf.
If the entry exists, the notification is
layered on top of the (existing) gPodder
window, covering it in the task switcher.
This is a basic implementation of a "MAFW Status
Tracker" that monitors the signals and method calls
of MAFW on D-Bus and creates play events on D-Bus
that are (again) picked up by gPodder's interface
and merged into the local database / synchronized to
gpodder.net.
Still missing: Getting episode duration from MAFW.
If the total time of an episode action received
from the local player application is zero, use
the total time stored in the episode metadata,
as it is a better approximation than what we got
from the player (zero in that case).
Replace the focus-stealing method of opening the
new episodes window with a pynotify-based "yellow"
notification bubble that opens the new episodes list
when clicked.