[banshee] [AppleDevice] Fix podcast flag for video podcasts



commit 71053b75d05111b3aa49d6ea0e92021a6d8c1310
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]