-
-
Notifications
You must be signed in to change notification settings - Fork 49
Home
Mostly complete tutorial and info on the various scripts, not really though...
Before doing any of this you should read the whole wiki, in order to check that your folder structure and filenames are correct or to find out what options you should change.
Clone the repository to your webserver (git clone https://github.com/pastapojken/Myflix.git
), get into Myflix/scripts
edit the config.cfg file to match the path of media folders ( I STRONGLY recommend that you use shortcuts to your media folders, so that the full path of the files remains hidden, hence making this all more secure). You will also need to register to TMDB in order to obtain an api key, which you can find more info about here. Once you have your key, simple paste it inside the quotation marks of the TMDBapi variable, so that it looks like this: TMDBapi="abcdefghi..."
After editing the config, you will want to run ./buildDBs.sh 3
and, once that is done, ./buildHtml.sh 3
. In theory you are done, now simply access the generated html through your browser and everything should simply work! (and if it's kind of broken, odds are you can simply edit the json database to fix stuff for you!)
ATTENTION!
The tv show part is waaay more complicated than the movie part of the program, as in, it kind of relies on having a specific folder structure for your tv shows/episodes. The script also gets an episode's number and season by analyzing the filename, so they have to contain this information.
So, by the default, the script kind of expects a tv show to adhere to the following pattern:
/path/to/files/NameofTVshow/Season.1/NameOfTVshow.S01E01.mp4
In order to have episodes matching their seasons, all episodes of a season should be inside their own folder, so that if your tv show has the path /path/to/files/NameofTVshow/
and you have 10 seasons of it, you will have subfolders names Season.1 through Season.10, with the matching episodes inside, as the script counts the subfolders of /path/to/files/NameofTVshow/
to find out the number of available seasons.
The scripts look for any .srt
file matching the name of the video, it also detects language ( and thus creates different options in the player) by checking if there is a _lang
before the extension ( for example: MyMovie_esp.srt
will be identified as esp
). If your subtitle's name is just MyMovie.srt
the scripts assume it's english.
If you want to password protect your myflix files, you might want to look at this!