~snicksie/banshee/fix-for-905260

« back to all changes in this revision

Viewing changes to src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Data/PodcastSource.cs

  • Committer: Package Import Robot
  • Author(s): Chow Loong Jin
  • Date: 2011-12-12 01:40:00 UTC
  • mfrom: (6.3.20 experimental)
  • Revision ID: package-import@ubuntu.com-20111212014000-0q4jsvif0oecyth8
Tags: 2.3.2-1ubuntu1
* Merge from Debian Experimental, remaining changes:
  + Enable and recommend SoundMenu and Disable NotificationArea by default
  + Disable boo and karma extensions
  + Enable and suggest u1ms
  + Move desktop file for Meego UI to /usr/share/une/applications
  + Change the url for the Amazon store redirector
  + [08dea2c] Revert "Fix invalid cast causing ftbfs with libgpod"

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 
43
43
using Banshee.Gui;
44
44
using Banshee.Base;
 
45
using Banshee.Query;
45
46
using Banshee.Database;
46
47
using Banshee.Collection;
47
48
using Banshee.ServiceStack;
213
214
            TrackArtworkIdHandler = GetTrackArtworkId;
214
215
            MediaTypes = TrackMediaAttributes.Podcast;
215
216
            NotMediaTypes = TrackMediaAttributes.AudioBook;
216
 
            SyncCondition = "(substr(CoreTracks.Uri, 0, 4) != 'http' AND CoreTracks.PlayCount = 0)";
 
217
            SyncCondition = String.Format ("(substr({0}, 0, 4) != 'http' AND {1} = 0)",
 
218
                                           BansheeQuery.UriField.Column, BansheeQuery.PlayCountField.Column);
217
219
            TrackModel.Reloaded += OnReloaded;
218
220
 
219
221
            Properties.SetString ("Icon.Name", "podcast");