mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-03-20 03:57:30 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user