Skip to content

Commit

Permalink
Fix PAL caching subtitle streams issue
Browse files Browse the repository at this point in the history
This issue seemed to only happen specifically when the `update_strategy` was set to `next`, setting it to `all` never seemed to run into this issue.

Fixes RemiRigal#109
  • Loading branch information
JourneyOver committed Dec 23, 2024
1 parent 4cf3f1e commit 9028c2e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ README.md

# Application-specific files and directories
tests/
config.example.yaml
4 changes: 2 additions & 2 deletions config.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ plexautolanguages:

# Update all episodes of the show/season or only the next ones
# Accepted values:
# - all (default)
# - next
# - all
# - next (default)
update_strategy: "next"

# Whether or not playing a file should trigger a language update, defaults to 'true'
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from plex_auto_languages.utils.healthcheck import HealthcheckServer

# Version information
__version__ = "1.3.1-dev1"
__version__ = "1.3.1-dev2"

class PlexAutoLanguages:
"""
Expand Down
2 changes: 1 addition & 1 deletion plex_auto_languages/alerts/playing.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def process(self, plex: PlexServer):
)
if item.key in plex.cache.default_streams and plex.cache.default_streams[item.key] == pair_id:
return
plex.cache.default_streams.setdefault(item.key, pair_id)
plex.cache.default_streams[item.key] = pair_id

# Change tracks if needed
plex.change_tracks(username, item, EventType.PLAY_OR_ACTIVITY)

0 comments on commit 9028c2e

Please sign in to comment.