Skip to content

Commit

Permalink
RUMBLE: update Rumble LiveStreamExtractorTest
Browse files Browse the repository at this point in the history
  • Loading branch information
evermind-zz committed Sep 6, 2023
1 parent 1918e3a commit 7aaddde
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,24 +250,24 @@ public static class LiveStreamExtractorTest extends NormalStreamExtractorTest {

@BeforeAll
public static void setUp() throws ExtractionException, IOException {
url = "https://rumble.com/vg7h6j";
expectedUrl = "https://rumble.com/vg7h6j";
expectedName = "EP 2422-9AM UKRAINIANS USED BY FBI TO SPY ON AMERICANS? FISA Warrants Issued MONTHS Before Jan 6th";
expectedId = "vg7h6j";
expectedDesc = "EP 2422-9AM UKRAINIAN ASSETS USED BY FBI TO SPY ON AMERICANS - FISA Warrants Issued MONTHS Before Jan 6th";
url = "https://rumble.com/v3e90sa";
expectedUrl = "https://rumble.com/v3e90sa";
expectedName = "America 1st News & Politics Live TV | MAGA Media";
expectedId = "v3e90sa";
expectedDesc = "Patriot News Outlet Live | America 1st News & Politics";
expectedCategory = "";
expectedAgeLimit = 0;
expectedViewCountAtLeast = 92;
expectedUploaderName = "The Pete Santilli Show - LIVE Show";
expectedUploadDate = "2021-04-28 12:07:24.000";
expectedTextualUploadDate = "2021-04-28T12:07:24+00:00";
expectedViewCountAtLeast = 66;
expectedUploaderName = "Patriot News Outlet Live";
expectedUploadDate = "2023-09-02 23:01:40.000";
expectedTextualUploadDate = "2023-09-02T23:01:40+00:00";
expectedPrivacy = StreamExtractor.Privacy.PUBLIC;
expectedUploaderUrl = "https://rumble.com/c/PeteLive";
expectedUploaderUrl = "https://rumble.com/c/PatriotNews4u";
expectedSupportInfo = "";
expectedHasAudioStreams = false;
expectedHasVideoStreams = true;
expectedArtistProfilePictureInfix = ".rumble.com/live/channel_images/"; // TODO
expectedLength = 59;
expectedLength = 0;
System.setProperty("downloader", "MOCK");
//System.setProperty("downloader", "RECORDING");
NewPipe.init(new DownloaderFactory().getDownloader(MOCK_PATH
Expand All @@ -278,6 +278,10 @@ public static void setUp() throws ExtractionException, IOException {
extractor.fetchPage();
}

@Override
public StreamType expectedStreamType() {
return StreamType.LIVE_STREAM;
}
/**
* Test for {@link RumbleStreamRelatedInfoItemExtractor}
*/
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"request": {
"httpMethod": "GET",
"url": "https://rumble.com/embedJS/u3/?request\u003dvideo\u0026ver\u003d2\u0026v\u003dvdlb0f",
"url": "https://rumble.com/embedJS/u3/?request\u003dvideo\u0026ver\u003d2\u0026v\u003dv3bnmgo",
"headers": {
"Accept-Language": [
"en-GB, en;q\u003d0.9"
Expand All @@ -26,10 +26,10 @@
"application/json; charset\u003dutf-8"
],
"date": [
"Wed, 11 Jan 2023 13:55:11 GMT"
"Wed, 06 Sep 2023 08:30:24 GMT"
],
"link": [
"\u003chttps://rumble.com/vg7h6j-ep-2422-9am-ukrainians-used-by-fbi-to-spy-on-americans-fisa-warrants-issued.html\u003e; rel\u003d\"canonical\""
"\u003chttps://rumble.com/v3e90sa-america-1st-news-and-politics-live-tv-maga-media.html\u003e; rel\u003d\"canonical\""
],
"server": [
"nginx"
Expand All @@ -41,7 +41,7 @@
"Accept-Encoding"
]
},
"responseBody": "{\"fps\":29.97,\"w\":1920,\"h\":1080,\"u\":{\"mp4\":{\"url\":\"https://sp.rmbl.ws/s8/2/7/k/2/N/7k2Nb.caa.1.mp4\",\"meta\":{\"bitrate\":715,\"size\":5301937,\"w\":854,\"h\":480}},\"webm\":{\"url\":\"https://sp.rmbl.ws/s8/2/7/k/2/N/7k2Nb.daa.1.webm\",\"meta\":{\"bitrate\":808,\"size\":5992758,\"w\":854,\"h\":480}}},\"ua\":{\"mp4\":{\"360\":{\"url\":\"https://sp.rmbl.ws/s8/2/7/k/2/N/7k2Nb.baa.1.mp4\",\"meta\":{\"bitrate\":514,\"size\":3816486,\"w\":640,\"h\":360}},\"480\":{\"url\":\"https://sp.rmbl.ws/s8/2/7/k/2/N/7k2Nb.caa.1.mp4\",\"meta\":{\"bitrate\":715,\"size\":5301937,\"w\":854,\"h\":480}},\"720\":{\"url\":\"https://sp.rmbl.ws/s8/2/7/k/2/N/7k2Nb.gaa.1.mp4\",\"meta\":{\"bitrate\":1605,\"size\":11898469,\"w\":1280,\"h\":720}},\"1080\":{\"url\":\"https://sp.rmbl.ws/s8/2/7/k/2/N/7k2Nb.haa.1.mp4\",\"meta\":{\"bitrate\":2287,\"size\":16958267,\"w\":1920,\"h\":1080}}},\"webm\":{\"480\":{\"url\":\"https://sp.rmbl.ws/s8/2/7/k/2/N/7k2Nb.daa.1.webm\",\"meta\":{\"bitrate\":808,\"size\":5992758,\"w\":854,\"h\":480}}}},\"i\":\"https://sp.rmbl.ws/s8/1/7/k/2/N/7k2Nb.qR4e-small-EP-2422-9AM-UKRAINIANS-USED.jpg\",\"t\":[{\"i\":\"https://sp.rmbl.ws/s8/1/7/k/2/N/7k2Nb.qR4e-small-EP-2422-9AM-UKRAINIANS-USED.jpg\",\"w\":1280,\"h\":720},{\"i\":\"https://sp.rmbl.ws/s8/1/7/k/2/N/7k2Nb.aiEB-small-EP-2422-9AM-UKRAINIANS-USED.jpg\",\"w\":720,\"h\":1280}],\"evt\":{\"v\":\"/l/view...dlb0f.1rmn55y\",\"e\":\"/l/pte...dlb0f.vxsfcy\",\"wt\":0,\"t\":\"/l/timeline...dlb0f.59.own6s4\"},\"cc\":[],\"l\":\"/vg7h6j-ep-2422-9am-ukrainians-used-by-fbi-to-spy-on-americans-fisa-warrants-issued.html\",\"r\":1,\"title\":\"EP 2422-9AM UKRAINIANS USED BY FBI TO SPY ON AMERICANS? FISA Warrants Issued MONTHS Before Jan 6th\",\"author\":{\"name\":\"The Pete Santilli Show - LIVE Show\",\"url\":\"https://rumble.com/c/PeteLive\"},\"player\":false,\"duration\":59,\"pubDate\":\"2021-04-28T12:07:24+00:00\",\"loaded\":1,\"vid\":22829055,\"timeline\":[0,0],\"own\":false,\"mod\":[],\"restrict\":[-3,0],\"autoplay\":0,\"track\":0,\"live\":0,\"live_placeholder\":false,\"livestream_has_dvr\":true,\"a\":{\"timeout\":-1,\"u\":\"3\",\"aden\":[1,0,1],\"ov\":false,\"ads\":[{\"timecode\":0,\"linear\":1,\"type\":\"video\",\"autoplay\":0,\"waterfall\":[{\"url\":\"https://pubads.g.doubleclick.net/gampad/ads?sz\u003d[dfpsz]\u0026iu\u003d/101598325/Rumble_Tracking_Premium\u0026cust_params\u003dpubuid%3D3%26playerWidth%3D[w]%26playerHeight%3D[h]%26ip%3D127.0.0.1%26ua%3DMozilla%2F5.0+%28Windows+NT+10.0%3B+rv%3A91.0%29+Gecko%2F20100101+Firefox%2F91.0%26ownVideo%3D%26enOl%3D0%26fullslot%3D1%26enFs%3D1%26enFb%3D1%26fbPlacement%3D358719497878746_398918750525487\u0026impl\u003ds\u0026gdfp_req\u003d1\u0026env\u003dvp\u0026output\u003dvast\u0026unviewed_position_start\u003d1\u0026url\u003dhttps%3A%2F%2Frumble.com%2FembedJS%2Fu3%2F%3Frequest%3Dvideo%26ver%3D2%26v%3Dvdlb0f\u0026description_url\u003dhttps%3A%2F%2Frumble.com%2Fvg7h6j-ep-2422-9am-ukrainians-used-by-fbi-to-spy-on-americans-fisa-warrants-issued.html\u0026correlator\u003d1673445311[gdpr:\u0026npa\u003d1,,]\",\"sys\":12,\"autoplay\":0},{\"url\":\"https://pubads.g.doubleclick.net/gampad/ads?sz\u003d[dfpsz]\u0026iu\u003d/101598325/Rumble_Tracking_Remnant\u0026cust_params\u003dpubuid%3D3%26playerWidth%3D[w]%26playerHeight%3D[h]%26ip%3D127.0.0.1%26ua%3DMozilla%2F5.0+%28Windows+NT+10.0%3B+rv%3A91.0%29+Gecko%2F20100101+Firefox%2F91.0%26ownVideo%3D%26enOl%3D0%26fullslot%3D1%26enFs%3D1%26enFb%3D1%26fbPlacement%3D358719497878746_398918750525487\u0026impl\u003ds\u0026gdfp_req\u003d1\u0026env\u003dvp\u0026output\u003dvast\u0026unviewed_position_start\u003d1\u0026url\u003dhttps%3A%2F%2Frumble.com%2FembedJS%2Fu3%2F%3Frequest%3Dvideo%26ver%3D2%26v%3Dvdlb0f\u0026description_url\u003dhttps%3A%2F%2Frumble.com%2Fvg7h6j-ep-2422-9am-ukrainians-used-by-fbi-to-spy-on-americans-fisa-warrants-issued.html\u0026correlator\u003d1673445311[gdpr:\u0026npa\u003d1,,]\",\"sys\":12,\"autoplay\":0}]}],\"a\":\".3.24ns9.dlb0f.c.ct.169ubkz\",\"ae\":\".3.24ns9.dlb0f.c.ct.j96hdn\",\"ap\":[false,0],\"loop\":[]}}",
"latestUrl": "https://rumble.com/embedJS/u3/?request\u003dvideo\u0026ver\u003d2\u0026v\u003dvdlb0f"
"responseBody": "{\"fps\":30,\"w\":1920,\"h\":1080,\"u\":{\"hls\":{\"url\":\"https://rumble.com/live-hls-dvr/3bnmgo/playlist.m3u8\",\"meta\":{\"live\":true,\"hlsJsConfig\":{\"liveSyncDuration\":6,\"min_latency\":3}}}},\"ua\":{\"mp4\":[],\"webm\":[],\"hls\":{\"auto\":{\"url\":\"https://rumble.com/live-hls-dvr/3bnmgo/playlist.m3u8\",\"meta\":{\"live\":true,\"hlsJsConfig\":{\"liveSyncDuration\":6,\"min_latency\":3}}}}},\"i\":\"https://sp.rmbl.ws/s8/1/C/V/a/i/CVail.qR4e-small-America-First-News-and-Poli.jpg\",\"evt\":{\"v\":\"/l/view...3bnmgo.2o3ttg\",\"e\":\"/l/pte...3bnmgo.101nq4z\",\"wt\":0},\"cc\":[],\"l\":\"/v3e90sa-america-1st-news-and-politics-live-tv-maga-media.html\",\"r\":0,\"title\":\"America 1st News \u0026amp; Politics Live TV | MAGA Media\",\"author\":{\"name\":\"Patriot News Outlet Live\",\"url\":\"https://rumble.com/c/PatriotNews4u\"},\"player\":false,\"duration\":0,\"pubDate\":\"2023-09-02T23:01:40+00:00\",\"loaded\":1,\"vid\":200976504,\"timeline\":[0,0],\"own\":false,\"restrict\":[-3,0],\"autoplay\":1,\"track\":0,\"live\":1,\"live_placeholder\":false,\"livestream_has_dvr\":true,\"a\":{\"timeout\":-1,\"u\":\"3\",\"aden\":[1,0,1],\"ov\":false,\"ads\":[{\"timecode\":0,\"linear\":1,\"type\":\"video\",\"autoplay\":-1,\"waterfall\":[{\"url\":\"https://a-delivery.rmbl.ws/video?a\u003d15\u0026cuid\u003d27104327\u0026cvid\u003d200976504\u0026keywords\u003dPatriotNews4u%2CPatriot%2CNews%2COutlet%2CLive%2CAmerica%2C1st%2C%26%2CPolitics%2CTV%2C%7C%2CMAGA%2CMedia\u0026cpid\u003d3\u0026ccid\u003d563825\u0026categories\u003dNews%2Crepublican-politics\",\"sys\":15,\"autoplay\":0},{\"url\":\"https://a-delivery.rmbl.ws/video?a\u003d15\u0026cuid\u003d27104327\u0026cvid\u003d200976504\u0026keywords\u003dPatriotNews4u%2CPatriot%2CNews%2COutlet%2CLive%2CAmerica%2C1st%2C%26%2CPolitics%2CTV%2C%7C%2CMAGA%2CMedia\u0026cpid\u003d3\u0026ccid\u003d563825\u0026categories\u003dNews%2Crepublican-politics\",\"sys\":15,\"autoplay\":1}]}],\"a\":\".3.g4xtz.3bnmgo.c.3e.1n9hjwx\",\"ae\":\".3.g4xtz.3bnmgo.c.3e.1fm0vlw\",\"ap\":[false,0],\"loop\":[]}}",
"latestUrl": "https://rumble.com/embedJS/u3/?request\u003dvideo\u0026ver\u003d2\u0026v\u003dv3bnmgo"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"request": {
"httpMethod": "GET",
"url": "https://wn0.rumble.com/service.php?video_id\u003d200976504\u0026viewer_id\u003d5swoGj0j4NI\u0026name\u003dvideo.watching-now",
"headers": {
"Accept-Language": [
"en-GB, en;q\u003d0.9"
]
},
"localization": {
"languageCode": "en",
"countryCode": "GB"
}
},
"response": {
"responseCode": 200,
"responseMessage": "",
"responseHeaders": {
"cache-control": [
"private,max-age\u003d0"
],
"content-length": [
"122"
],
"content-type": [
"application/json; charset\u003dutf-8"
],
"date": [
"Wed, 06 Sep 2023 08:30:34 GMT"
],
"expires": [
"Thu, 01 Jan 1970 00:00:01 GMT"
],
"server": [
"nginx"
],
"strict-transport-security": [
"max-age\u003d31536000;includeSubDomains;preload"
],
"vary": [
"Accept-Encoding"
],
"x-frame-options": [
"SAMEORIGIN"
]
},
"responseBody": "{\"data\":{\"video_id\":200976504,\"num_watching_now\":66,\"viewer_count\":66,\"livestream_status\":1,\"scheduled_on_ts\":1693749600}}",
"latestUrl": "https://wn0.rumble.com/service.php?video_id\u003d200976504\u0026viewer_id\u003d5swoGj0j4NI\u0026name\u003dvideo.watching-now"
}
}

0 comments on commit 7aaddde

Please sign in to comment.