Skip to content

Commit

Permalink
Silenced handled errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Casvt committed Sep 10, 2024
1 parent f8a26a2 commit 5b7923e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion media_versions/auto_optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def auto_optimize(
else:
print(f' Not optimized for {profile}; optimizing')

plex.fetchItem(int(media['ratingKey'])).optimize(
plex.fetchItem(int(media['ratingKey'])).optimize( # type: ignore
locationID=-1,
target=profile
)
Expand Down
2 changes: 1 addition & 1 deletion media_versions/hdr_to_sdr_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def hdr_to_sdr_optimizer(

print(f' Creating SDR version')

plex.fetchItem(int(media['ratingKey'])).optimize(
plex.fetchItem(int(media['ratingKey'])).optimize( # type: ignore
locationID=-1,
target="tv"
)
Expand Down

0 comments on commit 5b7923e

Please sign in to comment.