Lazily plays media
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
Wesley Kerfoot 4ff0cb1802 Update README 9 years ago
README Update README 9 years ago
cacher.rkt fixed race condition that would result in a document update conflict if a user url was requested multiple times before the request was allowed to complete 10 years ago
categories.html added server stuff 10 years ago
command_parser.rkt changed remove to rm 10 years ago
config_parser.rkt made config path general 11 years ago
helpers.rkt made more better 11 years ago
hostname-info.rkt removed spurious lambda, changed hostname, fixed format string bug 10 years ago
lazyplay.rkt made output even more nicer 10 years ago
lazyplay.sexp fixed bug with multiple arguments 10 years ago
links.rkt Update links.rkt 9 years ago
main.html added server stuff 10 years ago
playlist_server.rkt added check for negative numbers in user playlist page numbers 10 years ago
sent.html added server stuff 10 years ago

README

Note: this is pretty terrible code, it was written while I was still learning Racket, so if anything it needs refactoring

Alter lazyplay.sexp to tune the paths to your computer
Configure lazyplay.sexp with the file extensions you want and the arguments you want
Then move lazyplay.sexp to /etc/lazyplay.sexp (make sure it is readable by your user)
Change the arguments for mplayer between files via the terminal input (this will be started when you run lazyplay.rkt)
e.g.

> cmds -fs
>

This will make mplayer (or whatever player you have configured LP to use) use the fullscreen argument on the rest of the files
If you want to change it back to using no arguments, then just use the "cmds" command again.

If you want to add a new file to the playlist:

> add /foo/bar.avi

If you want to remove a file from the playlist:

> rm bar.avi (bar.avi can be a regular expression)

If you want to change to a different working directory:

> chdir /foo/bar

If you want to selectively add files from a directory:

> ls /foo/bar

Then add 1 2 3 ... and so on (the number of each file listed)