mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
refactor(string): split utilities by responsibility
This commit is contained in:
@@ -20,7 +20,7 @@ from app.runtime.log import logger
|
||||
from app.schemas import CommingMessage
|
||||
from app.schemas.types import MessageChannel
|
||||
from app.adapters.network.http import RequestUtils
|
||||
from app.domain.string import StringUtils
|
||||
from app.foundation import size as size_tools
|
||||
|
||||
|
||||
class WeChatBot:
|
||||
@@ -629,7 +629,7 @@ class WeChatBot:
|
||||
f"{meta.resource_term} "
|
||||
f"{meta.video_term} "
|
||||
f"{meta.release_group} "
|
||||
f"{StringUtils.str_filesize(torrent.size)} "
|
||||
f"{size_tools.format_compact_size(torrent.size)} "
|
||||
f"{torrent.volume_factor} "
|
||||
f"{torrent.seeders}↑"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user