Skip to content

Commit a9ca345

Browse files
committed
feat: Indiquer le support de Castbox.
1 parent ac23873 commit a9ca345

File tree

4 files changed

+29
-6
lines changed

4 files changed

+29
-6
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ des vidéos et des musiques sur **Kodi** :
1515

1616
- liens directs : *avi*, *mkv*, *mp3*, *flac*… et torrent / magnet ;
1717
- YouTube, Twitch, Vimeo, SoundCloud ainsi que Ace Stream, Apple Podcasts,
18-
Bigo Live, BitChute, Blog Talk Radio, Dailymotion, DevTube, Facebook, Flickr,
19-
Full30, Instagram, Jamendo, LiveLeak, Metacafe, Mixcloud, Mixer, My Cloud
20-
Player, Overcast, PeerTube, Pippa, podCloud, PodMust, Radio, Radioline, Steam,
21-
Streamable, TikTok, Ultimedia, Veoh, VideoPress, YT Home ;
18+
Bigo Live, BitChute, Blog Talk Radio, Castbox, Dailymotion, DevTube, Facebook,
19+
Flickr, Full30, Instagram, Jamendo, LiveLeak, Metacafe, Mixcloud, Mixer, My
20+
Cloud Player, Overcast, PeerTube, Pippa, podCloud, PodMust, Radio, Radioline,
21+
Steam, Streamable, TikTok, Ultimedia, Veoh, VideoPress, YT Home ;
2222
- Allemagne : Arte ;
2323
- Belgique : VRT NU ;
2424
- États-Unis : KCAA Radio ;

locales/en/amo_description.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
direct links: <em>avi</em>, <em>mkv</em>, <em>mp3</em>, <em>flac</em>, ... and torrent / magnet;
55
</li>
66
<li>
7-
YouTube, Twitch, Vimeo, SoundCloud as well as Ace&nbsp;Stream, Apple&nbsp;Podcasts, Bigo&nbsp;Live, BitChute, Blog&nbsp;Talk&nbsp;Radio, Dailymotion, DevTube, Facebook, Flickr, Full30, Instagram, Jamendo, LiveLeak, Metacafe, Mixcloud, Mixer, My&nbsp;Cloud&nbsp;Player, Overcast, PeerTube, Pippa, podCloud, PodMust, Radio, Radioline, Steam, Streamable, TikTok, Ultimedia, Veoh, VideoPress, YT&nbsp;Home;
7+
YouTube, Twitch, Vimeo, SoundCloud as well as Ace&nbsp;Stream, Apple&nbsp;Podcasts, Bigo&nbsp;Live, BitChute, Blog&nbsp;Talk&nbsp;Radio, Castbox, Dailymotion, DevTube, Facebook, Flickr, Full30, Instagram, Jamendo, LiveLeak, Metacafe, Mixcloud, Mixer, My&nbsp;Cloud&nbsp;Player, Overcast, PeerTube, Pippa, podCloud, PodMust, Radio, Radioline, Steam, Streamable, TikTok, Ultimedia, Veoh, VideoPress, YT&nbsp;Home;
88
<ul>
99
<li>Germany: Arte;</li>
1010
<li>Belgium: VRT&nbsp;NU;</li>

locales/fr/amo_description.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
liens directs : <em>avi</em>, <em>mkv</em>, <em>mp3</em>, <em>flac</em>… et torrent / magnet&nbsp;;
55
</li>
66
<li>
7-
YouTube, Twitch, Vimeo, SoundCloud ainsi que Ace&nbsp;Stream, Apple&nbsp;Podcasts, Bigo&nbsp;Live, BitChute, Blog&nbsp;Talk&nbsp;Radio, Dailymotion, DevTube, Facebook, Flickr, Full30, Instagram, Jamendo, LiveLeak, Metacafe, Mixcloud, Mixer, My&nbsp;Cloud&nbsp;Player, Overcast, PeerTube, Pippa, podCloud, PodMust, Radio, Radioline, Steam, Streamable, TikTok, Ultimedia, Veoh, VideoPress, YT&nbsp;Home&nbsp;;
7+
YouTube, Twitch, Vimeo, SoundCloud ainsi que Ace&nbsp;Stream, Apple&nbsp;Podcasts, Bigo&nbsp;Live, BitChute, Blog&nbsp;Talk&nbsp;Radio, Castbox, Dailymotion, DevTube, Facebook, Flickr, Full30, Instagram, Jamendo, LiveLeak, Metacafe, Mixcloud, Mixer, My&nbsp;Cloud&nbsp;Player, Overcast, PeerTube, Pippa, podCloud, PodMust, Radio, Radioline, Steam, Streamable, TikTok, Ultimedia, Veoh, VideoPress, YT&nbsp;Home&nbsp;;
88
<ul>
99
<li>Allemagne&nbsp;: Arte&nbsp;;</li>
1010
<li>Belgique&nbsp;: VRT NU&nbsp;;</li>

test/integration/scraper/castbox.js

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import assert from "assert";
2+
import { extract } from "../../../src/core/scrapers.js";
3+
4+
describe("Scraper: Castbox", function () {
5+
it("should return URL when it's not an audio", async function () {
6+
const url = "https://castbox.fm/channel/Par-Jupiter-!-id1018326";
7+
const options = { depth: 0, incognito: false };
8+
9+
const file = await extract(new URL(url), options);
10+
assert.strictEqual(file, url);
11+
});
12+
13+
it("should return audio URL", async function () {
14+
const url = "https://castbox.fm/episode" +
15+
"/'Ultramoderne'-id1018326-id255945951";
16+
const options = { depth: 0, incognito: false };
17+
18+
const file = await extract(new URL(url), options);
19+
assert.strictEqual(file,
20+
"http://rf.proxycast.org/a9d93d50-7ee1-4ff2-9508-f318275d691f" +
21+
"/18153-27.04.2020-ITEMA_22330612-4-1779455909.mp3");
22+
});
23+
});

0 commit comments

Comments
 (0)