Skip to content
This repository has been archived by the owner on Nov 13, 2019. It is now read-only.
/ MusicFM.hu Public archive

http://musicfm.hu/ WAS (2012 - 2019) one of the most popular radio station in Hungary. This is a .NET Standard 2.0 library to access the Timeline, every MusicKiller DJ's tracklist and the two chart (TOP 20 and TOP 50).

License

Notifications You must be signed in to change notification settings

PoLaKoSz/MusicFM.hu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MusicFM.hu

MusicFM.hu is the one of the most popular radio station in Hungary. This is a .NET Standard 2.0 library to can access the Timeline, every MusicKIller DJ's tracklist and the two chart (TOP 20 and TOP 50).

Install

via NuGet

PM > Install-Package MusicFM.hu

Quick start

That's all You need and can use with this library. Copied from the sample project:

using PoLaKoSz.MusicFM;
using PoLaKoSz.MusicFM.Models;
using System;
using System.Collections.Generic;

namespace ConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            var musicFM = new MusicFM();

            var MKdjTracklist = musicFM.MusicKillers.TracklistFrom.Antonyo().GetAwaiter().GetResult();
            DisplayTracklist(MKdjTracklist, "MK DJ Antonyo");


            var timeLine = musicFM.HomePage.Timeline().GetAwaiter().GetResult();
            DisplayTracklist(timeLine, "Timeline");


            var top20Tracks = musicFM.Charts.Top20.All().GetAwaiter().GetResult();
            DisplayTracklist(top20Tracks, "TOP 20");


            var top50Tracks = musicFM.Charts.Top50.All().GetAwaiter().GetResult();
            DisplayTracklist(top50Tracks, "TOP 50");

            Console.Read();
        }

        private static void DisplayTracklist(List<Track> tracklist, string name)
        {
            Console.WriteLine(name);

            for (int i = 0; i < tracklist.Count; i++)
            {
                var track = tracklist[i];

                Console.WriteLine($"\t#{i,3}\t{track.Artist} - {track.Name}");
            }

            Console.WriteLine("\n");
        }

        private static void DisplayTracklist(List<Music> tracklist, string name)
        {
            Console.WriteLine(name);

            for (int i = 0; i < tracklist.Count; i++)
            {
                var track = tracklist[i];

                Console.WriteLine($"\t#{i,3}\t{track.Name}");
            }

            Console.WriteLine("\n");
        }
    }
}

About

http://musicfm.hu/ WAS (2012 - 2019) one of the most popular radio station in Hungary. This is a .NET Standard 2.0 library to access the Timeline, every MusicKiller DJ's tracklist and the two chart (TOP 20 and TOP 50).

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages