MCPcopy Create free account
hub / github.com/DialmasterOrg/Youtarr / upsertVideoForJob

Method upsertVideoForJob

server/modules/jobModule.js:473–475  ·  view source on GitHub ↗

* Upserts a video and creates JobVideo relationship * @param {Object} video - Video data * @param {Object} jobInstance - Job instance * @param {boolean} alwaysCreateJobVideo - Always create JobVideo relationship even if video exists (for recovery)

(video, jobInstance, alwaysCreateJobVideo = false)

Source from the content-addressed store, hash-verified

471 * @param {boolean} alwaysCreateJobVideo - Always create JobVideo relationship even if video exists (for recovery)
472 */
473 async upsertVideoForJob(video, jobInstance, alwaysCreateJobVideo = false) {
474 return videoPersistence.upsertVideoForJob(video, jobInstance, alwaysCreateJobVideo);
475 }
476
477 // Save a single job and its video data to the database
478 async saveJobOnly(jobId, jobDataOriginal) {

Callers 4

saveJobOnlyMethod · 0.95
saveJobsMethod · 0.95
jobModule.test.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected