}
static loadAndPopulateVideo (id: number) {
- return VideoImportModel.findById(id)
+ return VideoImportModel.findByPk(id)
}
static listUserVideoImportsForApi (userId: number, start: number, count: number, sort: string) {
})
}
+ getTargetIdentifier () {
+ return this.targetUrl || this.magnetUri || this.torrentName
+ }
+
toFormattedJSON (): VideoImport {
const videoFormatOptions = {
completeDescription: true,