mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-08 00:46:57 +08:00
去除集图片的-thumb后缀,使图片名称与视频文件名称一致
This commit is contained in:
+1
-2
@@ -357,9 +357,8 @@ class MediaChain(ChainBase, ConfigReloadMixin, metaclass=Singleton):
|
|||||||
metadata_type in [ScrapingMetadata.THUMB]
|
metadata_type in [ScrapingMetadata.THUMB]
|
||||||
and item_type == ScrapingTarget.EPISODE
|
and item_type == ScrapingTarget.EPISODE
|
||||||
):
|
):
|
||||||
# 集缩略图命名: {视频文件名}-thumb.{ext},如 Show.S01E03-thumb.jpg
|
|
||||||
hint_ext = Path(filename_hint).suffix if filename_hint else ".jpg"
|
hint_ext = Path(filename_hint).suffix if filename_hint else ".jpg"
|
||||||
final_filename = f"{target_dir_path.stem}-thumb{hint_ext}"
|
final_filename = f"{target_dir_path.stem}{hint_ext}"
|
||||||
target_dir_item = parent_fileitem or self.storagechain.get_parent_item(
|
target_dir_item = parent_fileitem or self.storagechain.get_parent_item(
|
||||||
current_fileitem
|
current_fileitem
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user