Gaps for Plex Windows Guide. Find the missing movies in your Plex Server!
Find Gaps here: https://github.com/JasonHHouse/gaps
- Download the latest release of Gaps on Windows, found on the releases page (Download the
GapsAsJar-0.10.4.zip
file). - Download the Windows YML file (
application-windows.yaml
) found here. OR right click > save as this link. - Download
OpenJDK 11.0.2 (build 11.0.2+9)
found here (Download theWindows 64-bit
zip file). OR click here.
Gaps and the YML file will be stored in this repo as well for archival purposes. So alternatively you can download them in this folder by right clicking the file > save as.
- Unzip the
GapsAsJar-0.10.4.zip
folder and place it somewhere like inside ofC:\Program Files\Gaps
(so you should now haveC:\Program Files\Gaps\GapsAsJar
with files inside that). - Place the
application-windows.yaml
file inside theGapsAsJar
folder (not sure if this file is necessary but it says so in the og wiki). - In the root of you
C:
drive create a folder calledusr
, inside that create a folder calleddata
and inside that create a file calledgaps.properties
.
(.properties
is the file extension, just create a new text document and name it gaps.properties
instead of New Text Document.txt
)
You should now have C:\usr\data\gaps.properties
.
- Unzip the
openjdk-11.0.2_windows-x64_bin.zip
folder and place it somewhere like inside ofC:\Program Files\jdk11
(so you should now haveC:\Program Files\jdk11\jdk-11.0.2
with files and folders inside that).
we will treat the jdk 11
as portable so no installation or changing of path variables or environmental variables is needed.
- Navigate to your
GapsAsJar
folder created in the previous step 1. - Open
startOnWindows.bat
with a code editor or a text editor. - Replace the 4 instances of
call java -jar
with:
call "C:\Program Files\jdk11\jdk-11.0.2\bin\java" -jar
This should be the path if you followed the previous step 4 to the letter, otherwise replace the path in qoutations with the path you created.
- Save the
startOnWindows.bat
file and close your editor.
- Inside your
GapsAsJar
folder, click the address bar and entercmd
. - A CLI should pop up and in which you enter
startOnWindows.bat
. - Give it a sec to start and run, after which you navigate to the following url in your browser:
http://localhost:8484/
TMDB (www.themoviedb.org):
- Navigate to the following link: https://www.themoviedb.org/settings/api
- Create an account if necessary.
- Get a developer API key, fill in the needed form.
- Navigate to the following link: https://www.themoviedb.org/settings/api
- Your API Key should be displayed there.
- With Gaps open in your browser, click the
Settings
tab >TMDB
option and fill in yourMovie Database Api Key
. - Click Test.
- If successful click Save.
Plex :
- With Gaps open in your browser, click the
Settings
tab >Plex
option. - Fill in your
Plex IP Address
which is usuallylocalhost
or127.0.0.1
. - Fill in your
Plex Port
which is usually32400
. - Fill in your
Plex Token
, to find yourPlex Token
do the following: - Open
Plex Web App
in your browser, login if needed, navigate to any movie, click the three dots > clickGet info
, click onView XML
at the bottom of the modal popup. - In the new page that opens, click on the address bar and at the end of the address you should find
X-Plex-Token=YOUR_TOKEN
. - Copy everything after
X-Plex-Token=
and paste it into yourPlex Token
field in Gaps. - Click Test.
- If successful click Save.
- With Gaps open in your browser click the
Libraries
tab. - Click the dropdown button and select your Plex
Movies
library. - Click the Search button to find your Plex Movies. GIVE GAPS TIME TO COMPLETE THIS SEARCH
Gaps will display the movies found in the Plex Server Library.
Note: Rerun this step for each server you want Gaps to find the missing movies in.
- Scroll to the bottom of the page and check the
entries
amount if it matches your Plex Movie library amount (It might be very slightly off due to movies that it did not find matches for). - When this search is done continue:
- With Gaps open in your browser click the
Missing
tab. - Click the dropdown button and select your Plex
Movies
library. - Click the Search button to find your missing movies. GIVE GAPS TIME TO COMPLETE THIS SEARCH (you can check your open terminal if it's still busy).
note: For large libraries, this can take a while to run. The results are stored and only need to be rerun when Plex updates. Missing movies are added as found. Do not navigate away. Gaps will still run, but you'll have to check logs to know when it is complete. It is currently easier to just leave the page open
You change the Show missing movies
setting in the Settings tab > TMDB, to set if you want All
or Released
.
Further settings can be customised in the Settings
tab of Gaps.
You might need to rerun Gaps:
In your terminal where you ran startOnWindows.bat
, press Ctrl+C
to stop Gaps
or close the CLI.
Navigate back to https://github.com/Courage-1984/Gaps-for-Plex-Windows-Guide?tab=readme-ov-file#how-to-run and follow steps.
- View https://github.com/JasonHHouse/gaps for
Gaps
general information and setup. - View https://github.com/JasonHHouse/gaps/wiki/Windows for the
Windows Wiki
forGaps
. - View https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/ for
Finding an authentication token / X-Plex-Token
- aPlex
article (this didn't help me tbh).
some sources that helped me with getting Gaps to work:
Enjoy Gaps!