mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-03-20 03:57:30 +08:00
feat(meta): 添加视频帧率信息解析支持
- 在MetaBase基类中新增fps属性用于存储帧率信息 - 实现MetaVideo中帧率信息的识别和解析逻辑 - 为MetaAnime添加帧率提取功能,与MetaVideo保持一致 - 更新测试用例以验证帧率信息的正确解析 - 在元数据测试数据中增加fps字段的预期值
This commit is contained in:
@@ -452,11 +452,11 @@ class MetaBase(object):
|
|||||||
return self.audio_encode or ""
|
return self.audio_encode or ""
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def frame_rate(self) -> str:
|
def frame_rate(self) -> int:
|
||||||
"""
|
"""
|
||||||
返回帧率信息
|
返回帧率信息
|
||||||
"""
|
"""
|
||||||
return self.fps or ""
|
return self.fps or None
|
||||||
|
|
||||||
def is_in_season(self, season: Union[list, int, str]) -> bool:
|
def is_in_season(self, season: Union[list, int, str]) -> bool:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user