Skip to content

Commit

Permalink
fix #807
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp committed Oct 12, 2023
1 parent 30c9c66 commit cefbd70
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions app/modules/filetransfer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,13 +382,14 @@ def transfer_media(self,
path=in_path,
message=f"{in_path} 路径不存在")

if not target_dir.exists():
return TransferInfo(success=False,
path=in_path,
message=f"{target_dir} 目标路径不存在")

# 媒体库目的目录
target_dir = self.__get_dest_dir(mediainfo=mediainfo, target_dir=target_dir)
if transfer_type not in ['rclone_copy', 'rclone_move']:
# 检查目标路径
if not target_dir.exists():
return TransferInfo(success=False,
path=in_path,
message=f"{target_dir} 目标路径不存在")
# 媒体库目的目录
target_dir = self.__get_dest_dir(mediainfo=mediainfo, target_dir=target_dir)

# 重命名格式
rename_format = settings.TV_RENAME_FORMAT \
Expand Down

0 comments on commit cefbd70

Please sign in to comment.