=========================================================================================================================
Main program
=========================================================================================================================

To run this program you can just start it up. As soon as you run it, you will only see the Options button. Hit enter to
open it. In the Media Options (top), put in a media program. It can be any program that can play your files. However if 
you are using a gamepad, know that you can only control MPC-HC/MPC-BE with it. Other programs are not supported (yet).

Then add folders which contain folders with your media files. Note here that you can only add folders which contain 
folders, if you add folders which contain media files they will be ignored.
If you have folders with TV shows you can add the paths to them in the TV Show option. The same can be done with Movies. 
if you add multiple folders. They will be thrown together in 1 item on the main menu and it will show all the 
movies/tv-shows together. To keep everything working right make sure media folders do not contain both media files and 
folders. This Program cannot handle folders with both folders and media files in them. If it finds any media files, 
everything else will be ignored and only the media files will be shown. If you save your database file in a different
location then the app folder you can set a path to it in the "other" options menu.

This program can also be controlled with a controller/gamepad. Go to the options menu and then navigate to the
gamepad option. You can select either XInput(xbox controller) or DirectInput(PS3/4/5 controller) and also see what button
does what in the program. This menu is not complete and does currently not show the button combinations for MPC-HC/BE.
This is because i do not use a gamepad myself and i am to lazy to update it. Also, i don't have enough room on the
screen to show it all and don't really have a good idea to show it :P. Might come in a future update.

The program currently only has support for the following media files:

MKV
AVI
MP4
MOV
TS
WMV
M4V
M2TS

Others may be supported in the future but these are the most used ones. If you need more, let me know, it's easy to add.

This program is only a hub to start other programs. It cannot play files by itself. If you want to play bluray movies you
will have to get a program for that and play the movies through that. This program was tested with Total Media Theatre and
PowerDVD. The media program can be anything that can play the file types mentioned above. The program was mostly used with
MPC-HC but has also been tested with VLC. 

After selecting a file to play, the media program will be run and after 30 seconds of playtime the program checks if the
file is still playing, if it is then the file will be marked with today's date (day-month-year) indicating that the file 
has been played. This way you can keep track of what files you have played before and when the last time was.

=========================================================================================================================
The database
=========================================================================================================================

By default the program will use SQLite. This will create a local .db file in which all the information the program creates
will be stored. Nothing extra is needed for this.
In the event you want to use MySQL as your database, you will have to create a database called "hellyexplorer" on your server.
You can then enter the login info in the program in the options menu under the "other options" menu. If you get the green
text saying "Connected!" it's all working and the database should now contain the tables used by the program. 
I do not recommend editing the database (especially when the program is running) as it can mess things up.
Editing the database when the program is running is pointless as of version 4.1 of the program. The database is loaded into
memory at the start of the program and any changes in the database itself will be completely ignored unless done by the
program itself. If you want to change a value in the database do so before running the program.

=========================================================================================================================
The options screen
=========================================================================================================================

You MUST navigate the options menu with either the keyboard or a controller. Using the mouse will make you get stuck and 
unable to get out of the options menu. Might be fixed in the future but will take a while as it has no priority. To put 
executable files in the fields for media program etc. Navigate to the folder where the executable is located and select 
it and press "enter". This will fill in the path and file name.

To add folders into the Media Folders select the folder you want to add and press "CTRL+A". Do not open the folder itself but
just select the root folder you want to add and press "CTRL+A". The same goes for adding the path to the TV shows and Movies.

Under the "Other" option menu you can find the "DB Location option". This only needs to be filled in if the database is located
anywhere else then the program's own folder. It can be used to put the database on a network and accessable by different PC's.
Be aware though that the database cannot be used by 2 pc's at the same time. It will give a "database is locked" on the 2nd
PC that tries to use it. Might be fixed in a future update as i plan to implement a way to use MySQL, but this brings 
different issues with it. Like entering a username and password for the MySQL server.

Auto Refreshrate is an option that has not yet been implemented. It will be used in the future to change the refreshrate
of the connected display to 24Hz. This will fix issues with certain displays having choppy playback with files that are 
24fps.

Twitch username is used to watch twitch streams from the program. This might not work for you as it is currently hardcoded
to only work with firefox. If you use firefox this program will launch the browser connecting to a website on my personal
server and open a webpage that opens a twitch stream. It won't be in fullscreen and if the stream is for mature audiences
only you will require a mouse to click the button. I currently have no fix for that to make the controller/keyboard able
to click the button. If the stream has started however you can simply hit enter to set the stream to fullscreen. A gamepad
button has yet to be assigned for this, look for it in a future update.

The Clean DB button will go through all the media folders and TV show and movie folders to check the entire database against
what is in those folders. Anything that is in the database but not in the folders will be removed from the database. In the
case of movies and TV-shows, any images connected to the files are also removed. Caution when doing this though. If you use 
multiple locations for TV shows or movies on external drives and they are not connected at the time, the files wont be found 
and the program will delete the images and data from the database. So make sure you connect all media before doing this.

=========================================================================================================================
Exception program
=========================================================================================================================

The Ex program option is used for files that don't play right with the main media program. To play a file with the
exception program select the file and press CTRL+ENTER. The exception program will be launched and play the file you
selected. After 30 seconds of playtime the program checks if the file is still playing, if it is then the file will be 
marked with today's date (day-month-year) indicating that the file has been played.

=========================================================================================================================
TV Shows and images
=========================================================================================================================

The program can get images for TV shows, seasons and episodes. To use this feature you will need to add the path to the
folder containing these shows in the options menu. The path can be filled in under the TV show menu. After doing so the
folder will be scanned and the shows will be added in the box underneath it. To make the program get the information of 
all the shows press "CTRL+U" in the main menu. It will show a progress box while it's working. Just wait for it to finish. 

Next to the name of the show in the options menu (which is the name of the folder you've given the show) will be a box 
that will contain the tv show ID that TheMovieDB.org has assigned to the show. If it ever happens that the program found the 
wrong ID for the show you can look up the show on the website yourself and fill in the right ID. To fix the episode names
and all the images. Go to the series folder and put the selection on the show and press "CTRL+D". Then choose yes in the box.
This will delete all the images and episode names from the program. Then simply press "CTRL+U". It will detect the new ID and 
get the right names and images.

If you wish to avoid all that you should add the year the show started to the name of the folder, for example: 
The Flash (2014), this should make the program find the right ID immediately without you having to do anything manually.

The first box next to the ID box will indicate that the episodes should be named using absolute episode numbers. This is
now broken and no longer usable. Expect it to disappear in a future version (probably the next).

The second box indicates that the TV-show has ended and will no longer be changed. This will make the update process skip
this TV-show so the update process goes faster. With a few shows this will not change much. But when you have dozens of 
shows needing updates regularly it will make a significant difference in the time it takes to update all the shows.

=========================================================================================================================
Movies and images
=========================================================================================================================

The program can get images and info for movies. To use this feature you do the same as with the TV shows, enter the path
into the field in the options menu under Movie. Below will be a box which will show all the ID's as they are on IMDB. If
the program ever finds the wrong ID you can change it to the right one here (has never happened to me yet so it is unlikely
to happen, tested on >500 movies). Do make sure you used the naming rules below, otherwise errors are much more likely to 
happen. All of the info comes from TheMovieDB.org. I just like the IMDB id's better.

=========================================================================================================================
Naming rules for movies and tv shows
=========================================================================================================================

for movies:
[name.of.the.movie].[year].[format]
name.of.the.movie: Replace each space with a dot. just spaces should technically work but is untested :P
year: year the movie was released. Is required for searching on TMDB for the info. Might find wrong movie if this is missing.
format: 480p, 720p, 1080p or 2160p, anything else will be ignored and might cause things to go wrong.

for TV shows:
Series folder: [name] (year), year is optional but will make the program more likely to find the right ID.
season folders: s(0)[number], the 0 is optional. Season (0)[number] also works, as do a few others. But s(0)[number] is 
recommended. With more then 10 seasons and only 1 digit, the program will put the tenth season below the first making this
a little confusing, so i recommend using 2 digits.
episode names: (seriesname).(whatever).[SxxExx], seriesname and whatever comes after is optional. the name MUST contain 
SxxExx(ex. s01e01). in theory episode.01 can work, but only if the season is in a season folder and not directly in a series 
folder.

=========================================================================================================================
Other features
=========================================================================================================================

The option called "Auto Re-take Focus" from previous version has been build in and is always on it won't hurt anything and
still retake focus should it be lost to the media program. There have been problems with this though, it might not work
100% of the time.

=========================================================================================================================
Program Keyboard Shortcuts / Usable Keys
=========================================================================================================================

Arrow Keys	=	Navigate through the program
Enter		=	Activate selected item (open folder, open video file, etc..)
CTRL+ENTER	=	Play with Exception program
F		=	Make emulator game favorite
CTRL+U		=	Update the TV-show and Movies info (only in main menu)
CTRL+D		=	Delete all images and info of the selected TV-show, delete movie info
H		=	Go back to the home menu from the TV-show or Movie screens
Home		=	Go to beginning of the list (usable in TV shows, movies, folders, options menu)
End		=	Go to end of the list (usable in TV shows, movies, folders, options menu)
PageUp		=	Go to the first item on the page in options menu. Go up several rows in tv shows and movies.
PageDown	=	Go to the last item on the page in options menu. Go down several rows in the tv shows and movies.
B		=	Go back in the options menu, or out of the options menu.
CTRL+A		=	Add the selected item, in the options menu browser.
CTRL+E		=	Edit the media folders list. (Use B to go back out of editing.)
D		=	Remove an item from the media folders list while editing it.