Mac Installation - YAMJ/yamj-v2 GitHub Wiki
Thanks to BigladUK for this guide.
- Download the latest version of !MovieJukebox from HERE
- Unrar the files and move the whole folder to the root of your applications folder.
- Ensure this folder is called !MovieJukeBox
- Download the latest version of !MediaInfo from HERE
- Run the installation
- Move the file mediainfo from the root of your drive to /applications/Moviejukebox/mediainfo/ ( This folder won't exist so you'll need to create it )
- Install Java HERE
- After you have installed this open up /Applications/!MovieJukeBox/Moviejukebox.sh in !TextEdit and change the path in there to where your java installation just went too.
- E.G. If the installation of Java went to
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Commands/
so the first line of code in the moviejukebox.sh file should begin
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Commands/java -Xms256m -Xmx512m -classpath
The version of Java that is required for YAMJ - Java SE 6 (64-bit) - is different from (and incompatible with) the version that is required for !MyiHome Mac - J2SE 5.0 (32-bit).
Java 6 was installed by Software Update but unless you specifically choose it the OS defaults to J2SE 5.0 (32-bit).
# Intel Mac users : needs java 1.6, set fullpath to java 1.6 instead of default java
# This path is usually : /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands/java
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Commands/java -Xms256m -Xmx512m -classpath .:./resources:./lib/* com.moviejukebox.MovieJukebox "$@"
Now that the application is installed you'll need to customize the library.xml to represent how your shares are and where your media is.
For MAC users, rather than using UNC paths like windows users ( i.e. \192.168.0.1\media ) use the volume paths which will need to mounted before you run the scripts. ( i.e. /Volume/Media )
Example: With 1 NAS box which has 2 shares. From the MAC where we are running the script, these media folders need to mounted before starting.
When they are mounted they can be referenced as /volumes/MoviesHDArchive
& /volumes/MoviesHDArchive2
.
The Popcorn player has 2 network share connections created on it that connect to the two shares and those connections are called MoviesHDArchive and MoviesHDArchive2
An example library.xml is shown below.
You can edit this in !TextEdit
<libraries>
<library>
<path>/Volumes/MoviesHDArchive</path>
<playerpath>file:///opt/sybhttpd/localhost.drives/NETWORK_SHARE/MoviesHDArchive/</playerpath>
<exclude name="sample,tmp/,temp/"/>
</library>
<library>
<path>/Volumes/MoviesHDArchive2</path>
<playerpath>file:///opt/sybhttpd/localhost.drives/NETWORK_SHARE/MoviesHDArchive2/</playerpath>
<exclude name="sample,tmp/,temp/"/>
</library>
</libraries>
So with all that done your almost ready to run the application.
Follow these simple instructions to run the jukebox software:
- Mount the shares required so your mac can see the media to index and also see the share where your going to write the index.html file to.
- Open terminal ( in applications/utilitles/ )
- Type
cd /applications/moviejukebox
bash moviejukebox.sh library.xml -O /volumes/movieshdarchive
( NOTE /volumes/movieshdarchive
is the share that the index.htm is written to when the indexing is completed. You can change this to wherever you want to write your indexes too )
Hopefully all that has run through successfully
- Close Terminal and unmount the shares
Further advanced users can try playing with Script Editor ( /applications/!AppleScript/ )
This seems to be working but the unmounting is happening before the script ends so it's still working progress
Open Script Editor and paste this in exactly ( but edit the paths of course for your shares )
-- Mount both Shares
mount volume "smb://icybox/MoviesHDArchive"
mount volume "smb://icybox/MoviesHDArchive2"
--tell application "Terminal"
do script "cd /applications/moviejukebox
BASH moviejukebox.sh library.xml -O /volumes/moviesHDArchive/"
--end tell
-- Eject both Shares
do shell script "diskutil unmount /Volumes/MoviesHDArchive"
do shell script "diskutil unmount /Volumes/MoviesHDArchive2"