Beispiel #1
0
        /// <inheritdoc/>
        public NowPlayingTrack GetPlayingTrackInfoLegacy()
        {
            var url   = _api.NowPlaying_GetFileUrl().Cleanup();
            var title = _api.NowPlaying_GetFileTag(MetaDataType.TrackTitle).Cleanup();

            var nowPlayingTrack = new NowPlayingTrack
            {
                Artist = _api.NowPlaying_GetFileTag(MetaDataType.Artist).Cleanup(),
                Album  = _api.NowPlaying_GetFileTag(MetaDataType.Album).Cleanup(),
                Year   = _api.NowPlaying_GetFileTag(MetaDataType.Year).Cleanup(),
            };

            nowPlayingTrack.SetTitle(title, url);
            return(nowPlayingTrack);
        }
Beispiel #2
0
 private NowPlayingTrack GetTrackInfo()
 {
     NowPlayingTrack nowPlayingTrack = new NowPlayingTrack
         {
             Artist = mbApiInterface.NowPlaying_GetFileTag(MetaDataType.Artist),
             Album = mbApiInterface.NowPlaying_GetFileTag(MetaDataType.Album),
             Year = mbApiInterface.NowPlaying_GetFileTag(MetaDataType.Year)
         };
     nowPlayingTrack.SetTitle(mbApiInterface.NowPlaying_GetFileTag(MetaDataType.TrackTitle),
                              mbApiInterface.NowPlaying_GetFileUrl());
     return nowPlayingTrack;
 }