Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
add password failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Apr 8, 2024
1 parent a42b015 commit 9d474f2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cyberdrop_dl/utils/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
import rich
from yarl import URL

from cyberdrop_dl.clients.errors import NoExtensionFailure, FailedLoginFailure, InvalidContentTypeFailure
from cyberdrop_dl.clients.errors import NoExtensionFailure, FailedLoginFailure, InvalidContentTypeFailure, \
PasswordProtected

if TYPE_CHECKING:
from typing import Tuple
Expand Down Expand Up @@ -64,6 +65,10 @@ async def wrapper(self, *args, **kwargs):
await log(f"Scrape Failed: {link} (No File Extension)", 40)
await self.manager.log_manager.write_scrape_error_log(link, " No File Extension")
await self.manager.progress_manager.scrape_stats_progress.add_failure("No File Extension")
except PasswordProtected:
await log(f"Scrape Failed: {link} (Password Protected)", 40)
await self.manager.log_manager.write_unsupported_urls_log(link)
await self.manager.progress_manager.scrape_stats_progress.add_failure("Password Protected")
except FailedLoginFailure:
await log(f"Scrape Failed: {link} (Failed Login)", 40)
await self.manager.log_manager.write_scrape_error_log(link, " Failed Login")
Expand Down

0 comments on commit 9d474f2

Please sign in to comment.