diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 121ca28..2990f5d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,7 @@ jobs: mv * ${{ github.event.repository.name }} || true zip -r $RELEASE_ZIP_FILENAME ${{ github.event.repository.name }} - name: Release on GitHub - uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 + uses: softprops/action-gh-release@4634c16e79c963813287e889244c50009e7f0981 with: files: ${{ env.RELEASE_ZIP_FILENAME }} body_path: ../release-notes/${{ github.ref_name }}.md @@ -37,15 +37,15 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - name: Sign into GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Build and push Docker images - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: . platforms: linux/amd64,linux/arm64,linux/386,linux/arm/v7 diff --git a/core/plex.py b/core/plex.py index 9316bb8..987a792 100644 --- a/core/plex.py +++ b/core/plex.py @@ -5,8 +5,8 @@ from .discord import DiscordIpcService from .imgur import uploadToImgur from config.constants import name, plexClientID from plexapi.alert import AlertListener -from plexapi.base import Playable, PlexPartialObject -from plexapi.media import Genre, GuidTag +from plexapi.base import PlexSession, PlexPartialObject +from plexapi.media import Genre, Guid from plexapi.myplex import MyPlexAccount, PlexServer from typing import Optional from utils.cache import getCacheKey, setCacheKey @@ -171,7 +171,7 @@ class PlexAlertListener(threading.Thread): return if self.isServerOwner: self.logger.debug("Searching sessions for session key %s", sessionKey) - sessions: list[Playable] = self.server.sessions() + sessions: list[PlexSession] = self.server.sessions() if len(sessions) < 1: self.logger.debug("Empty session list, ignoring") return @@ -242,7 +242,7 @@ class PlexAlertListener(threading.Thread): }, } if config["display"]["buttons"]: - guidTags: list[GuidTag] = [] + guidTags: list[Guid] = [] if mediaType == "movie": guidTags = item.guids elif mediaType == "episode": diff --git a/requirements.txt b/requirements.txt index 6e4d8ee..33f402a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ -PlexAPI==4.10.1 +PlexAPI==4.15.9 requests==2.31.0 -websocket-client==1.3.2 +websocket-client==1.7.0 PyYAML==6.0.1 -Pillow==10.1.0 +Pillow==10.2.0