diff --git a/app/modules/indexer/spider/mtorrent.py b/app/modules/indexer/spider/mtorrent.py index 192c9fa7..d5f9403d 100644 --- a/app/modules/indexer/spider/mtorrent.py +++ b/app/modules/indexer/spider/mtorrent.py @@ -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