flexget.components.series.next_series_episodes module#

class flexget.components.series.next_series_episodes.NextSeriesEpisodes[source]#

Bases: object

Emit next episode number from all series configured in this task.

Supports only ‘ep’ and ‘sequence’ mode series.

_component_candidates(req_component)[source]#

Return the concrete values a single requirement component allows, highest first.

Handles bare values (“bluray”), pipe alternatives (“720p|1080p”), and min-max ranges (“720p-2160p”) uniformly since all three enumerate to a finite set of literal values.

Returns:

[] if unconstrained (contributes nothing to the search term), None if the requirement is an open-ended upper-bound comparator (e.g. “<720p”) or a “!” exclusion, neither of which can be written as a literal search term. A lower-bound-only comparator (e.g. “720p+”) falls back to its floor value.

Return type:

list[str] | None

_extract_quality_strings(series_config)[source]#

Extract quality strings from series configuration for use in search queries.

Resolution ranges (“720p-2160p”) and alternatives on any component (“720p|1080p”, “bluray|webdl”) are expanded into every combination. Requirements that can’t be expressed as literal search terms (e.g. “<=1080p”, “!hdr”) are skipped.

Parameters:

series_config (dict) – Series configuration dict

Returns:

List of quality strings, sorted highest first

Return type:

list[str]

ep_identifiers(season, episode)[source]#
on_search_complete(entry, task=None, identified_by=None, **kwargs)[source]#

Decides whether we should look for next ep/season based on whether we found/accepted any episodes.

on_task_input(task, config)[source]#
search_entry(series, season, episode, task, rerun=True)[source]#
sequence_identifiers(episode)[source]#
schema = {'oneOf': [{'type': 'boolean'}, {'additionalProperties': False, 'properties': {'backfill': {'default': False, 'type': 'boolean'}, 'backfill_limit': {'default': 25, 'description': 'If the gap between episodes is larger than this limit, they will not be emitted.', 'type': 'integer'}, 'from_start': {'default': False, 'type': 'boolean'}, 'include_quality': {'default': True, 'type': 'boolean'}, 'only_same_season': {'default': False, 'type': 'boolean'}}, 'type': 'object'}]}#
flexget.components.series.next_series_episodes.register_plugin()[source]#