diff --git a/README.md b/README.md index 8b6cfdd..476f933 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/src/main.py b/src/main.py index 05b5c96..fa99a63 100644 --- a/src/main.py +++ b/src/main.py @@ -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) diff --git a/src/plex.py b/src/plex.py index 87b2b3a..01049c2 100644 --- a/src/plex.py +++ b/src/plex.py @@ -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)