Initial commit: Add webtoon downloader

This commit is contained in:
2024-12-19 13:58:12 +01:00
commit d5a73f342e
53 changed files with 1173 additions and 0 deletions

15
rename_drawable.py Normal file
View File

@@ -0,0 +1,15 @@
import os
from pathlib import Path
res = Path('E:/') / 'Projects' / 'AndroidStudioProjects' / 'WebtoonViewer' / 'app' / 'src' / 'main' / 'res'
for folder_path in res.iterdir():
if "drawable" in folder_path.name and folder_path.is_dir():
for file_path in folder_path.iterdir():
if "menu-dots-vertical" in file_path.name:
new_path = folder_path / ("menu_" + file_path.name.split("_")[1])
# if new_path.exists:
# os.remove(new_path)
os.rename(file_path, new_path)