Skip to content

An abstraction layer over YouTubeExplode and SpotifyExplode

License

Notifications You must be signed in to change notification settings

QueenOworld/MusicLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MusicLib

Simple C# library with a MusicTrack class and a Playlist class

Features

Playlist inherits IEnumerable and can be indexed

public struct Playlist : IEnumerable<MusicTrack> { ... }

Tracks and playlists can be fetched directly from URLs from either Spotify or Youtube

MusicTrack track = await MusicTrack.FromUrlAsync("https://www.youtube.com/watch?v=OR6olLu61u8");
Playlist playlist = await Playlist.FromUrlAsync("https://open.spotify.com/playlist/5vTqAr4UQ6i2JSa5P3Mjk0");

Playlists can be imported and exported as a file

Playlist playlist = await Playlist.FromUrlAsync("https://www.youtube.com/watch?v=L5q4uYj-gyg&list=PLGPnvYCC8I1Wu3zIL2rsM6PLwLCtU6Gsp");
playlist.Export("./playlist");

Playlist newPlaylist = new Playlist();
newPlaylist.Import("./playlist");

Download tracks

MusicTrack track = await MusicTrack.FromUrlAsync("https://open.spotify.com/track/0k6cQBcTYYxRp5gXsjDtAY?si=e07ef9d0c4054cc2");
await track.DownloadAsync("./music/intense/");

About

An abstraction layer over YouTubeExplode and SpotifyExplode

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages