clean: keep one-line docstring for consistency
This commit is contained in:
@@ -7,11 +7,7 @@ from pathlib import Path
|
||||
|
||||
|
||||
def load_media_info(path: Path, activation_hex: str | None = None) -> tuple[float | None, list[dict]]:
|
||||
"""Load media information including duration and chapters using ffprobe.
|
||||
|
||||
Returns:
|
||||
Tuple of (duration in seconds, list of chapter dicts with start_time, end_time, title)
|
||||
"""
|
||||
"""Load media information including duration and chapters using ffprobe."""
|
||||
if not shutil.which("ffprobe"):
|
||||
return None, []
|
||||
|
||||
|
||||
@@ -7,11 +7,7 @@ from .constants import PROGRESS_COLUMN_INDEX
|
||||
|
||||
|
||||
def create_title_sort_key(reverse: bool = False) -> tuple[Callable, bool]:
|
||||
"""Create a sort key function for sorting by title.
|
||||
|
||||
Returns:
|
||||
Tuple of (sort_key_function, reverse_flag)
|
||||
"""
|
||||
"""Create a sort key function for sorting by title."""
|
||||
def title_key(row_values):
|
||||
title_cell = row_values[0]
|
||||
if isinstance(title_cell, str):
|
||||
@@ -23,11 +19,7 @@ def create_title_sort_key(reverse: bool = False) -> tuple[Callable, bool]:
|
||||
|
||||
|
||||
def create_progress_sort_key(progress_column_index: int = PROGRESS_COLUMN_INDEX, reverse: bool = False) -> tuple[Callable, bool]:
|
||||
"""Create a sort key function for sorting by progress percentage.
|
||||
|
||||
Returns:
|
||||
Tuple of (sort_key_function, reverse_flag)
|
||||
"""
|
||||
"""Create a sort key function for sorting by progress percentage."""
|
||||
def progress_key(row_values):
|
||||
progress_cell = row_values[progress_column_index]
|
||||
if isinstance(progress_cell, str):
|
||||
|
||||
Reference in New Issue
Block a user