[Moving to development list]
On Wed, 26 Aug 2009 19:52:10 +0100 (BST), P.G. wrote:
>> Would it be an idea for gtkpod to automatically change the Media Type of
>> files added to the /Podcasts/ folder to "Podcast"?
> It would be useful. If I get chance, I'll have a look into it. In the
> meantime, if you feel like sending a patch then feel free.
Good point. My C is rusty, but this patch works for me (iPod Touch
1.1.1):
---
src/misc_track.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/misc_track.c b/src/misc_track.c
index 0fa9df2..1aff233 100644
--- a/src/misc_track.c
+++ b/src/misc_track.c
@@ -2147,6 +2147,7 @@ void gp_track_set_flags_podcast (Track *track)
track->remember_playback_position = 0x01; /* remember playback
* position */
track->flag4 = 0x01; /* Show Title/Album on the 'Now Playing' page */
+ track->mediatype = ITDB_MEDIATYPE_PODCAST; /* show up under Podcasts */
}
/* set podcast-specific flags for @track */
--
1.6.3.3
Thanks for the nudge,
Adam
--
"I went for the police Adam Sjøgren
But they were all over town
asjo@...
I went for the fireengines
But they were all upside down"
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.
http://p.sf.net/sfu/bobj-july_______________________________________________
Gtkpod-devel mailing list
Gtkpod-devel@...
https://lists.sourceforge.net/lists/listinfo/gtkpod-devel