Command Syntax - YAMJ/yamj-v2 GitHub Wiki

Commands for using MovieJukebox

Command Syntax

`MovieJukebox Movie Library [-i jukeboxRoot propertiesFile property=value [## Parameters

`MovieLibrary` Optional If not specified on the command line, the value of the `mjb.libraryRoot` from the properties file will be used.

The name of either
  1. an existing directory (local or network) where your movies are stored, or
  2. an [LibraryXMLInfo XML configuration file](-k]`) specifying one or more directories to be scanned for movies.
`-o jukeboxRoot` Optional If not specified on the command line, the value of `mjb.jukeboxRoot` from the properties file will be used.
Output directory (local or network) where the jukebox files will be written.
By default the is the same as the !MovieLibraryRoot.
This parameter is mandatory when using a library.xml file.
`-c` Optional Delete unused files from the generated jukebox
Note: You can also use the property [mjb.jukeboxClean](PropertiesConfiguration#mjb.jukeboxClean)
`-k` Optional Any previously-scanned movies in the output directory will be preserved verbatim.
`-i` Optional Skip the indexing of the library and generation of the HTML pages.
This should only be used with an external front end, such as NMTServer.
Note: You can also use the property [mjb.skipIndexGeneration](PropertiesConfiguration#mjb.skipIndexGeneration)
`-h` Optional Skip the creation of the HTML pages.
This is intended for use with flash skins.
Note: You can also use the property [mjb.skipHtmlGeneration](PropertiesConfiguration#mjb.skipHtmlGeneration)
`-p propertiesFile` Optional The name of the properties file to use instead of `moviejukebox.properties`.
See Properties Configuration
`-D property=value` Optional Override any property in the properties file or in the skin.properties.
This parameter may be specified as many times as necessary, once for each overridden property.
`-v` Optional Display the version information about !Moviejukebox. Note this will stop the execution at this point.
`-dump` Optional Performs a dump of the library structure for debug purposes
The library will be scanned and a directory created that can be used for debug purposes
This does not update the library or jukebox.
`-memory` Optional Turns on the display of memory information as !Moviejukebox is processing
Also performs more agressive memory clean up at the cost of some processing speed
and may help in low memory situations.
Note: You can alls use the property [mjb.showMemory](PropertiesConfiguration#mjb.showMemory)

Examples

`MovieJukebox Z:\VIDEO` Scans all files under `Z:\Video` and creates the Jukebox files in that location
`MovieJukebox Z:\VIDEO -o C:\MyJukebox` Scans all files under `Z:\Video` and creates the Jukebox files in `C:\MyJukebox`
`MovieJukebox Z:\VIDEO -c -o C:\MyJukebox` As above, but will remove any old jukebox files
`MovieJukebox library.xml -o ./TestOutput` Scans all files at all locations identified in the library.xml file and creates the index files in the `TestOutput` subdirectory of the current directory (useful for checking links before copying to the final location)
`MovieJukebox` Scans all files at the location pointed to by the `mjb.libraryRoot` property in `moviejukebox.properties`. The Jukebox files are created in the location pointed to by the `mjb.jukeboxRoot` property in `moviejukebox.properties`.
`MovieJukebox -p custom.properties` `custom.properties` will be used instead of `moviejukebox.properties`. Scans all files at the location pointed to by the `mjb.libraryRoot` property in `custom.properties`. The Jukebox files are created in the location pointed to by the `mjb.jukeboxRoot` property in `custom.properties`.
`MovieJukebox library.xml -o C:\MyJukebox -p custom.properties` Scans all files under `Z:\Video` and creates the Jukebox files in `C:\MyJukebox`. `custom.properties` will be used instead of `moviejukebox.properties`.
`MovieJukebox -D mjb.skin.dir=./skins/gfb107-sd -o C:\MyJukebox -p custom.properties` Same as above, but forces skin to gfb107-sd instead of whatever is specified in the custom.properties file.
For instructions on how to create a library.xml file look at [LibraryXMLInfo].
⚠️ **GitHub.com Fallback** ⚠️