upsies.trackers.mtv.jobs

Concrete TrackerJobsBase subclass for MTV

Classes

class upsies.trackers.mtv.jobs.MtvTrackerJobs(*, 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 chosen_release_type

ReleaseType enum derived from category_job or None if category_job is not finished yet

property imdb_job

WebDbSearchJob instance

property tmdb_job

WebDbSearchJob instance

handle_category_chosen(category_job_)[source]

Update the category wherever it matters so the user only has to correct the category once

release_name_separator = '.'

See ReleaseName.separator

release_name_translation = {'edition': {re.compile("^Director's Cut$"): 'DC'}, 'group': {re.compile('^NOGROUP$'): 'NOGRP'}}

See translate argument of ReleaseName

property title_job

TextFieldJob instance with text set to the release title

Unlike release_name_job, this uses the original scene release name for movie and episode scene releases.

image_host_config = {'common': {'thumb_width': 350}}

Dictionary that maps an image hosting service name to config values

common is a special image host whose values are always applied.

Values from a specific image hosting service overload common values.

Example:

>>> image_host_config = {
...     # Generate 300 pixels wide thumbnails for all image hosts.
...     "common": {"thumb_width": 300},
...     # Use specific API key for specific image hosting service just for this tracker.
...     "myhost": {"apikey": "d34db33f"},
... }