diff --git a/module.py b/module.py index a25fe64..f9c7b05 100644 --- a/module.py +++ b/module.py @@ -38,12 +38,12 @@ def fetch_video_info ( return None title = '-'.join (title_tag.text.split ('-')[:(-1)]).strip () - # type: ignore - tags_str: str = bs.find ('meta', attrs = { 'name': 'keywords' }).get ('content') + tags_str: str = (bs.find ('meta', attrs = { 'name': 'keywords' }) + .get ('content')) # type: ignore tags = tags_str.split (',') - # type: ignore - description = bs.find ('meta', attrs = { 'name': 'description' }).get ('content') + description = (bs.find ('meta', attrs = { 'name': 'description' }) + .get ('content')) # type: ignore except (AttributeError, TypeError): return None