Skip to content

Commit

Permalink
Merge pull request #124 from luigi311/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
luigi311 authored Dec 10, 2023
2 parents 7f347ae + 2d00d8c commit 4297708
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
4 changes: 2 additions & 2 deletions src/plex.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 4297708

Please sign in to comment.