From 681ab939b269d06dc32554aced509ccdf43c1600 Mon Sep 17 00:00:00 2001 From: Enes Date: Tue, 12 Jun 2018 00:54:57 +0300 Subject: [PATCH] [puhutv] fix title extraction --- youtube_dl/extractor/puhutv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/puhutv.py b/youtube_dl/extractor/puhutv.py index 86ed4d3ef..df602d290 100644 --- a/youtube_dl/extractor/puhutv.py +++ b/youtube_dl/extractor/puhutv.py @@ -61,7 +61,7 @@ class PuhuTVIE(InfoExtractor): display_id = compat_str(info['id']) title = info['title']['name'] - if isinstance(info.get('display_name'), compat_str): + if info.get('display_name'): title = '%s %s' % (title, info.get('display_name')) description = try_get(info, lambda x: x['title']['description'], compat_str) or info.get('description')