Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Addresses #2
changes
Updates
build_json.py
to take in as a commandline argument the path to write the JSON update file. This is useful for the running the project within a container.Updates
write_to_plex.py
to take in the path to the JSON update file as an argument.Adds
Dockerfile
for building a containerized version of this project.Adds a wrapper script
run-in-docker.py
that wraps building the container from theDockerfile
as well as running the two scripts inside the containertesting
I've verified that docker image building and running
build_json.py
work successfully. As I myself do not need this info in the movie descriptions and have a rather large library who's DB I don't have backed up, I did not test outwrite_to_plex.py
.todo
However I will look into running a copy of my plex server's DB in a local testing container to test
write_to_plex.py
against. This might even be able to be extracted into a generic integration test that the project could run against in Travis or the like.also wanted to say i really like the idea of making this a plex metadata agent but i'd be hesitant investing time and effort into doing so since it seems like plex is phasing out that ability: https://www.reddit.com/r/PleX/comments/9n9qjl/subzero_the_future/ . As niche as it is, jellyfin might be a better target for that effort, though that would require a re-write in a dot Net language or verifying this works under IronPython so who knows.