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 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
WebDbSearchJobinstance
- property tmdb_job
WebDbSearchJobinstance
- property screenshots_job
ScreenshotsJobinstanceThe number of screenshots to make is taken the
screenshots_countattribute.
- 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”, returnoptions["screenshots_from_episode"]. If not, returnoptions["screenshots_from_movie"].
- property ptp_group_id
PTP group ID if
ptp_group_id_jobis 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_jobmust be finished when this is called.This is used as a
preconditionfor jobs that are only needed if the server doesn’t have any releases for this IMDb ID yet.
- property poster_job
PosterJobinstanceSee also
get_poster(),get_poster_from_user(), andget_poster_from_webdb().
- make_poster_job_precondition()[source]
-
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.