upsies.trackers.sc.jobs

Concrete TrackerJobsBase subclass for SC

Classes

class upsies.trackers.sc.jobs.ScTrackerJobs(*, content_path, tracker, reuse_torrent_path=None, exclude_files=(), btclient_config=None, torrent_destination=None, screenshots_optimization=None, screenshots_tonemapped=False, image_hosts=None, show_poster=False, options=None, common_job_args=None)[source]

Bases: TrackerJobsBase

property jobs_before_upload

Sequence of jobs that need to finish before upload() can be called

property isolated_jobs

Sequence of job names (e.g. "imdb_job") that were singled out by the user (e.g. with a CLI argument) to create only a subset of the usual metadata

If this sequence is empty, all jobs in jobs_before_upload and jobs_after_upload are enabled.

property imdb_job

WebDbSearchJob instance

property tmdb_job

WebDbSearchJob instance

async get_info(name, *, empty_ok=False)[source]

Get metadata from SC, IMDb or TMDb

If no information is found, return None. This means the user has to enter something manually.

Parameters:
  • method_name (str) – Name of a WebDbApiBase method

  • empty_ok (bool) –

    Whether an empty string/sequence is a valid value

    For example, the English title should be empty for native English movies, but the original title must not be empty.

property poster_job

PosterJob instance

See also get_poster(), get_poster_from_user(), and get_poster_from_webdb().

async get_poster_from_tracker()[source]

Get poster from tracker or any other custom source

The default implementation always returns None.

mediainfo_required_for_bdmv = False

Whether the tracker requires mediainfo output for BDMV Blu-ray releases