Page 1 of 1

Help with command line basics please...

PostPosted: Wed Nov 28, 2018 9:38 pm
by KnowFear
Goal:
Start up SMplayer
Load up a .xspf playlist file
Shuffle mode (sometimes - selectable ahead of time)
Start Playing


Works:
Starts up SMPlayer

No Worky:
No load of .xspf
No change in Shuffle mode (judging by the icon not changing highlight)
No Run - just "unexpectedly quite" message in the open SMPlayer window


Windows 7 and Windows 10 Machines
Latest SMPlayer 18.10.0-win32 - ditto for earlier version 18.6.0-win32


Please point me to any latest valid info on "how to use the command line for dummies" - I see a few when I do a search, but the ones I have studied are incomplete and contradictory. Or not for Windows. I can not make sense of the error messages I sometimes see in the logfile, but can post if you think that would help.


Latest command line that I tried (and I have tried several, but this one is very similar to the one that works to start up and play from VLC) ===>
C:\Program Files\SMPlayer\SMPlayer.exe file:///C:\Users\UWB\Documents\Classic TV 29.xspf --shuffle


Note: I can drag-n-drop "Classic TV 29.xspf" onto the SMPlayer desktop shortcut, and all starts up properly and plays.


Thanks

Re: Help with command line basics please...

PostPosted: Sat Dec 01, 2018 12:01 am
by KnowFear
Ok, after futzing some more - the command line that work to start up SMPlayer using an xspf playlist file must apparent contain NO spaces in the file nae. Go figure.

No Worky :(
C:\Program Files\SMPlayer\SMPlayer.exe file:///C:\Users\UWB\Documents\Classic TV 29.xspf --shuffle

Worky 8-)
C:\Program Files\SMPlayer\SMPlayer.exe file:///C:\Users\UWB\Documents\ClassicTV29.xspf --shuffle


After staring at the log file a while, it appears that SMPlayer counts everything after a <space> character as a "new argument".


Now, next Q - can not get shuffle and repeat to fire up in the player once it starts up via the prev command line..

Any advice on how to get shuffle and repeat working? How to turn them off (if needed) next time I start up SMPlayer?


Win7 Win10

Re: Help with command line basics please...

PostPosted: Sat Dec 01, 2018 10:41 am
by rvm
If a filename contains spaces you should use quotes: "file:///C:\Users\UWB\Documents\Classic TV 29.xspf"

To turn on shuffle and repeat in the playlist: -actions "pl_shuffle true pl_repeat true"

Re: Help with command line basics please...

PostPosted: Sun Dec 02, 2018 1:07 am
by KnowFear
thanks much - that did it.