~kelemeng/banshee/bug743928

« back to all changes in this revision

Viewing changes to src/Core/Banshee.Core/Banshee.Streaming/StreamTagger.cs

  • Committer: Package Import Robot
  • Author(s): Chow Loong Jin
  • Date: 2011-11-08 13:15:58 UTC
  • mfrom: (6.3.19 experimental)
  • Revision ID: package-import@ubuntu.com-20111108131558-01mm4onctf35qgqo
Tags: 2.3.1-1ubuntu1
* Merge from Debian Experimental, remaining changes:
  + Enable SoundMenu and Disable NotificationArea by default
  + Disable boo and karma extensions
  + Enable and recommnd u1ms and soundmenu extensions
  + 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:
282
282
            } catch {}
283
283
        }
284
284
 
285
 
        public static bool SaveToFile (TrackInfo track, bool write_metadata, bool write_rating_and_play_count)
 
285
        public static bool SaveToFile (TrackInfo track, bool write_metadata, bool write_rating, bool write_play_count)
286
286
        {
287
287
            // Note: this should be kept in sync with the metadata read in StreamTagger.cs
288
288
            TagLib.File file = ProcessUri (track.Uri);
321
321
                SaveIsCompilation (file, track.IsCompilation);
322
322
            }
323
323
 
324
 
            if (write_rating_and_play_count) {
 
324
            if (write_rating) {
325
325
                // FIXME move StreamRatingTagger to taglib#
326
 
                StreamRatingTagger.StoreRatingAndPlayCount (track.Rating, track.PlayCount, file);
 
326
                StreamRatingTagger.StoreRating (track.Rating, file);
 
327
            }
 
328
            if (write_play_count){
 
329
                StreamRatingTagger.StorePlayCount (track.PlayCount,file);
327
330
            }
328
331
 
329
332
            file.Save ();