mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 14:06:36 +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()
|
now = timezone.now()
|
||||||
formats_seconds = data.get('formats_epoch', metadata_seconds)
|
formats_seconds = data.get('formats_epoch', metadata_seconds)
|
||||||
metadata_dt = self.metadata_published(formats_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
|
return False
|
||||||
|
|
||||||
self.skip = False
|
self.skip = False
|
||||||
|
Loading…
Reference in New Issue
Block a user