feat(mangafreak): add support for MangaFreak

Add chapter and manga extractors for ww2.mangafreak.me with support
for bonus chapters (e.g., 167e suffix).
This commit is contained in:
Duy Nguyen
2026-01-25 15:56:52 +01:00
parent 3836c2a99f
commit 8b0e8c656d
5 changed files with 172 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
# -*- 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 mangafreak
__tests__ = (
{
"#url" : "https://ww2.mangafreak.me/Read1_Onepunch_Man_1",
"#class" : mangafreak.MangafreakChapterExtractor,
"#pattern" : r"https://images\.mangafreak\.me/mangas/onepunch_man/onepunch_man_1/onepunch_man_1_\d+\.jpg",
"#count" : 24,
"chapter" : 1,
"chapter_minor": "",
"chapter_string": "1",
"lang" : "en",
"language" : "English",
"manga" : "Onepunch Man",
"manga_slug" : "Onepunch_Man",
},
{
"#url" : "https://ww2.mangafreak.me/Read1_Onepunch_Man_167e",
"#class" : mangafreak.MangafreakChapterExtractor,
"chapter" : 167,
"chapter_minor": "e",
"chapter_string": "167e",
},
{
"#url" : "https://ww2.mangafreak.me/Manga/Onepunch_Man",
"#class" : mangafreak.MangafreakMangaExtractor,
"#pattern" : mangafreak.MangafreakChapterExtractor.pattern,
"#count" : range(150, 250),
"lang" : "en",
"language" : "English",
"manga" : "Onepunch-Man",
"manga_slug" : "Onepunch_Man",
"chapter" : int,
},
)