From 3c0fef75a7092837a258584bd010c640799be3db Mon Sep 17 00:00:00 2001 From: imSp4rky Date: Mon, 27 Jul 2026 12:15:14 -0600 Subject: [PATCH] docs(core): drop service tags from framework comments --- unshackle/core/api/handlers.py | 4 ++-- unshackle/core/import_service.py | 2 +- unshackle/core/manifests/hls.py | 2 +- unshackle/core/services.py | 2 +- unshackle/core/titles/title.py | 2 +- unshackle/core/tracks/hybrid.py | 4 ++-- unshackle/core/utilities.py | 2 +- unshackle/core/utils/bitrate.py | 4 ++-- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/unshackle/core/api/handlers.py b/unshackle/core/api/handlers.py index 39086523..47afc898 100644 --- a/unshackle/core/api/handlers.py +++ b/unshackle/core/api/handlers.py @@ -1011,7 +1011,7 @@ async def download_handler(data: Dict[str, Any], request: Optional[web.Request] if hasattr(service_module, "cli") and hasattr(service_module.cli, "params"): for param in service_module.cli.params: if hasattr(param, "name") and param.default is not None and not isinstance(param.default, enum.Enum): - # Store service-specific defaults (e.g., drm_system, hydrate_track, profile for NF) + # Store service-specific defaults (e.g. drm_system, hydrate_track, profile) service_specific_defaults[param.name] = param.default # Get download manager and start workers if needed @@ -2072,7 +2072,7 @@ def _resolve_server_cdm(service: str, profile: Optional[str], cdm_type: Optional Checks the server's own CDM config (``config.cdm[service]``) to determine the CDM type without loading the full CDM object. This ensures that when ``server_cdm: true`` is used, the server's CDM - determines device selection (e.g. PlayReady vs Widevine for AMZN). + determines device selection (e.g. PlayReady vs Widevine). Falls back to a lightweight stub from *cdm_type* only if no server CDM is configured for the service. diff --git a/unshackle/core/import_service.py b/unshackle/core/import_service.py index 63490245..7082c9b2 100644 --- a/unshackle/core/import_service.py +++ b/unshackle/core/import_service.py @@ -150,7 +150,7 @@ class ImportService: worse copy, so any direct-URL subtitle in the export means the whole re-parsed subtitle set is dropped in favour of the exported one. HLS/URL: rebuild from the stored per-track dicts, since the variant is re-fetched from - track.url at download time and ATV-style master playlists carry unstable per-fetch tokens. + track.url at download time and a master playlist can hand out a new token on every fetch. """ title_id = str(title.id) if title_id in self.tracks_by_title: diff --git a/unshackle/core/manifests/hls.py b/unshackle/core/manifests/hls.py index 4ccde219..11caa093 100644 --- a/unshackle/core/manifests/hls.py +++ b/unshackle/core/manifests/hls.py @@ -208,7 +208,7 @@ class HLS: # DV-composite track: primary codec is plain HEVC but SUPPLEMENTAL-CODECS advertises # a DV codec. Range stays whatever VIDEO-RANGE signaled (HDR10/HLG/SDR); DVFixup will # restore DV signaling post-download. Services that know their encoder embeds HDR10+ - # SEI must override `range` themselves (see services/ATV). + # SEI must override `range` themselves. dv_compatible_bitstream = primary_track_type is Video and not primary_has_dv and supp_dv_codec is not None tracks.add( diff --git a/unshackle/core/services.py b/unshackle/core/services.py index 89815493..aa3ca24d 100644 --- a/unshackle/core/services.py +++ b/unshackle/core/services.py @@ -298,7 +298,7 @@ class Services(click.Group): @staticmethod def get_tag(value: str) -> str: """ - Get the Service Tag (e.g. DSNP, not DisneyPlus/Disney+, etc.) by an Alias. + Get the Service Tag (the name of the service's directory, not one of its aliases) by an Alias. Input value can be of any case-sensitivity. Original input value is returned if it did not match a service tag. """ diff --git a/unshackle/core/titles/title.py b/unshackle/core/titles/title.py index b205cce0..10456129 100644 --- a/unshackle/core/titles/title.py +++ b/unshackle/core/titles/title.py @@ -211,7 +211,7 @@ class Title: media_info: MediaInfo object of the file this name will be used for. folder: This filename will be used as a folder name. Some changes may want to be made if this is the case. - show_service: Show the service tag (e.g., iT, NF) in the filename. + show_service: Show the service tag in the filename. """ diff --git a/unshackle/core/tracks/hybrid.py b/unshackle/core/tracks/hybrid.py index efd1e51f..1f95d403 100644 --- a/unshackle/core/tracks/hybrid.py +++ b/unshackle/core/tracks/hybrid.py @@ -387,8 +387,8 @@ class Hybrid: ) -> tuple[Optional[int], Optional[int], Optional[int], Optional[int]]: """Clamp static L6 values to a valid relationship. - MaxCLL must not exceed the mastering-display peak (some sources, e.g. ATV - HDR10+, ship MaxCLL 10000 on a 1000-nit master), and MaxFALL must not exceed + MaxCLL must not exceed the mastering-display peak (some HDR10+ sources ship + MaxCLL 10000 on a 1000-nit master), and MaxFALL must not exceed MaxCLL. A value of 0 means "unknown" and is preserved as-is. """ if max_mdl and max_cll and max_cll > max_mdl: diff --git a/unshackle/core/utilities.py b/unshackle/core/utilities.py index 08f7ed2e..62958a55 100644 --- a/unshackle/core/utilities.py +++ b/unshackle/core/utilities.py @@ -824,7 +824,7 @@ class DebugLogger: operation: Name of the operation being performed message: Human-readable message context: Additional context information - service: Service name (e.g., DSNP, NF) + service: Service tag error: Exception object if an error occurred request: Request details (URL, method, headers, body) response: Response details (status, headers, body) diff --git a/unshackle/core/utils/bitrate.py b/unshackle/core/utils/bitrate.py index d6a41e44..63ff44cb 100644 --- a/unshackle/core/utils/bitrate.py +++ b/unshackle/core/utils/bitrate.py @@ -71,7 +71,7 @@ def measure_real_bitrate( elif track.descriptor == Track.Descriptor.ISM: segments = extract_ism(track, session) else: - # Descriptor.URL: a single file. Some services (e.g. AMZN) parse a DASH + # Descriptor.URL: a single file. Some services parse a DASH # manifest then collapse each representation to its single BaseURL and # flip the descriptor to URL, leaving the manifest (and its duration) in # track.data — recover the duration from there, else probe the file. @@ -375,7 +375,7 @@ def extract_url(track: "Track", session: Union[Session, RnetSession], *, log: lo duration = duration_ticks / timescale if not duration or duration <= 0: - # Services like AMZN clear the manifest data after collapsing to a single + # Some services clear the manifest data after collapsing to a single # file; fall back to reading the duration straight from the remote file. duration = ffprobe_duration(url, session, log=log)