Ejemplo n.º 1
0
        private void ProcessTrack(Track track, SQLiteConnection conn)
        {
            try
            {
                MetadataUtils.FillTrack(this.fileMetadataFactory.Create(track.Path), ref track);

                track.IndexingSuccess = 1;
            }
            catch (Exception ex)
            {
                // When updating tracks: for tracks that were indexed successfully in the past and had IndexingSuccess = 1
                track.IndexingSuccess       = 0;
                track.IndexingFailureReason = ex.Message;

                LogClient.Error("Error while retrieving tag information for file {0}. Exception: {1}", track.Path, ex.Message);
            }

            return;
        }
Ejemplo n.º 2
0
        private void ProcessTrack(Track track)
        {
            try
            {
                MetadataUtils.FillTrack(new FileMetadata(track.Path), track);

                track.IndexingSuccess = 1;

                // Make sure that we check for album cover art
                track.NeedsAlbumArtworkIndexing = 1;
            }
            catch (Exception ex)
            {
                track.IndexingSuccess       = 0;
                track.NeedsIndexing         = 0; // Let's not keep trying to indexing this track
                track.IndexingFailureReason = ex.Message;

                LogClient.Error("Error while retrieving tag information for file {0}. Exception: {1}", track.Path, ex.Message);
            }
        }
Ejemplo n.º 3
0
        private void ProcessTrack(Track track, SQLiteConnection conn)
        {
            try
            {
                MetadataUtils.FillTrack(new FileMetadata(track.Path), ref track);

                track.IndexingSuccess = 1;

                // Make sure that we check for album cover art
                track.NeedsAlbumArtworkIndexing = 1;
            }
            catch (Exception ex)
            {
                // When updating tracks: for tracks that were indexed successfully in the past and had IndexingSuccess = 1
                track.IndexingSuccess       = 0;
                track.IndexingFailureReason = ex.Message;

                LogClient.Error("Error while retrieving tag information for file {0}. Exception: {1}", track.Path, ex.Message);
            }

            return;
        }