[banshee/stable-1.8] [AppleDevice] Fix podcast flag for video podcasts



commit d8c42b0e6f73ae0fab73b419ae80e1ef51fd0fcf
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Wed Dec 8 16:16:57 2010 -0600

    [AppleDevice] Fix podcast flag for video podcasts
    
    Also, set the SkipWhenShuffling flag, might be necessary for podcasts to
    be correctly categorized on some iOS devices (bgo#630209)

 .../AppleDeviceTrackInfo.cs                        |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceTrackInfo.cs b/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceTrackInfo.cs
index 2c97e02..5d85d89 100644
--- a/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceTrackInfo.cs
+++ b/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceTrackInfo.cs
@@ -240,6 +240,8 @@ namespace Banshee.Dap.AppleDevice
             if (HasAttribute (TrackMediaAttributes.Podcast)) {
                 track.Description = description;
                 track.RememberPlaybackPosition = true;
+                track.SkipWhenShuffling = true;
+                track.Flag4 = (byte)1;
                 track.MarkUnplayed = (track.PlayCount == 0);
             }
 
@@ -263,7 +265,6 @@ namespace Banshee.Dap.AppleDevice
             } else {
                 if (HasAttribute (TrackMediaAttributes.Podcast)) {
                     track.MediaType = GPod.MediaType.Podcast;
-                    track.Flag4 = (byte)1;
                 } else if (HasAttribute (TrackMediaAttributes.AudioBook)) {
                     track.MediaType = GPod.MediaType.Audiobook;
                 } else if (HasAttribute (TrackMediaAttributes.Music)) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]