[webtoons] add 'thumbnails' option (#6468 #7441)

* Update webtoons.py
    Added thumbnail download capability which defaults to false
* Update configuration.rst
    Added documentation for webtoon thumbnail option
* extract thumbnails in GalleryExtractor.assets()
* simplify & fix flake8
* include 'type' in default filenames
* add test
* update docs

---------

Co-authored-by: Mike Fährmann <mike_faehrmann@web.de>
This commit is contained in:
pocketinternet
2025-06-17 18:34:58 +01:00
committed by GitHub
parent 1f429da650
commit 3ea244eebb
4 changed files with 38 additions and 4 deletions

View File

@@ -13,8 +13,8 @@ __tests__ = (
"#url" : "https://www.webtoons.com/en/comedy/safely-endangered/ep-572-earth/viewer?title_no=352&episode_no=572",
"#category": ("", "webtoons", "episode"),
"#class" : webtoons.WebtoonsEpisodeExtractor,
"#count" : 5,
"#results" : (
"#count" : 5,
"#results" : (
"https://swebtoon-phinf.pstatic.net/20200513_191/1589322488148XfdRr_PNG/15893224850013525720.png?type=opti",
"https://swebtoon-phinf.pstatic.net/20200513_143/1589322489499KJLvU_PNG/15893224866183525723.png?type=opti",
"https://swebtoon-phinf.pstatic.net/20200513_281/15893224881499wbH7_PNG/15893224865073525729.png?type=opti",
@@ -45,6 +45,20 @@ __tests__ = (
"username" : "safelyendangered",
},
{
"#url" : "https://www.webtoons.com/en/comedy/safely-endangered/ep-572-earth/viewer?title_no=352&episode_no=572",
"#comment" : "thumbnails (#6468 #7441)",
"#class" : webtoons.WebtoonsEpisodeExtractor,
"#options" : {"thumbnails": True},
"#range" : "1",
"#results" : "https://swebtoon-phinf.pstatic.net/20200513_37/1589322553469E5p76_PNG/thumb_15893224866533525729.png",
"#sha1_content": "e01e70610821df6ece601393eb6fd7d80fc42f9a",
"count": 5,
"num" : 0,
"type" : "thumbnail",
},
{
"#url" : "https://www.webtoons.com/en/challenge/punderworld/happy-earth-day-/viewer?title_no=312584&episode_no=40",
"#category": ("", "webtoons", "episode"),