Compare commits

...

2 Commits

Author SHA1 Message Date
8de4584132 Minor code cleanup 2022-12-18 19:00:11 -08:00
6980581c13 Added more banned tags and yande.re site 2022-12-18 18:59:56 -08:00
2 changed files with 31 additions and 7 deletions

View File

@ -81,16 +81,32 @@ settings_time = {
"long_date_week": "%m/%d/%Y %I:%M%p, %A" "long_date_week": "%m/%d/%Y %I:%M%p, %A"
} }
banned_tags = ( banned_tags = (
"guro", "scat", "birth", "inflation", "big_belly", "pregnant", "amputee", # Gross fetishes
"guro", "scat", "amputee", "fisting", "fart",
"birth", "inflation", "big_belly", "pregnant",
"intestine_bulge", "gigantic_breasts",
# Gay/Male Focus
"yaoi", "implied_yaoi", "bara", "male_focus", "futanari", "otoko_no_ko", "yaoi", "implied_yaoi", "bara", "male_focus", "futanari", "otoko_no_ko",
"tentacles", "bestiality", "spider", "mummification", "mummification_(bound)", "shota", "trap",
"insect_girl", "spider_girl", # 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
"greyscale", "grayscale", "monochrome", "lowres", "comic", "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 = { settings_backend = {
"danbooru_backend": { "danbooru_backend": {
"module": "danbooru_backend", "module": "danbooru_backend",
@ -111,6 +127,15 @@ settings_backend = {
"max_depth": 91, "max_depth": 91,
"url": "https://konachan.com" "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": { "gelbooru_backend": {
"module": "gelbooru_backend", "module": "gelbooru_backend",
"username": None, "username": None,

View File

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