From 3872619ed5210e8a60f68cff7dbb64164bdc7b5c Mon Sep 17 00:00:00 2001 From: Zenon Mousmoulas Date: Sat, 13 Nov 2021 11:55:12 +0200 Subject: [PATCH] Ant1NewsGrEmbedIE._extract_urls: Simplify redundant statement --- youtube_dl/extractor/ant1newsgr.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/youtube_dl/extractor/ant1newsgr.py b/youtube_dl/extractor/ant1newsgr.py index 794e241f7..e1d3bb0a9 100644 --- a/youtube_dl/extractor/ant1newsgr.py +++ b/youtube_dl/extractor/ant1newsgr.py @@ -165,9 +165,7 @@ class Ant1NewsGrEmbedIE(Ant1NewsGrBaseIE): url = '%s:%s' % (scheme, url) if not cls.suitable(url): continue - if isinstance(parent_info, dict): - url = cls._smuggle_parent_info(url, **parent_info) - yield url + yield cls._smuggle_parent_info(url, **parent_info) def _real_extract(self, url): url, parent_info = type(self)._unsmuggle_parent_info(url)