[cleanup] Misc

This commit is contained in:
pukkandan 2022-09-10 03:46:54 +05:30
parent 941e881e1f
commit deae7c1711
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
5 changed files with 15 additions and 11 deletions

View file

@ -2765,7 +2765,7 @@ class GenericIE(InfoExtractor):
'age_limit': self._rta_search(webpage),
})
domain_name = self._search_regex(r'^(?:https?://)?([^/]*)/.*', url, 'video uploader')
domain_name = self._search_regex(r'^(?:https?://)?([^/]*)/.*', url, 'video uploader', default=None)
# Sometimes embedded video player is hidden behind percent encoding
# (e.g. https://github.com/ytdl-org/youtube-dl/issues/2448)