Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Commit

Permalink
allow overwriting locked themes during ci testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher committed Jan 26, 2024
1 parent 8624dca commit 707cc59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ jobs:
- name: Bootstrap Plex server
env:
PLEXAPI_PLEXAPI_TIMEOUT: "60"
THEMERR_CI_TESTING: "true"
id: bootstrap
uses: LizardByte/plexhints@feat(action)-add-legacy-tv-agents # todo - switch back to release version
with:
Expand Down
2 changes: 1 addition & 1 deletion Contents/Code/plex_api_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def update_plex_item(rating_key):
except Exception as e:
Log.Error('{}: Error updating summary: {}'.format(item.ratingKey, e))

if item.isLocked(field='theme'):
if item.isLocked(field='theme') and not os.environ.get('THEMERR_CI_TESTING'):
Log.Debug('Not overwriting locked theme for {}: {}'.format(item.type, item.title))
else:
# get youtube_url
Expand Down

0 comments on commit 707cc59

Please sign in to comment.