docs(core): drop service tags from framework comments

This commit is contained in:
imSp4rky
2026-07-27 12:15:14 -06:00
parent 40ae213504
commit 3c0fef75a7
8 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -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"): if hasattr(service_module, "cli") and hasattr(service_module.cli, "params"):
for param in 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): 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 service_specific_defaults[param.name] = param.default
# Get download manager and start workers if needed # 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 Checks the server's own CDM config (``config.cdm[service]``) to
determine the CDM type without loading the full CDM object. This determine the CDM type without loading the full CDM object. This
ensures that when ``server_cdm: true`` is used, the server's CDM 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 Falls back to a lightweight stub from *cdm_type* only if no server
CDM is configured for the service. CDM is configured for the service.
+1 -1
View File
@@ -150,7 +150,7 @@ class ImportService:
worse copy, so any direct-URL subtitle in the export means the whole re-parsed subtitle 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. 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 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) title_id = str(title.id)
if title_id in self.tracks_by_title: if title_id in self.tracks_by_title:
+1 -1
View File
@@ -208,7 +208,7 @@ class HLS:
# DV-composite track: primary codec is plain HEVC but SUPPLEMENTAL-CODECS advertises # 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 # 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+ # 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 dv_compatible_bitstream = primary_track_type is Video and not primary_has_dv and supp_dv_codec is not None
tracks.add( tracks.add(
+1 -1
View File
@@ -298,7 +298,7 @@ class Services(click.Group):
@staticmethod @staticmethod
def get_tag(value: str) -> str: 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. Input value can be of any case-sensitivity.
Original input value is returned if it did not match a service tag. Original input value is returned if it did not match a service tag.
""" """
+1 -1
View File
@@ -211,7 +211,7 @@ class Title:
media_info: MediaInfo object of the file this name will be used for. 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 folder: This filename will be used as a folder name. Some changes may want to
be made if this is the case. 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.
""" """
+2 -2
View File
@@ -387,8 +387,8 @@ class Hybrid:
) -> tuple[Optional[int], Optional[int], Optional[int], Optional[int]]: ) -> tuple[Optional[int], Optional[int], Optional[int], Optional[int]]:
"""Clamp static L6 values to a valid relationship. """Clamp static L6 values to a valid relationship.
MaxCLL must not exceed the mastering-display peak (some sources, e.g. ATV MaxCLL must not exceed the mastering-display peak (some HDR10+ sources ship
HDR10+, ship MaxCLL 10000 on a 1000-nit master), and MaxFALL must not exceed MaxCLL 10000 on a 1000-nit master), and MaxFALL must not exceed
MaxCLL. A value of 0 means "unknown" and is preserved as-is. MaxCLL. A value of 0 means "unknown" and is preserved as-is.
""" """
if max_mdl and max_cll and max_cll > max_mdl: if max_mdl and max_cll and max_cll > max_mdl:
+1 -1
View File
@@ -824,7 +824,7 @@ class DebugLogger:
operation: Name of the operation being performed operation: Name of the operation being performed
message: Human-readable message message: Human-readable message
context: Additional context information context: Additional context information
service: Service name (e.g., DSNP, NF) service: Service tag
error: Exception object if an error occurred error: Exception object if an error occurred
request: Request details (URL, method, headers, body) request: Request details (URL, method, headers, body)
response: Response details (status, headers, body) response: Response details (status, headers, body)
+2 -2
View File
@@ -71,7 +71,7 @@ def measure_real_bitrate(
elif track.descriptor == Track.Descriptor.ISM: elif track.descriptor == Track.Descriptor.ISM:
segments = extract_ism(track, session) segments = extract_ism(track, session)
else: 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 # manifest then collapse each representation to its single BaseURL and
# flip the descriptor to URL, leaving the manifest (and its duration) in # flip the descriptor to URL, leaving the manifest (and its duration) in
# track.data — recover the duration from there, else probe the file. # 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 duration = duration_ticks / timescale
if not duration or duration <= 0: 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. # file; fall back to reading the duration straight from the remote file.
duration = ffprobe_duration(url, session, log=log) duration = ffprobe_duration(url, session, log=log)