Revision: 2383
          http://gtkpod.svn.sourceforge.net/gtkpod/?rev=2383&view=rev
Author:   phantom_sf
Date:     2009-09-03 21:34:24 +0000 (Thu, 03 Sep 2009)

Log Message:
-----------
Files added to /Podcasts/ - automatically change the Media Type to "Podcast"?

[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):

Modified Paths:
--------------
    gtkpod/trunk/src/misc_track.c

Modified: gtkpod/trunk/src/misc_track.c
===================================================================
--- gtkpod/trunk/src/misc_track.c       2009-08-19 20:05:50 UTC (rev 2382)
+++ gtkpod/trunk/src/misc_track.c       2009-09-03 21:34:24 UTC (rev 2383)
@@ -2147,6 +2147,7 @@
     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 */


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
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-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to