diff --git a/tubearchivist/home/src/download/yt_dlp_handler.py b/tubearchivist/home/src/download/yt_dlp_handler.py index 383855d..2731921 100644 --- a/tubearchivist/home/src/download/yt_dlp_handler.py +++ b/tubearchivist/home/src/download/yt_dlp_handler.py @@ -395,12 +395,12 @@ class VideoDownloader: for file_str in all_cached: if vid_dict["youtube_id"] in file_str: old_file = file_str - old_file_path = os.path.join(cache_dir, "download", old_file) - new_file_path = os.path.join(videos, vid_dict["media_url"]) + old_path = os.path.join(cache_dir, "download", old_file) + new_path = os.path.join(videos, vid_dict["media_url"]) # move media file and fix permission - shutil.move(old_file_path, new_file_path, copy_function=shutil.copy) + shutil.move(old_path, new_path, copy_function=shutil.copyfile) if host_uid and host_gid: - os.chown(new_file_path, host_uid, host_gid) + os.chown(new_path, host_uid, host_gid) @staticmethod def _delete_from_pending(youtube_id): diff --git a/tubearchivist/home/src/index/filesystem.py b/tubearchivist/home/src/index/filesystem.py index 1b75db6..9dd7b47 100644 --- a/tubearchivist/home/src/index/filesystem.py +++ b/tubearchivist/home/src/index/filesystem.py @@ -266,7 +266,7 @@ class ManualImport: if ext == ".mp4": new_file = video_file + ext dest_path = os.path.join(self.CACHE_DIR, "download", new_file) - shutil.move(video_path, dest_path, copy_function=shutil.copy) + shutil.move(video_path, dest_path, copy_function=shutil.copyfile) else: print(f"processing with ffmpeg: {video_file}") new_file = video_file + ".mp4" diff --git a/tubearchivist/home/src/index/reindex.py b/tubearchivist/home/src/index/reindex.py index 7fae0d6..f0b88bd 100644 --- a/tubearchivist/home/src/index/reindex.py +++ b/tubearchivist/home/src/index/reindex.py @@ -305,9 +305,9 @@ class ChannelUrlFixer: """fix filepath""" print(f"{self.youtube_id}: fixing channel rename.") cache_dir = self.config["application"]["cache_dir"] - new_file_path = os.path.join( + new_path = os.path.join( cache_dir, "download", self.youtube_id + ".mp4" ) - shutil.move(video_path_is, new_file_path, copy_function=shutil.copy) + shutil.move(video_path_is, new_path, copy_function=shutil.copyfile) VideoDownloader().move_to_archive(self.video.json_data) self.video.update_media_url() diff --git a/tubearchivist/home/templates/home/channel_id_about.html b/tubearchivist/home/templates/home/channel_id_about.html index 3e27ceb..d3bc9b6 100644 --- a/tubearchivist/home/templates/home/channel_id_about.html +++ b/tubearchivist/home/templates/home/channel_id_about.html @@ -60,7 +60,7 @@ {% endif %}
-

Costomize {{ channel_info.channel_name }}

+

Customize {{ channel_info.channel_name }}