mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-25 06:26:37 +00:00
Prefer release_timestamp
when it is available
This commit is contained in:
parent
4714336f28
commit
eb396aaf3c
@ -1275,7 +1275,9 @@ class Media(models.Model):
|
|||||||
|
|
||||||
def metadata_published(self, timestamp=None):
|
def metadata_published(self, timestamp=None):
|
||||||
if timestamp is None:
|
if timestamp is None:
|
||||||
timestamp = self.get_metadata_first_value('timestamp')
|
timestamp = self.get_metadata_first_value(
|
||||||
|
('release_timestamp', 'timestamp',)
|
||||||
|
)
|
||||||
return self.ts_to_dt(timestamp)
|
return self.ts_to_dt(timestamp)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
Reference in New Issue
Block a user