Last active
August 29, 2015 14:09
-
-
Save hackathi/8dd0157d334d8155f193 to your computer and use it in GitHub Desktop.
Now-Playing-Script for KVIrc. Needs AMIP to get the data from your media player
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
| %secp = $($mediaplayer.position() / 1000); | |
| %minp= $(%secp / 60); | |
| %secp = $(%secp - $(%minp / 60)); | |
| %secp %= 60; | |
| %secl = $($mediaplayer.length() / 1000); | |
| %minl= $(%secl / 60); | |
| %secl = $(%secl - $(%minl / 60)); | |
| %secl %= 60; | |
| if(%secp < 10) { | |
| %secp = "0%secp"; | |
| } | |
| if(%secl < 10) { | |
| %secp = "0%secl"; | |
| } | |
| if($mediaplayer.album() == "") | |
| { | |
| %album = "Unbekannt"; | |
| } | |
| else { | |
| %album = $mediaplayer.amipEval("\%4"); | |
| } | |
| me $k(7)hört gerade: $b() $k(3) $mediaplayer.title() $k(0)-$k(3) $mediaplayer.artist() $k(4)($k(0)aus$k(3) %album$k(0)\;$k(3) %minp:%secp $k(0)von$k(3) %minl:%secl $k(0)\;$k(3) $mediaplayer.bitRate() $k(0)kbps$k(4)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment