Merge pull request #124 from luigi311/dev

Dev
pull/128/head
Luigi311 2023-12-10 09:56:19 -07:00 committed by GitHub
commit 4297708d3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 2 deletions

View File

@ -96,6 +96,15 @@ Full list of configuration options can be found in the [.env.sample](.env.sample
docker run --rm -it -v "$(pwd)/.env:/app/.env" luigi311/jellyplex-watched:latest
```
## Troubleshooting/Issues
* Jellyfin
* Attempt to decode JSON with unexpected mimetype, make sure you enable remote access or add your docker subnet to lan networks in jellyfin settings
* Configuration
* Do not use quotes around variables in docker compose
## Contributing
I am open to receiving pull requests. If you are submitting a pull request, please make sure run it locally for a day or two to make sure it is working as expected and stable. Make all pull requests against the dev branch and nothing will be merged into the main without going through the lower branches.

View File

@ -422,5 +422,7 @@ def main():
sleep(sleep_duration)
except KeyboardInterrupt:
if len(times) > 0:
logger(f"Average time: {sum(times) / len(times)}", 0)
logger("Exiting", log_type=0)
os._exit(0)

View File

@ -308,7 +308,7 @@ def update_user_watched(user, user_plex, library, videos, dryrun):
msg = f"Plex: {movies_search.title} as partially watched for {floor(video_status['time'] / 60_000)} minutes for {user.title} in {library}"
if not dryrun:
logger(msg, 5)
movies_search.updateProgress(video_status["time"])
movies_search.updateTimeline(video_status["time"])
else:
logger(msg, 6)
@ -353,7 +353,7 @@ def update_user_watched(user, user_plex, library, videos, dryrun):
msg = f"Plex: {show_search.title} {episode_search.title} as partially watched for {floor(video_status['time'] / 60_000)} minutes for {user.title} in {library}"
if not dryrun:
logger(msg, 5)
episode_search.updateProgress(video_status["time"])
episode_search.updateTimeline(video_status["time"])
else:
logger(msg, 6)