Replies: 6 comments 7 replies
-
You should create PR anyway, even if it does not get merged (or why be afraid of PR in the first place?), otherwise can't see or comment on the code. if I comment in the commit, then the comments are spread around and no overview of feedback. |
Beta Was this translation helpful? Give feedback.
-
I mainly did not submit a PR earlier because this is not a completed feature and there are some things that should be discussed before even considering merging this (the points I mentioned above). Also, after watching the first couple of minutes of GitHub Universe, I realized this should not be an issue but a discussion, a feature I didn't know GitHub has. To try this out, I am converting this to a discussion right after writing this. |
Beta Was this translation helpful? Give feedback.
-
Good move. I like it. I will test it later. I think presence of all configs files should be checked before launching crond. |
Beta Was this translation helpful? Give feedback.
-
I've never used cron, because it seemed to me it would record watch time earlier, while I was still watching movie. something like:
maybe there's something more to it, but I just disabled cron, and continue to invoke sync script manually when I'm not watching anything at the time. |
Beta Was this translation helpful? Give feedback.
-
I worked on a PR to improve connection to Plex. |
Beta Was this translation helpful? Give feedback.
-
Most up to date discussion is in issue instead: |
Beta Was this translation helpful? Give feedback.
-
As you might have seen, I have pushed the work in progress docker branch. I am currently testing the built image in my home setup (with this image as well as Plex running in Kubernetes administered via Rancher) but I have made some changes to how the script works, files have been reorganized etc. so I wanted to discuss them here first before even submitting a pull request:
What might be the most controversial change, is that I am rerouting the log outputs to stdout if the terminal is non-interactive. I use it to detect if the script is running in a container since Docker containers should output to stdout/stderr and let Docker take care of the logging. Do you agree the script should no longer write to
lastRun.log
if it is running in a container and is thesys.isatty(0)
check okay or should I add an argument likepython3 main.py --log-to-stdout
so this is easier to control?Since the file structure changes alone constitute some manual work when upgrading from an older version of PlexTraktSync, I also propose we create a release 0.9.0 before merging the pull request for this once the feature is complete and then release 1.0.0 along with the docker image (I'd like to try Github Packages as the image registry and create a Github action that automatically builds, tags and pushes each new release in the future)
@glensc @twolaw what do you think about these changes? If you want to test them out locally it should suffice to
docker-compose up --build
after pulling the branch. Are there other things I should add to the image prior to release (for example atm the container always runs as root. I didn't deem it necessary to make it possible to change this since the container just mounts the config directory and is not accessible from the outside because it does not listen for incoming connections)Greez
Taxel
Beta Was this translation helpful? Give feedback.
All reactions