Skip to content
Find the missing movies in your Plex Server
JavaScript Java HTML CSS Dockerfile
Branch: master
Clone or download
Latest commit a3b5919 Dec 9, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Core Remove unused dependency. Dec 9, 2019
GapsWeb Reducing search calls by saving out collection information Dec 8, 2019
gifs
images Docker icon Nov 25, 2019
.gitignore ignore feed file Dec 9, 2019
Dockerfile Switching to v0.0.6 Dec 6, 2019
LICENSE Create LICENSE Feb 2, 2019
README.md Update wiki Dec 9, 2019
docker-compose.yaml Adding docker compose file Oct 22, 2019
env.list Adding code to build docker correctly in the startup.sh Feb 14, 2019
gaps-unraid.xml Update gaps-unraid.xml Nov 26, 2019
movieIds.json Cleaning up gaps, adding io service, adding seed file Dec 6, 2019
pom.xml Switching to v0.0.6 Dec 6, 2019
test_cases.txt Hardening code May 23, 2019

README.md

Gaps

Gaps searches through your Plex Server or local folders for all movies, then queries for known movies in the same collection. If those movies don't exist in your library, Gaps will recommend getting those movies, legally of course.

Setup

Docker

Gaps runs in Docker, so you'll need a basic ability to download and run a container. If you already have Docker, skip to installing and running.

Underneath the covers, Gaps runs as a Spring Boot app. Don't worry about it though. The container will pull down Java for you and automatically run the jar.

Docker has a good write up on installing Docker CE. Check it out here. Once you get docker up and running

Installing and Running

With Docker installed, you'll need to now pull down the latest Gaps image. The Gaps image is hosted here.

To pull the image, run the following command in a terminal

docker pull housewrecker/gaps

You now have the Gaps image and you need to do a little configuration. The command to run Gaps follows

docker run -d -p 8484:8484 --name mygaps --expose 32400 housewrecker/gaps:latest

Important Notes

  1. -p or publish exposes maps ports from the container to the outside world. Docker has a great write up here.

    Note: If 8484 is in use on your system, change the publish command to -p :8484

  2. --name mygaps sets the name of the local running container. You can change it to whatever you want, just don't forget the name in the future!

  3. --expose 32400 is there to communicate with Plex. By default, Plex is set to 32400 by default. If you've changed the port, change that here.

Once all those values are updated correctly for your system, you can run the command and Gaps will start up.

To track the logs from Gaps, use the following command. Again, change the container, if you changed the name.

 docker logs -f mygaps

Usage

To see Gaps, open up your browser and navigate over to the ip address and port you set for Gaps.

If your browser is on the same machine running Docker and you did not change the port, then you can navigate to

https://localhost:8484

Or

https://127.0.0.1:8484 

You should be presented with this screen

Home Page

Landing Page

On this screen, you need to enter your Movie Database Api Key. The page has information on getting the key. The basics are that you'll need navigate over to The Movie DB, create an account, and make an API Key. Then you would copy that key into the Api Key field.

Plex Connection

Note: Right now only searching via Plex is working. In time, I'll add back in searching by folder.

Click the Search via Plex button and move on to the next page.

Plex Configuration

With your Movie DB key added, now we need to configure the information to connect to Plex.

Plex Connection

On this page, you'll need to configure how you connect to Plex. This includes three main things: the host/ip address of Plex, the port Plex uses, and your personal Plex Token.

The host/ip address and port are the same ones you use to connect to Plex via the web. It could look something like this

https://localhost:32400/web/index.html

Or

https://127.0.0.1:32400/web/index.html

If Plex and Gaps are both running in the same Docker, you may need to use the IP address on the local network. Example

https://192.168.1.10:32400/web/index.html

So, in the first case the host is localhost and the port 32400. In the second case, the host is 127.0.0.1 with the same port.

Lastly, you'll need to get your personal Plex Token. If you do not know already it's easy to find. Plex has a great write up here about how to find your token.

Once you have those three, click next.

Note: In the title bar, if you ever need to jump back a bit, you can click any of the sections to make an edit.

Libraries

On the Libraries page, Gaps will try to connect to Plex and if successful it will return the 'Movie' type libraries it found.

Plex Movie Libraries

Select any or all of the movie libraries you want to search. You must select at least one.

Results

Once you've started searching, the movies will start populating on the final page.

Plex Movie Libraries

License

Copyright 2019 Jason H House

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

You can’t perform that action at this time.