/usr/share/amsn/plugins/music/infovlc is in amsn-data 0.98.9-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | #!/bin/bash
#
# Shell-script to get info from the current song in VLC
#
# Author: nicolunacba (Nicolas Luna)
#
# WARNING: To get this plugin enabled, in VLC go to
# Tools -> Preferences -> Show all -> Interface -> Control
# Interface, and enable DBUS
#
# Check if VLC Player is ON
ACTIVE=`ps ax | grep -v grep | grep " vlc"`
if [[ -z $ACTIVE ]]; then
echo 0
exit 0
fi
# Get the MetaData about the current song
ARTIST=`qdbus org.mpris.vlc /Player GetMetadata | grep "artist:"`
TITLE=`qdbus org.mpris.vlc /Player GetMetadata | grep "title:"`
LOCATION=`qdbus org.mpris.vlc /Player GetMetadata | grep "location:"`
# Parse it ...
ARTIST=${ARTIST:7}
TITLE=${TITLE:6}
LOCATION=${LOCATION:9}
# And display it :-)
echo 1
echo $ARTIST
echo $TITLE
echo $LOCATION
exit 0
|