upsies.utils.predbs.common
Classes and functions that are not specific to
PredbApiBase subclasses
Functions
- upsies.utils.predbs.common.assert_not_abbreviated_filename(filepath)[source]
Raise
SceneErrorif filepath points to an abbreviated scene file name likeabd-mother.mkv
- upsies.utils.predbs.common.get_needed_keys(release_info, exclude=())[source]
Return needed
ReleaseInfokeys to identify release- Parameters:
release_info –
ReleaseInfoinstance or anydict-like object with the keystypeandsourceexclude – Sequence of keys to exclude from the returned sequence
- Returns:
Sequence of required keys or empty sequence if release_info doesn’t contain a
type
- upsies.utils.predbs.common.get_season_pack_name(release_name)[source]
Remove episode information (e.g. “E03”) from release_name