use warning color when skipping non-manga/CG work

This commit is contained in:
xenofem 2024-04-20 13:45:55 -04:00
parent d33d4816c6
commit b26a854bdb

View file

@ -267,7 +267,7 @@ async def fetch_async(args):
print(f'Fetching DLSite metadata for {work_id}') print(f'Fetching DLSite metadata for {work_id}')
dlsite_metadata = await api.get_work(work_id) dlsite_metadata = await api.get_work(work_id)
if dlsite_metadata.work_type not in [dlsite_async.WorkType.MANGA, dlsite_async.WorkType.CG_ILLUSTRATIONS]: if dlsite_metadata.work_type not in [dlsite_async.WorkType.MANGA, dlsite_async.WorkType.CG_ILLUSTRATIONS]:
print(f'Work {work_id} is not a manga or CG set, skipping') warn(f'Work {work_id} is not a manga or CG set, skipping')
any_warnings = True any_warnings = True
continue continue
db_row = { db_row = {