[banshee] [Metadata] SaveTrackMetadataJob should only sync local files



commit 62e46b87990f85e108d4292a4ffdad0f5d820834
Author: Andrés G. Aragoneses <knocte gmail com>
Date:   Mon Sep 20 00:16:52 2010 +0200

    [Metadata] SaveTrackMetadataJob should only sync local files
    
    This commit caused this job to try to save metadata of podcasts
    that hadn't been yet downloaded (bgo#630098):
    e219b0dfc19e0a883c65f8dd1ce64615fa81fe41
    
    Now we only sync files that start with 'file:'.
    
    Signed-off-by: Gabriel Burt <gabriel burt gmail com>

 .../Banshee.Metadata/SaveTrackMetadataJob.cs       |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Metadata/SaveTrackMetadataJob.cs b/src/Core/Banshee.Services/Banshee.Metadata/SaveTrackMetadataJob.cs
index 3f92112..b367c45 100644
--- a/src/Core/Banshee.Services/Banshee.Metadata/SaveTrackMetadataJob.cs
+++ b/src/Core/Banshee.Services/Banshee.Metadata/SaveTrackMetadataJob.cs
@@ -62,7 +62,8 @@ namespace Banshee.Metadata
             string condition = String.Format (
                 @"(DateUpdatedStamp > LastSyncedStamp OR
                   (DateUpdatedStamp IS NOT NULL AND LastSyncedStamp IS NULL))
-                  AND PrimarySourceID IN ({0})", range);
+                  AND PrimarySourceID IN ({0})
+                  AND Uri LIKE '{1}%'", range, "file:");
 
             CountCommand = new HyenaSqliteCommand (
                 "SELECT COUNT(*) FROM CoreTracks WHERE " + condition);



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