mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-08 00:46:57 +08:00
fix #3161
This commit is contained in:
+12
-11
@@ -524,16 +524,7 @@ class MetaVideo(MetaBase):
|
|||||||
"""
|
"""
|
||||||
if not self.name:
|
if not self.name:
|
||||||
return
|
return
|
||||||
source_res = re.search(r"(%s)" % self._source_re, token, re.IGNORECASE)
|
if token.upper() == "DL" \
|
||||||
if source_res:
|
|
||||||
self._last_token_type = "source"
|
|
||||||
self._continue_flag = False
|
|
||||||
self._stop_name_flag = True
|
|
||||||
if not self._source:
|
|
||||||
self._source = source_res.group(1)
|
|
||||||
self._last_token = self._source.upper()
|
|
||||||
return
|
|
||||||
elif token.upper() == "DL" \
|
|
||||||
and self._last_token_type == "source" \
|
and self._last_token_type == "source" \
|
||||||
and self._last_token == "WEB":
|
and self._last_token == "WEB":
|
||||||
self._source = "WEB-DL"
|
self._source = "WEB-DL"
|
||||||
@@ -562,7 +553,17 @@ class MetaVideo(MetaBase):
|
|||||||
elif token.upper() == "BLURAY" \
|
elif token.upper() == "BLURAY" \
|
||||||
and self._source == "UHD":
|
and self._source == "UHD":
|
||||||
self._source = "UHD BluRay"
|
self._source = "UHD BluRay"
|
||||||
|
self._continue_flag = False
|
||||||
|
return
|
||||||
|
source_res = re.search(r"(%s)" % self._source_re, token, re.IGNORECASE)
|
||||||
|
if source_res:
|
||||||
|
self._last_token_type = "source"
|
||||||
|
self._continue_flag = False
|
||||||
|
self._stop_name_flag = True
|
||||||
|
if not self._source:
|
||||||
|
self._source = source_res.group(1)
|
||||||
|
self._last_token = self._source.upper()
|
||||||
|
return
|
||||||
effect_res = re.search(r"(%s)" % self._effect_re, token, re.IGNORECASE)
|
effect_res = re.search(r"(%s)" % self._effect_re, token, re.IGNORECASE)
|
||||||
if effect_res:
|
if effect_res:
|
||||||
self._last_token_type = "effect"
|
self._last_token_type = "effect"
|
||||||
|
|||||||
+5
-5
@@ -345,13 +345,13 @@ meta_cases = [{
|
|||||||
"part": "",
|
"part": "",
|
||||||
"season": "",
|
"season": "",
|
||||||
"episode": "",
|
"episode": "",
|
||||||
"restype": "BluRay Remux",
|
"restype": "BluRay REMUX",
|
||||||
"pix": "1080p",
|
"pix": "1080p",
|
||||||
"video_codec": "AVC",
|
"video_codec": "AVC",
|
||||||
"audio_codec": "LPCM 7³"
|
"audio_codec": "LPCM 7³"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"title": "30.Rock.S02E01.1080p.BluRay.X264-BORDURE.mkv",
|
"title": "30.Rock.S02E01.1080p.UHD.BluRay.X264-BORDURE.mkv",
|
||||||
"subtitle": "",
|
"subtitle": "",
|
||||||
"target": {
|
"target": {
|
||||||
"type": "电视剧",
|
"type": "电视剧",
|
||||||
@@ -361,7 +361,7 @@ meta_cases = [{
|
|||||||
"part": "",
|
"part": "",
|
||||||
"season": "S02",
|
"season": "S02",
|
||||||
"episode": "E01",
|
"episode": "E01",
|
||||||
"restype": "BluRay",
|
"restype": "UHD BluRay",
|
||||||
"pix": "1080p",
|
"pix": "1080p",
|
||||||
"video_codec": "X264",
|
"video_codec": "X264",
|
||||||
"audio_codec": ""
|
"audio_codec": ""
|
||||||
@@ -611,7 +611,7 @@ meta_cases = [{
|
|||||||
"subtitle": "",
|
"subtitle": "",
|
||||||
"target": {
|
"target": {
|
||||||
"type": "电视剧",
|
"type": "电视剧",
|
||||||
"cn_name": "处刑少女的生存之道",
|
"cn_name": "處刑少女的生存之道",
|
||||||
"en_name": "",
|
"en_name": "",
|
||||||
"year": "",
|
"year": "",
|
||||||
"part": "",
|
"part": "",
|
||||||
@@ -665,7 +665,7 @@ meta_cases = [{
|
|||||||
"part": "",
|
"part": "",
|
||||||
"season": "",
|
"season": "",
|
||||||
"episode": "",
|
"episode": "",
|
||||||
"restype": "BluRay DoVi UHD",
|
"restype": "UHD BluRay DoVi",
|
||||||
"pix": "1080p",
|
"pix": "1080p",
|
||||||
"video_codec": "X265",
|
"video_codec": "X265",
|
||||||
"audio_codec": "DD 7.1"
|
"audio_codec": "DD 7.1"
|
||||||
|
|||||||
Reference in New Issue
Block a user