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 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 metadataIf this sequence is empty, all jobs in
jobs_before_uploadandjobs_after_uploadare enabled.
- property chosen_release_type
ReleaseTypeenum derived fromcategory_jobor None ifcategory_jobis not finished yet
- property imdb_job
WebDbSearchJobinstance
- property tmdb_job
WebDbSearchJobinstance
- 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 = '.'
- release_name_translation = {'edition': {re.compile("^Director's Cut$"): 'DC'}, 'group': {re.compile('^NOGROUP$'): 'NOGRP'}}
See
translateargument ofReleaseName
- property title_job
TextFieldJobinstance with text set to the release titleUnlike
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
nametoconfigvaluescommonis a special image host whose values are always applied.Values from a specific image hosting service overload
commonvalues.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"}, ... }