diff --git a/docs/supportedsites.md b/docs/supportedsites.md index 01326dd0..09062b71 100644 --- a/docs/supportedsites.md +++ b/docs/supportedsites.md @@ -1915,6 +1915,12 @@ Consider all listed sites to potentially be NSFW. Forums, Media Categories, Media Files, User Media, Posts, Threads + + celebforum + https://celebforum.to/ + Forums, Media Categories, Media Files, User Media, Posts, Threads + + Moebooru and MyImouto diff --git a/gallery_dl/extractor/xenforo.py b/gallery_dl/extractor/xenforo.py index 800ab1be..5c31e600 100644 --- a/gallery_dl/extractor/xenforo.py +++ b/gallery_dl/extractor/xenforo.py @@ -374,6 +374,10 @@ BASE_PATTERN = XenforoExtractor.update({ "root": "https://allthefallen.moe/forum", "pattern": r"(?:www\.)?allthefallen\.moe/forum", }, + "celebforum": { + "root": "https://celebforum.to", + "pattern": r"(?:www\.)?celebforum\.to", + }, }) diff --git a/scripts/supportedsites.py b/scripts/supportedsites.py index 8d130e54..8bc8ed7f 100755 --- a/scripts/supportedsites.py +++ b/scripts/supportedsites.py @@ -42,6 +42,7 @@ CATEGORY_MAP = { "batoto" : "BATO.TO", "bbc" : "BBC", "booth" : "BOOTH", + "celebforum" : "celebforum", "cfake" : "Celebrity Fakes", "cien" : "Ci-en", "cohost" : "cohost!", diff --git a/test/results/celebforum.py b/test/results/celebforum.py new file mode 100644 index 00000000..f5f0065a --- /dev/null +++ b/test/results/celebforum.py @@ -0,0 +1,102 @@ +# -*- coding: utf-8 -*- + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation. + +from gallery_dl.extractor import xenforo + + +__tests__ = ( +{ + "#url" : "https://celebforum.to/threads/addison-vodka.84947/post-885855", + "#category": ("xenforo", "celebforum", "post"), + "#class" : xenforo.XenforoPostExtractor, + "#results" : ( + "https://celebforum.to/data/assets/videos/notregistered.mp4", + "https://celebforum.to/attachments/e2vurqbi2i-png.5293040/", + "https://celebforum.to/attachments/wxt4sxsity-png.5293043/", + "https://celebforum.to/attachments/echvvlmtcl-png.5293045/", + ), + + "count" : 4, + "extension" : {"png", "mp4"}, + "filename" : str, + "num_external": 0, + "num_internal": range(1, 4), + "type" : {"video", "inline"}, + "post" : { + "attachments": "", + "author" : "kamikaze-770807", + "author_id" : "post-88585", + "author_slug": "", + "author_url" : "/threads/addison-vodka.84947/post-885855", + "count" : 4, + "date" : "dt:2024-09-15 08:08:16", + "id" : "885855", + "content" : str, + }, + "thread" : { + "author" : "Iomflj", + "author_id" : "", + "author_slug": "iomflj", + "author_url" : "", + "date" : "dt:2024-01-29 19:56:27", + "id" : "84947", + "posts" : int, + "section" : "Pornostars", + "tags" : (), + "title" : "Addison Vodka", + "url" : "https://celebforum.to/threads/addison-vodka.84947/", + "views" : -1, + }, +}, + +{ + "#url" : "https://celebforum.to/threads/addison-vodka.84947/", + "#category": ("xenforo", "celebforum", "thread"), + "#class" : xenforo.XenforoThreadExtractor, + "#count" : range(1000, 2000), + + "count" : int, + "num" : int, + "num_external": int, + "num_internal": int, + "type" : {"external", "inline", "video"}, + "post" : { + "attachments": str, + "author" : str, + "author_id" : str, + "author_slug": str, + "author_url" : str, + "count" : int, + "date" : "type:datetime", + "id" : str, + "content" : str + }, + "thread" : { + "author" : "Iomflj", + "author_id" : "", + "author_slug": "iomflj", + "author_url" : "", + "date" : "dt:2024-01-29 19:56:27", + "id" : "84947", + "posts" : int, + "section" : "Pornostars", + "tags" : (), + "title" : "Addison Vodka", + "url" : "https://celebforum.to/threads/addison-vodka.84947/", + "views" : -1, + }, +}, + +{ + "#url" : "https://celebforum.to/forums/pornostars.13/", + "#category": ("xenforo", "celebforum", "forum"), + "#class" : xenforo.XenforoForumExtractor, + "#pattern" : xenforo.XenforoThreadExtractor.pattern, + "#range" : "1-50", + "#count" : 50, +}, + +)