mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Regenerate miniature on live save
This commit is contained in:
parent
3bc68dfd61
commit
053aed43fb
12 changed files with 61 additions and 69 deletions
|
@ -1,10 +1,10 @@
|
|||
import { VideoLiveModel } from '@server/models/video/video-live'
|
||||
import * as Bluebird from 'bluebird'
|
||||
import { maxBy, minBy } from 'lodash'
|
||||
import * as magnetUtil from 'magnet-uri'
|
||||
import { join } from 'path'
|
||||
import * as request from 'request'
|
||||
import * as sequelize from 'sequelize'
|
||||
import { VideoLiveModel } from '@server/models/video/video-live'
|
||||
import {
|
||||
ActivityHashTagObject,
|
||||
ActivityMagnetUrlObject,
|
||||
|
@ -13,8 +13,7 @@ import {
|
|||
ActivitypubHttpFetcherPayload,
|
||||
ActivityTagObject,
|
||||
ActivityUrlObject,
|
||||
ActivityVideoUrlObject,
|
||||
VideoState
|
||||
ActivityVideoUrlObject
|
||||
} from '../../../shared/index'
|
||||
import { VideoObject } from '../../../shared/models/activitypub/objects'
|
||||
import { VideoPrivacy } from '../../../shared/models/videos'
|
||||
|
@ -562,8 +561,6 @@ function isAPHashTagObject (url: any): url is ActivityHashTagObject {
|
|||
return url && url.type === 'Hashtag'
|
||||
}
|
||||
|
||||
|
||||
|
||||
async function createVideo (videoObject: VideoObject, channel: MChannelAccountLight, waitThumbnail = false) {
|
||||
logger.debug('Adding remote video %s.', videoObject.id)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue