1
0
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-12-16 14:36:47 +00:00

Ant1NewsGrEmbedIE._extract_urls: Simplify redundant statement

This commit is contained in:
Zenon Mousmoulas 2021-11-13 11:55:12 +02:00
parent 264544f90e
commit 3872619ed5

View File

@ -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)