Update app/modules/indexer/spider/mtorrent.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
lostwindsenril
2025-08-29 13:07:31 +08:00
committed by GitHub
parent 142daa9d15
commit c8c671d915

View File

@@ -127,8 +127,8 @@ class MTorrentSpider:
'labels': labels,
'category': category
}
if 'discountEndTime' in result.get('status', {}):
torrent['freedate'] = StringUtils.format_timestamp(result.get('status').get('discountEndTime'))
if discount_end_time := (result.get('status') or {}).get('discountEndTime'):
torrent['freedate'] = StringUtils.format_timestamp(discount_end_time)
torrents.append(torrent)
return torrents