mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-25 12:12:34 +01:00
[chan] unescape title
This commit is contained in:
parent
20845d86f8
commit
129ca282e4
@ -42,6 +42,5 @@ class ChanExtractor(Extractor):
|
||||
@staticmethod
|
||||
def get_thread_title(post):
|
||||
"""Return thread title from first post"""
|
||||
if "sub" in post:
|
||||
return post["sub"]
|
||||
return text.unescape(text.remove_html(post["com"]))[:50]
|
||||
title = post["sub"] if "sub" in post else text.remove_html(post["com"])
|
||||
return text.unescape(title)[:50]
|
||||
|
Loading…
Reference in New Issue
Block a user