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