1 from .common
import InfoExtractor
2 from .rumble
import RumbleEmbedIE
3 from .youtube
import YoutubeIE
4 from ..utils
import ExtractorError
, clean_html
, get_element_by_class
, strip_or_none
7 class Funker530IE(InfoExtractor
):
8 _VALID_URL
= r
'https?://(?:www\.)?funker530\.com/video/(?P<id>[^/?#]+)'
10 'url': 'https://funker530.com/video/azov-patrol-caught-in-open-under-automatic-grenade-launcher-fire/',
11 'md5': '085f50fea27523a388bbc22e123e09c8',
15 'title': 'Azov Patrol Caught In Open Under Automatic Grenade Launcher Fire',
16 'thumbnail': r
're:^https?://.*\.jpg$',
17 'uploader': 'Funker530',
18 'channel': 'Funker530',
19 'channel_url': 'https://rumble.com/c/c-1199543',
24 'upload_date': '20230608',
25 'timestamp': 1686241321,
26 'live_status': 'not_live',
27 'description': 'md5:bea2e1f458095414e04b5ac189c2f980',
30 'url': 'https://funker530.com/video/my-friends-joined-the-russians-civdiv/',
31 'md5': 'a42c2933391210662e93e867d7124b70',
38 'channel_follower_count': int,
39 'thumbnail': 'https://i.ytimg.com/vi/k-pk4bOvoac/maxresdefault.jpg',
40 'uploader_id': '@CivDiv',
42 'channel_url': 'https://www.youtube.com/channel/UCgsCiwJ88up-YyMHo7hL5-A',
44 'uploader_url': 'https://www.youtube.com/@CivDiv',
45 'channel_id': 'UCgsCiwJ88up-YyMHo7hL5-A',
47 'description': 'md5:aef75ec3f59c07a0e39400f609b24429',
48 'live_status': 'not_live',
50 'uploader': 'Civ Div',
51 'categories': ['People & Blogs'],
52 'title': 'My “Friends” joined the Russians.',
53 'availability': 'public',
54 'upload_date': '20230608',
55 'playable_in_embed': True,
56 'heatmap': 'count:100',
60 def _real_extract(self
, url
):
61 display_id
= self
._match
_id
(url
)
62 webpage
= self
._download
_webpage
(url
, display_id
)
64 rumble_url
= list(RumbleEmbedIE
._extract
_embed
_urls
(url
, webpage
))
66 info
= {'url': rumble_url
[0], 'ie_key': RumbleEmbedIE
.ie_key()}
68 youtube_url
= list(YoutubeIE
._extract
_embed
_urls
(url
, webpage
))
70 info
= {'url': youtube_url
[0], 'ie_key': YoutubeIE
.ie_key()}
72 raise ExtractorError('No videos found on webpage', expected
=True)
76 '_type': 'url_transparent',
77 'description': strip_or_none(self
._search
_regex
(
78 r
'(?s)(.+)About the Author', clean_html(get_element_by_class('video-desc-paragraph', webpage
)),
79 'description', default
=None)),