Skip to content

Bulk asynchronous downloader for multiple file hosts

Remove the SimpCity disclaimer (#1330)

Jacobd7f4357b5d44
diff --git a/cyberdrop_dl/ui/program_ui.py b/cyberdrop_dl/ui/program_ui.py
index a22b0cd94..5902eb0e2 100644
--- a/cyberdrop_dl/ui/program_ui.py
+++ b/cyberdrop_dl/ui/program_ui.py
@@ -4,7 +4,6 @@ import asyncio
import sqlite3
import sys
from functools import wraps
-from textwrap import dedent
from typing import TYPE_CHECKING, Any, ParamSpec, TypeVar
import browser_cookie3
@@ -68,7 +67,6 @@ class ProgramUI:
"""Program UI."""
clear_term()
options_map = {
- -1: self._show_simpcity_disclaimer,
1: self._download,
2: self._retry_failed_download,
3: self._scan_and_create_hashes,
@@ -237,14 +235,6 @@ class ProgramUI:
def _place_holder(self) -> None:
self.print_error("Option temporarily disabled on this version")
- def _show_simpcity_disclaimer(self) -> None:
- simp_disclaimer = dedent(SIMPCITY_DISCLAIMER)
- clear_term()
- console.print(simp_disclaimer)
- enter_to_continue()
-
- self.manager.cache_manager.save("simp_disclaimer_shown", True)
-
def _open_in_text_editor(self, file_path: Path, *, reload_config: bool = True):
try:
open_in_text_editor(file_path)
@@ -310,36 +300,3 @@ def vacuum_database(db_path: Path) -> None:
finally:
if conn:
conn.close()
-
-
-SIMPCITY_DISCLAIMER = """
-\t\t[bold red]!! DISCLAIMER !![/bold red]
-
-
-Due to the recent DDOS attacks on [italic]SimpCity[/italic], I have made some changes to [italic]Cyberdrop-DL[/italic].
-
-First and foremost, we have removed support for scraping [italic]SimpCity[/italic] for the time being. I know that this will upset many of you, but hopefully, you will understand my reasoning.
-
-
-Because of the DDOS attacks that [italic]SimpCity[/italic] has been receiving, they have been forced to implement some protective features such as using a DDOS-Guard browser check, only allowing [link=https://simpcity.su/threads/emails-august-2024.365869/]whitelisted email domains[/link] to access the website, and [link=https://simpcity.su/threads/rate-limit-429-error.397746/]new rate limits[/link].
-[italic]Cyberdrop-DL[/italic] allows a user to scrape a model's entire thread in seconds, downloading all the files that it finds. This is great but can be problematic for a few reasons:
-\t- We end up downloading a lot of content that we will never view.
-\t- Such large-scale scraping with no limits puts a large strain on [italic]SimpCity[/italic]'s servers, especially when they are getting DDOSed.
-\t- Scraping has no benefit for [italic]SimpCity[/italic] - they gain nothing from us scraping their website.
-
-For those reasons, [italic]SimpCity[/italic] has decided that they don't want to allow automated thread scraping anymore, and have removed the [italic]Cyberdrop-DL[/italic] thread from their website.
-I want to respect [italic]SimpCity[/italic]'s wishes, and as a result, have disabled scraping for [italic]SimpCity[/italic] links.
-
-In order to help reduce the impact that [italic]Cyberdrop-DL[/italic] has on other websites, I have decided to enable the [italic bold]update_last_forum_post[/italic bold] setting for all users' configs.
-You can disable it again after reading through this disclaimer, however, I would recommend against it. [italic bold]update_last_forum_post[/italic bold] actually speeds up scrapes and reduces the load on websites' servers by not re-scraping entire threads and picking up where it left off last time.
-
-Furthermore, I have adjusted the default rate-limiting settings in an effort to reduce the impact that [italic]Cyberdrop-DL[/italic] will have on websites.
-
-I encourage you to be conscientious about how you use [italic]Cyberdrop-DL[/italic].
-Some tips on how to reduce the impact your use of [italic]Cyberdrop-DL[/italic] will have on a website:
-\t- Try to avoid looping runs repeatedly.
-\t- If you have a large URLs file, try to comb through it occasionally and get rid of items you don't want anymore, and try to run [italic]Cyberdrop-DL[/italic] less often.
-\t- Avoid downloading content you don't want. It's good to scan through the content quickly to ensure it's not a bunch of stuff you're going to delete after downloading it.
-
-If you do want to continue downloading from SimpCity, you can use a tampermonkey script like this one: [link=https://simpcity.su/threads/forum-post-downloader-tampermonkey-script.96714/]SimpCity Tampermonkey Forum Downloader[/link]
-"""
diff --git a/cyberdrop_dl/ui/prompts/user_prompts.py b/cyberdrop_dl/ui/prompts/user_prompts.py
index dc66c1cf6..1d76d1593 100644
--- a/cyberdrop_dl/ui/prompts/user_prompts.py
+++ b/cyberdrop_dl/ui/prompts/user_prompts.py
@@ -41,16 +41,8 @@ def main_prompt(manager: Manager) -> int:
}
choices = basic_prompts.create_choices(OPTIONS, append_last=EXIT_CHOICE)
- simp_disclaimer_shown = manager.cache_manager.get("simp_disclaimer_shown")
- if not simp_disclaimer_shown:
- choices = [Choice(-1, "!! PRESS <ENTER> TO VIEW DISCLAIMER !!")]
- prompt_options = {"style": get_style({"pointer": "#ff0000 bold"}) if not simp_disclaimer_shown else None}
-
- if not simp_disclaimer_shown:
- prompt_options["long_instruction"] = "ENTER: view disclaimer"
-
- return basic_prompts.ask_choice(choices, **prompt_options)
+ return basic_prompts.ask_choice(choices)
""" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ MANAGE CONFIG PROMPTS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"""