=========================================================================================================================
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 (yet). 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 a mouse will likely not work, or badly
as it was never intended to be navigated with a mouse. 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. If you need it to work on more pc's at the same time, make use of MySQL as mentioned earlier.

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 the framerate of the files you play.

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.

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

The Exception 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 has found
the wrong ID. Hit enter when the ID is selected and it will search and show a list of available alternatives. It will show some
information it got from TheMovieDB.org. Pick the show that is the right one and hit enter. The ID will be replaced. 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 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, same as with TV-shows (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.

=========================================================================================================================
Youtube connection
=========================================================================================================================

If you want to view youtube videos using the program there are some things to be aware of. First of all you have to enable
it in the options menu. The option is located in the "Other" section. When you activate the option the program will open
the browser and ask you to log into google. This is required to give the program access to your youtube account through the
youtube API. You should only have to do this once. After that all the channels you're subscribed to on youtube should be
shown on screen when you open the youtube option in the main menu. Some of the data will be saved, like the channel ID's,
to speed things up a little. But other then that, everything comes directly from youtube, so it is dependent on your internet
speed. I have put some things in place to prevent errors when you try to go to fast. But things might still go wrong, so try
not to navigate through it to fast. When you open a channel the program will load the latest videos. These are the video's
you see when you open the "Videos" tab on youtube itself. Shorts, live streams, etc. will NOT be shown, EVER. I am not
interested in those and it would make the youtube part far to complicated i think.
Something else to be aware of are the limitations of the youtube API. Video lengths will not be shown, the API simply does
not have an option to get those. Same goes for whether or not you have seen a video. I would really like to sync it to youtube
itself but the API does not give out this information. If i find a solution to this i will implement it but for now you'll
have to remember which video's you've seen and which ones you haven't.
When you hit enter on a video your default browser will be opened and send you to the youtube video. Unfortunately i have
no control over your browser, so if the browser needs to update and show you an update tab or plugins you're using are updated
and need to show you a new tab then that will probably overrule the tab the explorer opens. So it's probably handy to have
a mouse around to close those.... so it's not perfect (yet) but it does work :P.

=========================================================================================================================
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.