Esempio n. 1
0
        public string RestoreLink(ResolveContext _, AudioResource resource)
        {
            var artistName = resource.Get(AddArtist);
            var trackName  = resource.Get(AddTrack);

            if (artistName != null && trackName != null)
            {
                return($"https://soundcloud.com/{artistName}/{trackName}");
            }

            return("https://soundcloud.com");
        }
Esempio n. 2
0
        public string RestoreLink(ResolveContext _, AudioResource resource)
        {
            var artistName = resource.Get(AddArtist);
            var trackName  = resource.Get(AddTrack);

            if (artistName != null && trackName != null)
            {
                return($"https://{artistName}.bandcamp.com/track/{trackName}");
            }

            // backup when something's wrong with the website
            return($"https://bandcamp.com/EmbeddedPlayer/v=2/track={resource.ResourceId}");
        }