Skip to content

Commit

Permalink
[92] add nightly build
Browse files Browse the repository at this point in the history
  • Loading branch information
meisnate12 committed Mar 6, 2022
1 parent 46c02f1 commit 699dbe8
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 8 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Docker Nightly Release

on:
push:
branches: [ nightly ]
pull_request:
branches: [ nightly ]

jobs:

docker-develop:
runs-on: ubuntu-latest

steps:

- name: Check Out Repo
uses: actions/checkout@v2
with:
ref: nightly

- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@master
with:
platforms: all

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1

- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: ./
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/plex-meta-manager:nightly
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.15.1-develop91
1.15.1-develop92
4 changes: 4 additions & 0 deletions config/config.yml.template
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ tautulli: # Can be individually specified
apikey: ################################
omdb:
apikey: ########
cache_expiration: 60
mdblist:
apikey: #########################
cache_expiration: 60
notifiarr:
apikey: ####################################
anidb: # Not required for AniDB builders unless you want mature content
Expand Down
11 changes: 4 additions & 7 deletions plex_meta_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,13 +433,10 @@ def library_operations(config, library):
num_edited = 0
for i, item in enumerate(tracks, 1):
logger.ghost(f"Processing Track: {i}/{len(tracks)} {item.title}")
try:
if not item.title and item.titleSort:
library.edit_query(item, {"title.locked": 1, "title.value": item.titleSort})
num_edited += 1
logger.info(f"Track: {item.titleSort} was updated with sort title")
except Failed as e:
logger.error(e)
if not item.title and item.titleSort:
library.edit_query(item, {"title.locked": 1, "title.value": item.titleSort})
num_edited += 1
logger.info(f"Track: {item.titleSort} was updated with sort title")
logger.info(f"{len(tracks)} Tracks Processed; {num_edited} Blank Track Titles Updated")

tmdb_collections = {}
Expand Down

0 comments on commit 699dbe8

Please sign in to comment.