23 lines
732 B
Python
23 lines
732 B
Python
from pathlib import Path
|
|
from data.path_constant import DOWNLOAD_DIR, NETWORK_DIR, TEMP_DOWNLOAD_DIR
|
|
from helper.missing_episode import get_missing_episodes
|
|
from helper.missing_images import get_missing_images, resize_and_overwrite
|
|
from helper.prerequisite import delete_all_empty_episodes
|
|
|
|
# delete_all_empty_episodes(DOWNLOAD_DIR)
|
|
# delete_all_empty_episodes(NETWORK_DIR)
|
|
|
|
get_missing_episodes(DOWNLOAD_DIR)
|
|
|
|
get_missing_images()
|
|
|
|
# episode_path = Path(DOWNLOAD_DIR) / '結局創造者' / '0.第1話'
|
|
|
|
# images_path = []
|
|
# for i in range(11, 29+1):
|
|
# file_name = '0' + str(i) + '.webp'
|
|
# path = Path(episode_path) / file_name
|
|
# images_path.append(path)
|
|
|
|
# for path in images_path:
|
|
# resize_and_overwrite(path, 720) |