Ejemplo n.º 1
0
        /// <summary>
        /// The query to execute.
        /// </summary>
        public override string GetQuery(QueryInfo query)
        {
            if (query.Equals (last_query, QueryField.Artist))
                return null;

            string url = "http://ws.audioscrobbler.com/1.0/artist/{0}/toptracks.xml";
            return ParseQuery (url, query.Artist);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// The query to execute.
        /// </summary>
        public override string GetQuery(QueryInfo query)
        {
            if (query.Equals (last_query, QueryField.Username))
                return null;

            string url = "http://ws.audioscrobbler.com/1.0/user/{0}/topartists.xml";
            return ParseQuery (url, query.Username);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// The query to execute.
        /// </summary>
        public override string GetQuery(QueryInfo query)
        {
            if (query.Equals (last_query, QueryField.Artist, QueryField.Album))
                return null;

            string url = "http://ws.audioscrobbler.com/1.0/album/{0}/{1}/info.xml";
            return ParseQuery (url, query.Artist, query.Album);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// The query to execute.
        /// </summary>
        public override string GetQuery(QueryInfo query)
        {
            if (query.Equals (last_query, QueryField.Artist, QueryField.Title))
                return null;

            string url = "http://lyricwiki.org/api.php?artist={0}&song={1}&fmt=xml";
            return ParseQuery (url, query.Artist, query.Title);
        }
Ejemplo n.º 5
0
        /// <summary>
        /// The query to execute.
        /// </summary>
        public override string GetQuery(QueryInfo query)
        {
            if (query.Equals (last_query, QueryField.Artist, QueryField.Title))
                return null;

            string url = "http://ws.audioscrobbler.com/1.0/track/{0}/{1}/similar.xml";
            return ParseQuery (url, query.Artist, query.Title);
        }