mirror of https://github.com/Chocobozzz/PeerTube
Only create refresh job if needed
parent
f4800714f9
commit
f58094b257
|
@ -180,8 +180,7 @@ async function getOrCreateVideoAndAccountAndChannel (options: {
|
|||
|
||||
let videoFromDatabase = await fetchVideoByUrl(videoUrl, fetchType)
|
||||
if (videoFromDatabase) {
|
||||
|
||||
if (allowRefresh === true) {
|
||||
if (videoFromDatabase.isOutdated() && allowRefresh === true) {
|
||||
const refreshOptions = {
|
||||
video: videoFromDatabase,
|
||||
fetchedType: fetchType,
|
||||
|
|
Loading…
Reference in New Issue