mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 21:46:44 +00:00
fixup: convert seconds with timedelta
This commit is contained in:
parent
b01af70098
commit
5f81c3619f
@ -1048,7 +1048,7 @@ class Media(models.Model):
|
||||
now = timezone.now()
|
||||
formats_seconds = data.get('formats_epoch', metadata_seconds)
|
||||
metadata_dt = self.metadata_published(formats_seconds)
|
||||
if (now - metadata_dt) < self.source.index_schedule:
|
||||
if (now - metadata_dt) < timedelta(seconds=self.source.index_schedule):
|
||||
return False
|
||||
|
||||
self.skip = False
|
||||
|
Loading…
Reference in New Issue
Block a user