Advertisement
Weegee

Untitled

Nov 3rd, 2010
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. exec -b ("qdbus org.mpris.clementine /Player GetMetadata")
  2. {
  3. %fe_np = $str.split($lf,$1)
  4. for(%i=0;%i<$length(%fe_np);%i++)
  5. {
  6. if($str.contains(%fe_np[%i],"title: ") == 1)
  7. {
  8. %fe_title = %i
  9. }
  10. if($str.contains(%fe_np[%i],"artist: ") == 1)
  11. {
  12. %fe_artist = %i
  13. }
  14.  
  15. }
  16. say np: $str.replace(%fe_np[%fe_artist],"artist: ","") - $str.replace(%fe_np[%fe_title],"title: ","")
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement