//private Uri GetJpgToUrl(string name) //{ // if (name == null) // throw new ArgumentNullException("name"); // var escaped = name.RemoveNonAlphaNumerics().Replace(" ", "_"); // try // { // return new Uri(string.Format("http://{0}.jpg.to", escaped), UriKind.Absolute); // } // catch (Exception ex) // { // var m = ex.Message; // return Guid.Empty.ToUrn(); // } //} public override void Load() { if (Location.IsFile) { file = Gnosis.Tags.TagLib.File.Create(Location.LocalPath); id3v1Tag = file.GetTag(TagTypes.Id3v1) as Gnosis.Tags.TagLib.Id3v1.Tag; id3v2Tag = file.GetTag(TagTypes.Id3v2) as Gnosis.Tags.TagLib.Id3v2.Tag; //if (id3v1Tag == null || id3v1Tag.IsEmpty) // System.Diagnostics.Debug.WriteLine("ID3v1 tag is null or empty"); //else //{ // if (id3v1Tag.Album != null || id3v1Tag.AlbumArtists != null // || id3v1Tag.Comment != null || id3v1Tag.Composers != null || id3v1Tag.Conductor != null // || id3v1Tag.Copyright != null || id3v1Tag.Genres != null || id3v1Tag.Grouping != null) // System.Diagnostics.Debug.WriteLine("ID3v1 has non null tags"); //} //if (id3v2Tag == null || id3v1Tag.IsEmpty) // System.Diagnostics.Debug.WriteLine("ID3v2 tag is null or empty"); //else //{ // var x = id3v2Tag.Duration; //} } }