From 129ca282e4d7f8edf755318a941538ebf8341800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Wed, 11 Nov 2015 00:51:07 +0100 Subject: [PATCH] [chan] unescape title --- gallery_dl/extractor/chan.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gallery_dl/extractor/chan.py b/gallery_dl/extractor/chan.py index 236e1ada..68217d58 100644 --- a/gallery_dl/extractor/chan.py +++ b/gallery_dl/extractor/chan.py @@ -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]