[cleanup] Minor cleanup

Closes #1696, Closes #1673
This commit is contained in:
pukkandan
2021-11-19 05:36:28 +05:30
parent 467b6b8387
commit 9222c38182
12 changed files with 74 additions and 60 deletions

View File

@@ -109,7 +109,7 @@ class LinkedInIE(LinkedInBaseIE):
description = clean_html(get_element_by_class('share-update-card__update-text', webpage))
like_count = int_or_none(get_element_by_class('social-counts-reactions__social-counts-numRections', webpage))
creator = strip_or_none(clean_html(get_element_by_class('comment__actor-name', webpage)))
sources = self._parse_json(extract_attributes(self._search_regex(r'(<video[^>]+>)', webpage, 'video'))['data-sources'], video_id)
formats = [{
'url': source['src'],