-const getServerActor = memoizee(async function () {
- const application = await ApplicationModel.load()
- if (!application) throw Error('Could not load Application from database.')
-
- const actor = application.Account.Actor
- actor.Account = application.Account
+function generateVideoImportTmpPath (target: string | ParseTorrent, extensionArg?: string) {
+ const id = typeof target === 'string'
+ ? target
+ : target.infoHash