[chan] unescape title
This commit is contained in:
@@ -42,6 +42,5 @@ class ChanExtractor(Extractor):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def get_thread_title(post):
|
def get_thread_title(post):
|
||||||
"""Return thread title from first post"""
|
"""Return thread title from first post"""
|
||||||
if "sub" in post:
|
title = post["sub"] if "sub" in post else text.remove_html(post["com"])
|
||||||
return post["sub"]
|
return text.unescape(title)[:50]
|
||||||
return text.unescape(text.remove_html(post["com"]))[:50]
|
|
||||||
|
|||||||
Reference in New Issue
Block a user