mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
[32] adjust PRs
This commit is contained in:
parent
b5b8a32b0e
commit
ef3c65f877
6 changed files with 20 additions and 27 deletions
8
.github/workflows/develop.yml
vendored
8
.github/workflows/develop.yml
vendored
|
@ -17,10 +17,6 @@ jobs:
|
|||
with:
|
||||
ref: develop
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
|
@ -32,6 +28,10 @@ jobs:
|
|||
with:
|
||||
platforms: all
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Build and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v5
|
||||
|
|
8
.github/workflows/latest.yml
vendored
8
.github/workflows/latest.yml
vendored
|
@ -13,10 +13,6 @@ jobs:
|
|||
- name: Check Out Repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
|
@ -28,6 +24,10 @@ jobs:
|
|||
with:
|
||||
platforms: all
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Build and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v5
|
||||
|
|
8
.github/workflows/nightly.yml
vendored
8
.github/workflows/nightly.yml
vendored
|
@ -17,10 +17,6 @@ jobs:
|
|||
with:
|
||||
ref: nightly
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
|
@ -32,6 +28,10 @@ jobs:
|
|||
with:
|
||||
platforms: all
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Build and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v5
|
||||
|
|
2
.github/workflows/version.yml
vendored
2
.github/workflows/version.yml
vendored
|
@ -45,6 +45,8 @@ jobs:
|
|||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
push: true
|
||||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/plex-meta-manager:${{ steps.get_version.outputs.VERSION }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
- name: Discord Success Notification
|
||||
uses: meisnate12/discord-notifications@master
|
||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.19.1-develop31
|
||||
1.19.1-develop32
|
||||
|
|
|
@ -237,20 +237,11 @@ def start(attrs):
|
|||
new_version = latest_version[0] if latest_version and (version[1] != latest_version[1] or (version[2] and version[2] < latest_version[2])) else None
|
||||
if new_version:
|
||||
logger.info(f" Newest Version: {new_version}")
|
||||
def get_required_plexapi_version():
|
||||
with open('requirements.txt', 'r') as file:
|
||||
lines = file.readlines()
|
||||
for line in lines:
|
||||
if line.strip().startswith('PlexAPI=='):
|
||||
return line.strip().split('==')[1]
|
||||
return None
|
||||
|
||||
required_version = get_required_plexapi_version()
|
||||
|
||||
if required_version == plexapi.VERSION:
|
||||
logger.info(f" PlexAPI library version: {plexapi.VERSION}")
|
||||
else:
|
||||
logger.info(f" PlexAPI library version: {plexapi.VERSION} (Required Version: {required_version})")
|
||||
with open("requirements.txt", "r") as file:
|
||||
required_version = next(l.strip()[9:] for l in file.readlines() if l.strip().startswith("PlexAPI=="))
|
||||
logger.info(f" PlexAPI Version: {plexapi.VERSION}")
|
||||
if required_version != plexapi.VERSION:
|
||||
logger.info(f" PlexAPI Requires an Update to Version: {required_version}")
|
||||
logger.info(f" Platform: {platform.platform()}")
|
||||
logger.info(f" Memory: {round(psutil.virtual_memory().total / (1024.0 ** 3))} GB")
|
||||
if "time" in attrs and attrs["time"]: start_type = f"{attrs['time']} "
|
||||
|
|
Loading…
Reference in a new issue