Only create refresh job if needed
This commit is contained in:
parent
f4800714f9
commit
f58094b257
1 changed files with 1 additions and 2 deletions
|
@ -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 a new issue