upsies.trackers.ptp.jobs

Concrete TrackerJobsBase subclass for PTP

Classes

class upsies.trackers.ptp.jobs.PtpTrackerJobs(*, 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 attribute names (e.g. “title_job”) that were singled out by the user, e.g. with –only-title

property imdb_job

WebDbSearchJob instance

property tmdb_job

WebDbSearchJob instance

property screenshots_job

ScreenshotsJob instance

The number of screenshots to make is taken the screenshots_count attribute.

property screenshots_count

How many screenshots to make

Return options["screenshots_count"] it it exists and is truthy. This value should be explicitly set by the user, e.g. via a CLI argument or GUI element.

Otherwise, return a coroutine function that waits for type_job. If the user selected “Miniseries”, return options["screenshots_from_episode"]. If not, return options["screenshots_from_movie"].

property ptp_group_id

PTP group ID if ptp_group_id_job is finished and group ID was found, None otherwise

ptp_group_does_not_exist()[source]

Whether no releases of the user-selected IMDb ID already exist on PTP

ptp_group_id_job must be finished when this is called.

This is used as a precondition for jobs that are only needed if the server doesn’t have any releases for this IMDb ID yet.

get_movie_metadata = <async_lru._LRUCacheWrapperInstanceMethod object>[source]
property poster_job

PosterJob instance

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

make_poster_job_precondition()[source]

precondition for poster_job

Subclasses may override this method to selectively provide a poster only if the server doesn’t have one yet.

property is_other_format

Whether we submit video codec, container and resolution as “Other”

This is especially relevant for AV1 and VP9.

This property checks if either video codec, container or resolution is not supported (i.e. available in upload.php’s drop down menu). This is relevant because we cannot submit a custom video codec without also specifying container and resolution.