Initial commit: Add webtoon downloader
This commit is contained in:
23
helper.py
Normal file
23
helper.py
Normal file
@@ -0,0 +1,23 @@
|
||||
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 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)
|
||||
Reference in New Issue
Block a user