mirror of
https://github.com/glomatico/gamdl.git
synced 2026-06-13 12:15:18 +03:00
Handle missing uploadDate in get_tags method
This commit is contained in:
@@ -68,9 +68,10 @@ class DownloaderPost:
|
||||
|
||||
def get_tags(self, metadata: dict) -> MediaTags:
|
||||
attributes = metadata["attributes"]
|
||||
upload_date = attributes.get("uploadDate")
|
||||
return MediaTags(
|
||||
artist=attributes.get("artistName"),
|
||||
date=self.downloader.parse_date(attributes.get("uploadDate")),
|
||||
date=self.downloader.parse_date(upload_date) if upload_date else None,
|
||||
title=attributes.get("name"),
|
||||
title_id=int(metadata["id"]),
|
||||
storefront=int(self.downloader.itunes_api.storefront_id.split("-")[0]),
|
||||
|
||||
Reference in New Issue
Block a user