mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
Merge pull request #5530 from cddjr/bugfix/season-regex-capture-group
This commit is contained in:
@@ -76,7 +76,7 @@ class MetaVideo(MetaBase):
|
|||||||
self.type = MediaType.TV
|
self.type = MediaType.TV
|
||||||
return
|
return
|
||||||
# 全名为Season xx 及 Sxx 直接返回
|
# 全名为Season xx 及 Sxx 直接返回
|
||||||
season_full_res = re.search(r"^Season\s+(\d{1,3})$|^S(\d{1,3})$", title)
|
season_full_res = re.search(r"^(?:Season\s+|S)(\d{1,3})$", title, re.IGNORECASE)
|
||||||
if season_full_res:
|
if season_full_res:
|
||||||
self.type = MediaType.TV
|
self.type = MediaType.TV
|
||||||
season = season_full_res.group(1)
|
season = season_full_res.group(1)
|
||||||
|
|||||||
@@ -1069,6 +1069,38 @@ meta_cases = [{
|
|||||||
"audio_codec": "",
|
"audio_codec": "",
|
||||||
"tmdbid": 27205
|
"tmdbid": 27205
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
"path": "/movies/Breaking Bad (2008) [tmdb=1396]/Season 2/",
|
||||||
|
"target": {
|
||||||
|
"type": "电视剧",
|
||||||
|
"cn_name": "",
|
||||||
|
"en_name": "Breaking Bad",
|
||||||
|
"year": "2008",
|
||||||
|
"part": "",
|
||||||
|
"season": "S02",
|
||||||
|
"episode": "",
|
||||||
|
"restype": "",
|
||||||
|
"pix": "",
|
||||||
|
"video_codec": "",
|
||||||
|
"audio_codec": "",
|
||||||
|
"tmdbid": 1396
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"path": "/movies/Breaking Bad (2008) [tmdb=1396]/S2/",
|
||||||
|
"target": {
|
||||||
|
"type": "电视剧",
|
||||||
|
"cn_name": "",
|
||||||
|
"en_name": "Breaking Bad",
|
||||||
|
"year": "2008",
|
||||||
|
"part": "",
|
||||||
|
"season": "S02",
|
||||||
|
"episode": "",
|
||||||
|
"restype": "",
|
||||||
|
"pix": "",
|
||||||
|
"video_codec": "",
|
||||||
|
"audio_codec": "",
|
||||||
|
"tmdbid": 1396
|
||||||
|
}
|
||||||
}, {
|
}, {
|
||||||
"path": "/movies/Breaking Bad (2008) [tmdb=1396]/Season 1/Breaking.Bad.S01E01.1080p.mkv",
|
"path": "/movies/Breaking Bad (2008) [tmdb=1396]/Season 1/Breaking.Bad.S01E01.1080p.mkv",
|
||||||
"target": {
|
"target": {
|
||||||
|
|||||||
Reference in New Issue
Block a user