mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-27 11:25:08 +00:00
docs: phase 2 of the prose style across docs and docstrings
This commit is contained in:
@@ -181,7 +181,7 @@ class Episode(Title):
|
||||
return str(self.air_date)
|
||||
|
||||
def folder_season(self) -> str:
|
||||
"""Season folder label: air year for dated content, else SxxExx-style season."""
|
||||
"""Season folder label: air year when the air date parsed to a date, else SxxExx-style season."""
|
||||
if isinstance(self.air_date, date):
|
||||
return f"{self.air_date.year:04}"
|
||||
return f"S{self.season:02}"
|
||||
|
||||
@@ -146,7 +146,7 @@ class Song(Title):
|
||||
|
||||
A song shares the episode key space, its disc reading as the season and its track
|
||||
as the episode, so ``-w 1-5`` takes tracks 1 to 5 and ``-w 2x3`` takes disc 2
|
||||
track 3. A song has no parts and no air date, so it answers to one key only.
|
||||
track 3. A song has no parts and no air date, so it answers to its disc-and-track key only.
|
||||
"""
|
||||
return f"{self.disc}x{self.track}" in wanted
|
||||
|
||||
|
||||
@@ -217,7 +217,7 @@ class Title:
|
||||
@abstractmethod
|
||||
def get_filename(self, media_info: MediaInfo, folder: bool = False, show_service: bool = True) -> str:
|
||||
"""
|
||||
Get a Filename for this Title with the provided Media Info.
|
||||
Get a Filename for this Title with the provided MediaInfo.
|
||||
All filenames should be sanitized with the sanitize_filename() utility function.
|
||||
|
||||
Parameters:
|
||||
|
||||
Reference in New Issue
Block a user