1 from .common
import InfoExtractor
2 from ..utils
import remove_end
5 class EbayIE(InfoExtractor
):
6 _VALID_URL
= r
'https?://(?:www\.)?ebay\.com/itm/(?P<id>\d+)'
8 'url': 'https://www.ebay.com/itm/194509326719',
12 'title': 'WiFi internal antenna adhesive for wifi 2.4GHz wifi 5 wifi 6 wifi 6E full bands',
14 'params': {'skip_download': 'm3u8'},
17 def _real_extract(self
, url
):
18 video_id
= self
._match
_id
(url
)
19 webpage
= self
._download
_webpage
(url
, video_id
)
21 video_json
= self
._search
_json
(r
'"video":', webpage
, 'video json', video_id
)
24 for key
, url
in video_json
['playlistMap'].items():
26 formats
.extend(self
._extract
_m
3u8_formats
(url
, video_id
, fatal
=False))
28 formats
.extend(self
._extract
_mpd
_formats
(url
, video_id
, fatal
=False))
30 self
.report_warning(f
'Unsupported format {key}', video_id
)
34 'title': remove_end(self
._html
_extract
_title
(webpage
), ' | eBay'),