Compare commits

..

No commits in common. "8de458413237f9ddc92e6f572f4e3fdbd1027e65" and "c3fb59a3e7220b6782a1097394f2b36fa2d85709" have entirely different histories.

2 changed files with 7 additions and 31 deletions

View File

@ -81,32 +81,16 @@ settings_time = {
"long_date_week": "%m/%d/%Y %I:%M%p, %A"
}
banned_tags = (
# Gross fetishes
"guro", "scat", "amputee", "fisting", "fart",
"birth", "inflation", "big_belly", "pregnant",
"intestine_bulge", "gigantic_breasts",
# Gay/Male Focus
"guro", "scat", "birth", "inflation", "big_belly", "pregnant", "amputee",
"yaoi", "implied_yaoi", "bara", "male_focus", "futanari", "otoko_no_ko",
"shota", "trap",
# Beastiality
"tentacles", "bestiality", "insect_girl", "scylla",
"spider", "spider_girl", "mummification", "mummification_(bound)",
"furry", "animal_focus", "no_humans", "cyclops", "android",
"robot_joints", "cyborg", "interspecies",
# Low Quality
"tentacles", "bestiality", "spider", "mummification", "mummification_(bound)",
"insect_girl", "spider_girl",
"greyscale", "grayscale", "monochrome", "lowres", "comic",
"3d", "real_life", "photo_(medium)", "sample_watermark",
"traditional_media",
# Bad anatomy
"anatomical_nonsense", "fewer_digits", "missing_finger",
"extra_digits", "extra_breasts", "extra_eyes", "extra_mouth",
"extra_heads", "extra_penises", "extra_faces", "extra_legs",
"missing_limb",
# Bad artists
"sath", "sath15"
)
settings_backend = {
"danbooru_backend": {
"module": "danbooru_backend",
@ -127,15 +111,6 @@ settings_backend = {
"max_depth": 91,
"url": "https://konachan.com"
},
"yandere_backend": {
"module": "konachan_backend",
"username": None,
"password": None,
"tmp_dir": settings_behavior["tmp_dir"],
"max_size": settings_behavior["max_size"],
"max_depth": 13,
"url": "https://yande.re"
},
"gelbooru_backend": {
"module": "gelbooru_backend",
"username": None,

View File

@ -144,8 +144,9 @@ class YandereBot:
backend_s = picked_profile["backend"]
backend_credentials = self.settings_backend[backend_s]
backend = importlib.import_module(backend_credentials["module"])
img = None
downloader = backend.downloader(backend_credentials)
img = downloader.fetch_post(picked_profile)
if img is None: