mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-05-18 11:26:27 +02:00
[extractor/wordpress:mb.miniAudioPlayer] Add embed extractor (#5087)
Closes https://github.com/yt-dlp/yt-dlp/issues/4994 Authored by: coletdjnz
This commit is contained in:
parent
1d55ebabc9
commit
4c9a1a3ba5
4 changed files with 94 additions and 3 deletions
|
@ -1679,6 +1679,9 @@ Line 1
|
|||
self.assertEqual(list(get_elements_text_and_html_by_attribute('class', 'foo', html)), [])
|
||||
self.assertEqual(list(get_elements_text_and_html_by_attribute('class', 'no-such-foo', html)), [])
|
||||
|
||||
self.assertEqual(list(get_elements_text_and_html_by_attribute(
|
||||
'class', 'foo', '<a class="foo">nice</a><span class="foo">nice</span>', tag='a')), [('nice', '<a class="foo">nice</a>')])
|
||||
|
||||
GET_ELEMENT_BY_TAG_TEST_STRING = '''
|
||||
random text lorem ipsum</p>
|
||||
<div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue