mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-07 00:16:57 +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:
co-authored by
gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
parent
142daa9d15
commit
c8c671d915
@@ -127,8 +127,8 @@ class MTorrentSpider:
|
|||||||
'labels': labels,
|
'labels': labels,
|
||||||
'category': category
|
'category': category
|
||||||
}
|
}
|
||||||
if 'discountEndTime' in result.get('status', {}):
|
if discount_end_time := (result.get('status') or {}).get('discountEndTime'):
|
||||||
torrent['freedate'] = StringUtils.format_timestamp(result.get('status').get('discountEndTime'))
|
torrent['freedate'] = StringUtils.format_timestamp(discount_end_time)
|
||||||
torrents.append(torrent)
|
torrents.append(torrent)
|
||||||
return torrents
|
return torrents
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user