Menu

21 March 2010

Right Click - "Add to Playlist in vlc"

If you want to make a quick dirty solution for - right Click add to playlist in vlc then follow this

#cd
# cd .gnome2/nautilus-scripts
# touch "Add to Playlist"
# chmod +x "Add to Playlist"
# gedit "Add to Playlist"

---------------- Paste this code -------------

#!/bin/bash

## Ny Narendra Sisodiya, for SchoolOS
## narendra.sisodiya@gmail.com
## If you modify it, Please let me know.


IFS=$'\n'
for FILENAME in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
do
   vlc --started-from-file --playlist-enqueue "$FILENAME"
done

exit 0


------------------  SAVE and CLOSE.  ---------------


Now enjoy right click adding to vlc.

#How you can improve it.
current script do not have file extension or mimetype adding, it will add all type of files ,there should be file extension checking so that only media files allowed to add to playlist.


Posted via email from LUG@IITD Community Blog

Post a Comment