SDownload.Framework.Streams.SCTrackStream.Finish C# (CSharp) Method

Finish() public method

Updates the ID3 tags for the song file, then moves it into iTunes if the setting is enabled.
public Finish ( bool close = true ) : bool
close bool
return bool
        public override bool Finish(bool close = true)
        {
            View.Report("Finalizing");
            try
            {
                UpdateId3Tags();
                AddToiTunes();
            }
            catch (Exception e)
            {
                // Should have been handled already
                View.Report("Invalid file!", true);
                CrashHandler.Throw("Invalid file was downloaded!", e);
                return false;
            }

            // Log the song genre to see how SDownload is used
            if (Genre != null && !Genre.Equals(String.Empty))
                BugSenseHandler.Instance.SendEventAsync(Genre);

            base.Finish(close);
            return true;
        }