[extractor/bitchute] Improve BitChuteChannelIE (#5066)
Authored by: flashdagger, pukkandan
This commit is contained in:
parent
8fddc232bf
commit
c61473c1d6
2 changed files with 99 additions and 41 deletions
|
|
@ -418,6 +418,8 @@ def get_elements_text_and_html_by_attribute(attribute, value, html, *, tag=r'[\w
|
|||
Return the text (content) and the html (whole) of the tag with the specified
|
||||
attribute in the passed HTML document
|
||||
"""
|
||||
if not value:
|
||||
return
|
||||
|
||||
quote = '' if re.match(r'''[\s"'`=<>]''', value) else '?'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue