Commits

Arne Babenhauserheide  committed 5ca3340

babplay_randomly: Added caca option.

  • Participants
  • Parent commits e6caf41

Comments (0)

Files changed (1)

File babplay_randomly.py

 
 """Tell mplayer to randomly play all passed files. 
 
-usage: babplay_randomly.py [--help] [-fs] [DIR DIR ...] [FILE FILE ...]
+usage: babplay_randomly.py [--help] [-fs] [-caca] [DIR DIR ...] [FILE FILE ...]
 """
 
 __copyright__ = """ 
 	MPLAYER.append("-fs")
 	argv.remove("-fs")
 
+if "-caca" in argv: 
+	MPLAYER.append("-vo")
+	MPLAYER.append("caca")
+	argv.remove("-caca")
+
 # First get the list of files. 
 files = argv[1:]