[naverwebtoon] fix 'title' for comics with empty tags (#5120)
This commit is contained in:
@@ -46,7 +46,7 @@ class NaverwebtoonEpisodeExtractor(NaverwebtoonBase, GalleryExtractor):
|
||||
"episode" : self.episode,
|
||||
"comic" : extr('titleName: "', '"'),
|
||||
"tags" : [t.strip() for t in text.extract_iter(
|
||||
extr("tagList: [", "}],"), '"tagName":"', '"')],
|
||||
extr("tagList: [", "],"), '"tagName":"', '"')],
|
||||
"title" : extr('"subtitle":"', '"'),
|
||||
"author" : [a.strip() for a in text.extract_iter(
|
||||
extr('"writers":[', ']'), '"name":"', '"')],
|
||||
|
||||
@@ -61,6 +61,24 @@ __tests__ = (
|
||||
"title_id" : "765124",
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://comic.naver.com/bestChallenge/detail?titleId=620732&no=334",
|
||||
"#comment" : "empty tags (#5120)",
|
||||
"#category": ("", "naverwebtoon", "episode"),
|
||||
"#class" : naverwebtoon.NaverwebtoonEpisodeExtractor,
|
||||
"#count" : 9,
|
||||
|
||||
"artist" : [],
|
||||
"author" : ["안트로anthrokim"],
|
||||
"comic" : "백일몽화원",
|
||||
"count" : 9,
|
||||
"episode" : "334",
|
||||
"num" : range(1, 9),
|
||||
"tags" : [],
|
||||
"title" : "321화... 성(省)",
|
||||
"title_id": "620732",
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://comic.naver.com/bestChallenge/detail.nhn?titleId=771467&no=3",
|
||||
"#category": ("", "naverwebtoon", "episode"),
|
||||
|
||||
Reference in New Issue
Block a user