Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exec -b ("qdbus org.mpris.clementine /Player GetMetadata")
- {
- %fe_np = $str.split($lf,$1)
- for(%i=0;%i<$length(%fe_np);%i++)
- {
- if($str.contains(%fe_np[%i],"title: ") == 1)
- {
- %fe_title = %i
- }
- if($str.contains(%fe_np[%i],"artist: ") == 1)
- {
- %fe_artist = %i
- }
- }
- say np: $str.replace(%fe_np[%fe_artist],"artist: ","") - $str.replace(%fe_np[%fe_title],"title: ","")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement