Skip to content

Commit

Permalink
Updated docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Casvt committed Jul 15, 2024
1 parent c16b94c commit 00dbc5a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions media_versions/hdr_to_sdr_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,13 @@ def _optimize_check(
return False


def auto_optimize(
def hdr_to_sdr_optimizer(
ssn: 'Session',
plex: 'PlexServer',
library_filter: LibraryFilter,
limit: int = -1
) -> List[int]:
"""Optimize the targeted media if it isn't already.
"""Optimize HDR media when it isn't already available in SDR.
Args:
ssn (Session): The plex requests session to fetch with.
Expand All @@ -228,9 +228,6 @@ def auto_optimize(
limit (int, optional): The max amount of media to optimize in one run.
Defaults to -1.
Raises:
ValueError: Invalid profile.
Returns:
List[int]: List of media rating keys that were processed.
"""
Expand Down Expand Up @@ -303,7 +300,7 @@ def auto_optimize(
except ValueError as e:
parser.error(e.args[0])

auto_optimize(
hdr_to_sdr_optimizer(
ssn=ssn,
plex=plex,
library_filter=lf,
Expand Down

0 comments on commit 00dbc5a

Please sign in to comment.