mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-04-14 02:00:31 +08:00
使馒头(m-team)支持剩余促销期检测
Add freedate to torrent if discountEndTime exists
This commit is contained in:
@@ -127,6 +127,8 @@ class MTorrentSpider:
|
||||
'labels': labels,
|
||||
'category': category
|
||||
}
|
||||
if 'discountEndTime' in result.get('status', {}):
|
||||
torrent['freedate'] = StringUtils.format_timestamp(result.get('status').get('discountEndTime'))
|
||||
torrents.append(torrent)
|
||||
return torrents
|
||||
|
||||
|
||||
Reference in New Issue
Block a user