Last active
January 31, 2016 15:43
-
-
Save mohemohe/3e024705b9dd1a358d0e to your computer and use it in GitHub Desktop.
iTunesLibrary - https://github.com/jasonsch/iTunesLibrary
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| namespace Example | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| var name = iTunesLibrary.Library.CurrentSong.Name; | |
| var album = iTunesLibrary.Library.CurrentSong.Album.Name; | |
| var artist = iTunesLibrary.Library.CurrentSong.Artist.Name; | |
| var track = iTunesLibrary.Library.CurrentSong.TrackNum; | |
| var disc = iTunesLibrary.Library.CurrentSong.Disc; | |
| var normalizedText = $"{disc}-{track}. {name} / {album} - {artist}"; | |
| Console.WriteLine(normalizedText); | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public int TrackNum | |
| { | |
| get | |
| { | |
| return Track.TrackNumber; | |
| } | |
| } | |
| public int Disc | |
| { | |
| get | |
| { | |
| return Track.DiscNumber; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment