Skip to content

Commit

Permalink
v1.9.19
Browse files Browse the repository at this point in the history
* 提升了识别能力
1) 支持S1E1识别
2) 支持动漫连集的识别
* 修复问题
1) dmhy无法搜索的问题
2) 电视剧订阅TMDB总集数变化后订阅显示的缺失集数不正确的问题
* 移动模式下目录下无媒体文件时即会删除目录
  • Loading branch information
jxxghp committed Aug 10, 2022
1 parent a2d0316 commit 3342a60
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
5 changes: 3 additions & 2 deletions rmt/meta/metaanime.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ def __init__(self, title, subtitle=None):
self.begin_episode = int(begin_episode)
self.type = MediaType.TV
if isinstance(end_episode, str) and end_episode.isdigit():
if self.end_episode is not None and end_episode != self.end_episode:
self.end_season = int(end_episode)
if self.end_episode is None and end_episode != self.begin_episode:
self.end_episode = int(end_episode)
self.type = MediaType.TV
# 类型
if not self.type:
Expand Down Expand Up @@ -145,6 +145,7 @@ def __prepare_title(title):
title = re.sub(".*新番.", "", title)
else:
title = re.sub(r"^[^]】]*[]】]", "", title).strip()
title = re.sub(r"\[TV\s*(\d{1,4}-\d{1-4}|\d{1,4})\s*[a-zA-Z]*", r"[\1", title, flags=re.IGNORECASE)
names = title.split("]")
if len(names) > 1 and title.find("-") == -1:
titles = []
Expand Down
16 changes: 16 additions & 0 deletions tests/cases/meta_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,4 +318,20 @@
"video_codec": "x265",
"audio_codec": ""
}
}, {
"title": "[xyx98]传颂之物/Utawarerumono/うたわれるもの[BDrip][1920x1080][TV 01-26 Fin][hevc-yuv420p10 flac_ac3][ENG PGS]",
"subtitle": "",
"target": {
"type": "电视剧",
"cn_name": "",
"en_name": "うたわれるもの",
"year": "",
"part": "",
"season": "S01",
"episode": "E01-E26",
"restype": "",
"pix": "1920p",
"video_codec": "",
"audio_codec": "flac"
}
}]
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
APP_VERSION = 'v1.9.18'
APP_VERSION = 'v1.9.19'

0 comments on commit 3342a60

Please sign in to comment.