Refractor videos AP functions

This commit is contained in:
Chocobozzz
2018-09-19 11:16:23 +02:00
parent 96f29c0f6d
commit 4157cdb137
13 changed files with 280 additions and 245 deletions

View File

@@ -139,7 +139,7 @@ async function searchVideoURI (url: string, res: express.Response) {
refreshVideo: false
}
const result = await getOrCreateVideoAndAccountAndChannel(url, syncParam)
const result = await getOrCreateVideoAndAccountAndChannel({ videoObject: url, syncParam })
video = result ? result.video : undefined
} catch (err) {
logger.info('Cannot search remote video %s.', url, { err })