diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-06-02 18:36:36 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-06-02 18:36:36 +0200 |
commit | 5ccd94a771cf1031b837c7bc4d0baeab4b810a38 (patch) | |
tree | 3e59a84138a41ca6ed914930dddd4785a19932bd | |
parent | 032ac2eb98f02dd18da7b642917635c81ba43cf6 (diff) |
4chan: Use cached boards.json instead of downloading it everytime
-rw-r--r-- | boards.json | 1 | ||||
-rw-r--r-- | src/plugins/Fourchan.cpp | 12 |
2 files changed, 11 insertions, 2 deletions
diff --git a/boards.json b/boards.json new file mode 100644 index 0000000..8a35ea5 --- /dev/null +++ b/boards.json @@ -0,0 +1 @@ +{"boards":[{"board":"3","title":"3DCG","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/3\/ - 3DCG\u0026quot; is 4chan's board for 3D modeling and imagery.","is_archived":1},{"board":"a","title":"Anime \u0026 Manga","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":500,"image_limit":300,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/a\/ - Anime \u0026amp; Manga\u0026quot; is 4chan's imageboard dedicated to the discussion of Japanese animation and manga.","spoilers":1,"custom_spoilers":1,"is_archived":1},{"board":"aco","title":"Adult Cartoons","ws_board":0,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":300,"image_limit":300,"cooldowns":{"threads":600,"replies":60,"images":30},"meta_description":"\u0026quot;\/aco\/ - Adult Cartoons\u0026quot; is 4chan's imageboard for posting western-styled adult cartoon artwork.","is_archived":1},{"board":"adv","title":"Advice","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/adv\/ - Advice\u0026quot; is 4chan's board for giving and receiving advice. ","is_archived":1},{"board":"an","title":"Animals \u0026 Nature","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/an\/ - Animals \u0026amp; Nature\u0026quot; is 4chan's imageboard for posting pictures of animals, pets, and nature.","is_archived":1},{"board":"asp","title":"Alternative Sports \u0026 Wrestling","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/asp\/ - Alternative Sports \u0026amp; Wrestling\u0026quot; is 4chan's imageboard for the discussion of alternative and extreme sports such as wrestling and paintball.","is_archived":1},{"board":"b","title":"Random","ws_board":0,"per_page":15,"pages":10,"max_filesize":2097152,"max_webm_filesize":2097152,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":300,"image_limit":150,"cooldowns":{"threads":90,"replies":30,"images":30},"meta_description":"\u0026quot;\/b\/ - Random\u0026quot; is the birthplace of Anonymous, and where people go to discuss random topics and create memes on 4chan.","forced_anon":1},{"board":"bant","title":"International\/Random","ws_board":0,"per_page":15,"pages":10,"max_filesize":2097152,"max_webm_filesize":2097152,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":300,"image_limit":150,"cooldowns":{"threads":60,"replies":15,"images":15},"meta_description":"\u0026quot;\/bant\/ - International\/Random\u0026quot; is 4chan's international hanging out board, where you can have fun with Anonymous all over the world.","user_ids":1,"country_flags":1},{"board":"biz","title":"Business \u0026 Finance","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/biz\/ - Business \u0026amp; Finance\u0026quot; is 4chan's imageboard for the discussion of business and finance, and cryptocurrencies such as Bitcoin and Dogecoin.","user_ids":1,"is_archived":1},{"board":"c","title":"Anime\/Cute","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/c\/ - Anime\/Cute\u0026quot; is 4chan's imageboard for cute and moe anime images.","is_archived":1},{"board":"cgl","title":"Cosplay \u0026 EGL","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/cgl\/ - Cosplay \u0026amp; EGL\u0026quot; is 4chan's imageboard for the discussion of cosplay, elegant gothic lolita (EGL), and anime conventions.","is_archived":1},{"board":"ck","title":"Food \u0026 Cooking","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/ck\/ - Food \u0026amp; Cooking\u0026quot; is 4chan's imageboard for food pictures and cooking recipes.","is_archived":1},{"board":"cm","title":"Cute\/Male","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/cm\/ - Cute\/Male\u0026quot; is 4chan's imageboard for posting pictures of cute anime males.","is_archived":1},{"board":"co","title":"Comics \u0026 Cartoons","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":500,"image_limit":300,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/co\/ - Comics \u0026amp; Cartoons\u0026quot; is 4chan's imageboard dedicated to the discussion of Western cartoons and comics.","spoilers":1,"custom_spoilers":5,"is_archived":1},{"board":"d","title":"Hentai\/Alternative","ws_board":0,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":300,"image_limit":300,"cooldowns":{"threads":600,"replies":60,"images":30},"meta_description":"\u0026quot;\/d\/ - Hentai\/Alternative\u0026quot; is 4chan's imageboard for alternative hentai images.","is_archived":1},{"board":"diy","title":"Do It Yourself","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/diy\/ - Do It Yourself\u0026quot; is 4chan's imageboard for DIY\/do it yourself projects, home improvement, and makers.","is_archived":1},{"board":"e","title":"Ecchi","ws_board":0,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":300,"image_limit":300,"cooldowns":{"threads":600,"replies":60,"images":30},"meta_description":"\u0026quot;\/e\/ - Ecchi\u0026quot; is 4chan's imageboard for suggestive (ecchi) hentai images.","is_archived":1},{"board":"f","title":"Flash","ws_board":0,"per_page":30,"pages":1,"max_filesize":10485760,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":300,"image_limit":300,"cooldowns":{"threads":600,"replies":60,"images":30},"meta_description":"\u0026quot;\/f\/ - Flash\u0026quot; is 4chan's upload board for sharing Adobe Flash files (SWFs)."},{"board":"fa","title":"Fashion","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/fa\/ - Fashion\u0026quot; is 4chan's imageboard for images and discussion relating to fashion and apparel.","is_archived":1},{"board":"fit","title":"Fitness","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/fit\/ - Fitness\u0026quot; is 4chan's imageboard for weightlifting, health, and fitness.","is_archived":1},{"board":"g","title":"Technology","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/g\/ - Technology\u0026quot; is 4chan's imageboard for discussing computer hardware and software, programming, and general technology.","is_archived":1,"code_tags":1},{"board":"gd","title":"Graphic Design","ws_board":1,"per_page":15,"pages":10,"max_filesize":8388608,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/gd\/ - Graphic Design\u0026quot; is 4chan's imageboard for graphic design.","is_archived":1},{"board":"gif","title":"Adult GIF","ws_board":0,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":4194304,"max_comment_chars":2000,"max_webm_duration":300,"bump_limit":300,"image_limit":300,"cooldowns":{"threads":600,"replies":60,"images":30},"meta_description":"\u0026quot;\/gif\/ - Adult GIF\u0026quot; is 4chan's imageboard dedicated to animated adult GIFs and WEBMs.","is_archived":1,"webm_audio":1},{"board":"h","title":"Hentai","ws_board":0,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":300,"image_limit":300,"cooldowns":{"threads":600,"replies":60,"images":30},"meta_description":"\u0026quot;\/h\/ - Hentai\u0026quot; is 4chan's imageboard for adult Japanese anime hentai images.","is_archived":1},{"board":"hc","title":"Hardcore","ws_board":0,"per_page":15,"pages":10,"max_filesize":8388608,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":300,"image_limit":300,"cooldowns":{"threads":600,"replies":60,"images":30},"meta_description":"\u0026quot;\/hc\/ - Hardcore\u0026quot; is 4chan's imageboard for the posting of adult hardcore pornography.","is_archived":1,"min_image_width":500,"min_image_height":500},{"board":"his","title":"History \u0026 Humanities","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":60,"replies":15,"images":15},"meta_description":"\u0026quot;\/his\/ - History \u0026amp; Humanities\u0026quot; is 4chan's board for discussing and debating history.","is_archived":1},{"board":"hm","title":"Handsome Men","ws_board":0,"per_page":15,"pages":10,"max_filesize":8388608,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":300,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":30},"meta_description":"\u0026quot;\/hm\/ - Handsome Men\u0026quot; is 4chan's imageboard dedicated to sharing adult images of handsome men.","is_archived":1},{"board":"hr","title":"High Resolution","ws_board":0,"per_page":15,"pages":10,"max_filesize":8388608,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":300,"image_limit":300,"cooldowns":{"threads":600,"replies":60,"images":30},"meta_description":"\u0026quot;\/hr\/ - High Resolution\u0026quot; is 4chan's imageboard for the sharing of high resolution images.","is_archived":1,"min_image_width":1000,"min_image_height":1000},{"board":"i","title":"Oekaki","ws_board":0,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":300,"image_limit":300,"cooldowns":{"threads":600,"replies":60,"images":30},"meta_description":"\u0026quot;\/i\/ - Oekaki\u0026quot; is 4chan's oekaki board for drawing and sharing art.","is_archived":1,"oekaki":1},{"board":"ic","title":"Artwork\/Critique","ws_board":0,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":300,"image_limit":300,"cooldowns":{"threads":600,"replies":60,"images":30},"meta_description":"\u0026quot;\/ic\/ - Artwork\/Critique\u0026quot; is 4chan's imageboard for the discussion and critique of art.","is_archived":1},{"board":"int","title":"International","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/int\/ - International\u0026quot; is 4chan's international board, for the exchange of foreign language and culture.","is_archived":1,"country_flags":1},{"board":"jp","title":"Otaku Culture","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":5000,"max_webm_duration":120,"bump_limit":310,"image_limit":300,"cooldowns":{"threads":3600,"replies":60,"images":60},"meta_description":"\u0026quot;\/jp\/ - Otaku Culture\u0026quot; is 4chan's board for discussing Japanese otaku culture.","spoilers":1,"custom_spoilers":1,"is_archived":1,"sjis_tags":1},{"board":"k","title":"Weapons","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/k\/ - Weapons\u0026quot; is 4chan's imageboard for discussing all types of weaponry, from military tanks to guns and knives.","is_archived":1},{"board":"lgbt","title":"LGBT","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/lgbt\/ - LGBT\u0026quot; is 4chan's imageboard for Lesbian-Gay-Bisexual-Transgender-Queer and sexuality discussion.","is_archived":1},{"board":"lit","title":"Literature","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":3000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/lit\/ - Literature\u0026quot; is 4chan's board for the discussion of books, authors, and literature.","spoilers":1,"custom_spoilers":1,"is_archived":1},{"board":"m","title":"Mecha","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/m\/ - Mecha\u0026quot; is 4chan's imageboard for discussing Japanese mecha robots and anime, like Gundam and Macross.","spoilers":1,"custom_spoilers":4,"is_archived":1},{"board":"mlp","title":"Pony","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":500,"image_limit":300,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/mlp\/ - Pony\u0026quot; is 4chan's imageboard dedicated to the discussion of My Little Pony: Friendship is Magic.","spoilers":1,"custom_spoilers":1,"is_archived":1},{"board":"mu","title":"Music","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/mu\/ - Music\u0026quot; is 4chan's imageboard for discussing all types of music.","is_archived":1},{"board":"n","title":"Transportation","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/n\/ - Transportation\u0026quot; is 4chan's imageboard for discussing modes of transportation like trains and bicycles.","is_archived":1},{"board":"news","title":"Current News","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":500,"image_limit":300,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/news\/ - Current News; is 4chan's board for current news. ","spoilers":1,"custom_spoilers":1,"is_archived":1,"text_only":1,"require_subject":1},{"board":"o","title":"Auto","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/o\/ - Auto\u0026quot; is 4chan's imageboard for discussing cars and motorcycles.","is_archived":1},{"board":"out","title":"Outdoors","ws_board":1,"per_page":15,"pages":10,"max_filesize":5242880,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/out\/ - Outdoors\u0026quot; is 4chan's imageboard for discussing survivalist skills and outdoor activities such as hiking.","is_archived":1},{"board":"p","title":"Photography","ws_board":1,"per_page":15,"pages":10,"max_filesize":5242880,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/p\/ - Photography\u0026quot; is 4chan's imageboard for sharing and critiquing photos.","is_archived":1},{"board":"po","title":"Papercraft \u0026 Origami","ws_board":1,"per_page":15,"pages":10,"max_filesize":8388608,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/po\/ - Papercraft \u0026amp; Origami\u0026quot; is 4chan's imageboard for posting papercraft and origami templates and instructions.","is_archived":1},{"board":"pol","title":"Politically Incorrect","ws_board":0,"per_page":20,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":300,"image_limit":300,"cooldowns":{"threads":90,"replies":30,"images":30},"meta_description":"\u0026quot;\/pol\/ - Politically Incorrect\u0026quot; is 4chan's board for discussing and debating politics and current events.","user_ids":1,"is_archived":1,"troll_flags":1},{"board":"qa","title":"Question \u0026 Answer","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/qa\/ - Question \u0026amp; Answer\u0026quot; is 4chan's imageboard for question and answer threads.","is_archived":1},{"board":"qst","title":"Quests","ws_board":1,"per_page":15,"pages":10,"max_filesize":8388608,"max_webm_filesize":3145728,"max_comment_chars":3000,"max_webm_duration":120,"bump_limit":750,"image_limit":375,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/qst\/ - Quests\u0026quot; is 4chan's imageboard for grinding XP.","spoilers":1,"user_ids":1,"is_archived":1,"require_subject":1,"oekaki":1},{"board":"r","title":"Adult Requests","ws_board":0,"per_page":15,"pages":10,"max_filesize":8388608,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":300,"image_limit":300,"cooldowns":{"threads":600,"replies":60,"images":30},"meta_description":"\u0026quot;\/r\/ - Request\u0026quot; is 4chan's imageboard dedicated to fulfilling all types of user requests.","is_archived":1,"webm_audio":1},{"board":"r9k","title":"ROBOT9001","ws_board":0,"per_page":15,"pages":10,"max_filesize":2097152,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":500,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":30},"meta_description":"\u0026quot;\/r9k\/ - ROBOT9001\u0026quot; is a board for hanging out and posting greentext stories.","spoilers":1,"is_archived":1},{"board":"s","title":"Sexy Beautiful Women","ws_board":0,"per_page":15,"pages":10,"max_filesize":8388608,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":300,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":30},"meta_description":"\u0026quot;\/s\/ - Sexy Beautiful Women\u0026quot; is 4chan's imageboard dedicated to sharing images of softcore pornography.","is_archived":1,"min_image_width":500,"min_image_height":500},{"board":"s4s","title":"Shit 4chan Says","ws_board":0,"per_page":15,"pages":10,"max_filesize":2097152,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":300,"image_limit":300,"cooldowns":{"threads":300,"replies":60,"images":30},"meta_description":"\u0026quot;[s4s] - Shit 4chan Says\u0026quot; is 4chan's imageboard for posting dank memes :^)","spoilers":1,"custom_spoilers":6,"is_archived":1},{"board":"sci","title":"Science \u0026 Math","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/sci\/ - Science \u0026amp; Math\u0026quot; is 4chan's board for the discussion of science and math.","is_archived":1,"math_tags":1},{"board":"soc","title":"Cams \u0026 Meetups","ws_board":0,"per_page":15,"pages":10,"max_filesize":5242880,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":500,"image_limit":300,"cooldowns":{"threads":600,"replies":60,"images":30},"meta_description":"\u0026quot;\/soc\/ - Cams \u0026amp; Meetups\u0026quot; is 4chan's board for camwhores and meetups.","user_ids":1,"is_archived":1,"forced_anon":1},{"board":"sp","title":"Sports","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":500,"image_limit":300,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/sp\/ - Sports\u0026quot; is 4chan's imageboard for sports discussion.","is_archived":1,"country_flags":1},{"board":"t","title":"Torrents","ws_board":0,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":300,"image_limit":300,"cooldowns":{"threads":600,"replies":60,"images":30},"meta_description":"\u0026quot;\/t\/ - Torrents\u0026quot; is 4chan's imageboard for posting links and descriptions to torrents.","is_archived":1},{"board":"tg","title":"Traditional Games","ws_board":1,"per_page":15,"pages":10,"max_filesize":8388608,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/tg\/ - Traditional Games\u0026quot; is 4chan's imageboard for discussing traditional gaming, such as board games and tabletop RPGs.","spoilers":1,"custom_spoilers":2,"is_archived":1},{"board":"toy","title":"Toys","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/toy\/ - Toys\u0026quot; is 4chan's imageboard for talking about all kinds of toys!","is_archived":1},{"board":"trash","title":"Off-Topic","ws_board":0,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":300,"image_limit":300,"cooldowns":{"threads":600,"replies":60,"images":30},"meta_description":"\u0026quot;\/trash\/ - Off-topic\u0026quot; is 4chan's imageboard jail for off-topic threads.","forced_anon":1},{"board":"trv","title":"Travel","ws_board":1,"per_page":15,"pages":10,"max_filesize":8388608,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/trv\/ - Travel\u0026quot; is 4chan's imageboard dedicated to travel and the countries of the world.","is_archived":1},{"board":"tv","title":"Television \u0026 Film","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/tv\/ - Television \u0026amp; Film\u0026quot; is 4chan's imageboard dedicated to the discussion of television and film.","spoilers":1,"custom_spoilers":5,"is_archived":1},{"board":"u","title":"Yuri","ws_board":0,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":300,"image_limit":300,"cooldowns":{"threads":600,"replies":60,"images":30},"meta_description":"\u0026quot;\/u\/ - Yuri\u0026quot; is 4chan's imageboard for yuri hentai images.","spoilers":1,"is_archived":1},{"board":"v","title":"Video Games","ws_board":1,"per_page":20,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":500,"image_limit":300,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/v\/ - Video Games\u0026quot; is 4chan's imageboard dedicated to the discussion of PC and console video games.","spoilers":1,"custom_spoilers":1,"is_archived":1},{"board":"vg","title":"Video Game Generals","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":750,"image_limit":375,"cooldowns":{"threads":600,"replies":90,"images":120},"meta_description":"\u0026quot;\/vg\/ - Video Game Generals\u0026quot; is 4chan's imageboard dedicated to the discussion of PC and console video games.","spoilers":1,"custom_spoilers":1,"is_archived":1,"require_subject":1},{"board":"vip","title":"Very Important Posts","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":300,"image_limit":300,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/vip\/ - Very Important Posts\u0026quot; is 4chan's imageboard for Pass users.","spoilers":1,"is_archived":1,"sjis_tags":1,"oekaki":1},{"board":"vp","title":"Pok\u00e9mon","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/vp\/ - Pok\u0026eacute;mon\u0026quot; is 4chan's imageboard dedicated to discussing the Pok\u0026eacute;mon series of video games and shows.","spoilers":1,"custom_spoilers":1,"is_archived":1},{"board":"vr","title":"Retro Games","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":500,"image_limit":300,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/vr\/ - Retro Games\u0026quot; is 4chan's imageboard for discussing retro console video games and classic arcade games.","spoilers":1,"custom_spoilers":2,"is_archived":1},{"board":"w","title":"Anime\/Wallpapers","ws_board":1,"per_page":15,"pages":10,"max_filesize":6291456,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":300,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/w\/ - Anime\/Wallpapers\u0026quot; is 4chan's imageboard for posting Japanese anime wallpapers.","is_archived":1,"min_image_width":480,"min_image_height":600},{"board":"wg","title":"Wallpapers\/General","ws_board":0,"per_page":15,"pages":10,"max_filesize":6291456,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":300,"image_limit":300,"cooldowns":{"threads":600,"replies":60,"images":30},"meta_description":"\u0026quot;\/wg\/ - Wallpapers\/General\u0026quot; is 4chan's imageboard for posting general wallpapers.","is_archived":1,"min_image_width":480,"min_image_height":600},{"board":"wsg","title":"Worksafe GIF","ws_board":1,"per_page":15,"pages":10,"max_filesize":6291456,"max_webm_filesize":6291456,"max_comment_chars":2000,"max_webm_duration":300,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/wsg\/ - Worksafe GIF\u0026quot; is 4chan's imageboard dedicated to sharing worksafe animated GIFs and WEBMs.","is_archived":1,"webm_audio":1},{"board":"wsr","title":"Worksafe Requests","ws_board":1,"per_page":15,"pages":10,"max_filesize":8388608,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/wsr\/ - Worksafe Requests\u0026quot; is 4chan's imageboard dedicated to fulfilling non-NSFW requests.","is_archived":1,"webm_audio":1},{"board":"x","title":"Paranormal","ws_board":1,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":310,"image_limit":150,"cooldowns":{"threads":600,"replies":60,"images":60},"meta_description":"\u0026quot;\/x\/ - Paranormal\u0026quot; is 4chan's imageboard for the discussion of paranormal, spooky pictures and conspiracy theories.","is_archived":1},{"board":"y","title":"Yaoi","ws_board":0,"per_page":15,"pages":10,"max_filesize":4194304,"max_webm_filesize":3145728,"max_comment_chars":2000,"max_webm_duration":120,"bump_limit":300,"image_limit":300,"cooldowns":{"threads":600,"replies":60,"images":30},"meta_description":"\u0026quot;\/y\/ - Yaoi\u0026quot; is 4chan's imageboard for posting adult yaoi hentai images.","is_archived":1}],"troll_flags":{"AC":"Anarcho-Capitalist","AN":"Anarchist","BL":"Black Nationalist","CF":"Confederate","CM":"Communist","CT":"Catalonia","DM":"Democrat","EU":"European","FC":"Fascist","GN":"Gadsden","GY":"Gay","JH":"Jihadi","KN":"Kekistani","MF":"Muslim","NB":"National Bolshevik","NZ":"Nazi","PC":"Hippie","PR":"Pirate","RE":"Republican","TM":"Templar","TR":"Tree Hugger","UN":"United Nations","WP":"White Supremacist"}}
\ No newline at end of file diff --git a/src/plugins/Fourchan.cpp b/src/plugins/Fourchan.cpp index 06728fe..073356b 100644 --- a/src/plugins/Fourchan.cpp +++ b/src/plugins/Fourchan.cpp @@ -1,7 +1,8 @@ #include "../../plugins/Fourchan.hpp" +#include "../../include/DataView.hpp" +#include "../../include/Storage.hpp" #include <json/reader.h> #include <string.h> -#include "../../include/DataView.hpp" #include <tidy.h> #include <tidybuffio.h> @@ -45,10 +46,17 @@ namespace QuickMedia { } PluginResult Fourchan::get_front_page(BodyItems &result_items) { +#if 0 std::string server_response; if(download_to_string(fourchan_url + "boards.json", server_response, {}, use_tor) != DownloadResult::OK) return PluginResult::NET_ERR; - +#else + std::string server_response; + if(file_get_content("../../../boards.json", server_response) != 0) { + fprintf(stderr, "failed to read boards.json\n"); + return PluginResult::ERR; + } +#endif Json::Value json_root; Json::CharReaderBuilder json_builder; std::unique_ptr<Json::CharReader> json_reader(json_builder.newCharReader()); |