Skip to content

Commit 40c65ab

Browse files
committed
feat: Ajouter le support de PodMust.
1 parent 3e33954 commit 40c65ab

File tree

4 files changed

+38
-4
lines changed

4 files changed

+38
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ des vidéos et des musiques sur **Kodi** :
1717
- YouTube, Twitch, Vimeo, SoundCloud ainsi que Ace Stream, Apple Podcasts,
1818
BitChute, Blog Talk Radio, Dailymotion, DevTube, Facebook, Flickr, Full30,
1919
Instagram, Jamendo, LiveLeak, Mixcloud, Mixer, My Cloud Player, Overcast,
20-
PeerTube, Pippa, podCloud, Radio, Radioline, Steam, Streamable, TikTok,
21-
Ultimedia, YT Home ;
20+
PeerTube, Pippa, podCloud, PodMust, Radio, Radioline, Steam, Streamable,
21+
TikTok, Ultimedia, 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 Stream, Apple Podcasts, BitChute, Blog Talk Radio, Dailymotion, DevTube, Facebook, Flickr, Full30, Instagram, Jamendo, LiveLeak, Mixcloud, Mixer, My Cloud Player, Overcast, PeerTube, Pippa, podCloud, Radio, Radioline, Steam, Streamable, TikTok, Ultimedia, YT Home;
7+
YouTube, Twitch, Vimeo, SoundCloud as well as Ace Stream, Apple Podcasts, BitChute, Blog Talk Radio, Dailymotion, DevTube, Facebook, Flickr, Full30, Instagram, Jamendo, LiveLeak, Mixcloud, Mixer, My Cloud Player, Overcast, PeerTube, Pippa, podCloud, PodMust, Radio, Radioline, Steam, Streamable, TikTok, Ultimedia, YT Home;
88
<ul>
99
<li>Germany: Arte;</li>
1010
<li>Belgium: VRT 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 ;
55
</li>
66
<li>
7-
YouTube, Twitch, Vimeo, SoundCloud ainsi que Ace Stream, Apple Podcasts, BitChute, Blog Talk Radio, Dailymotion, DevTube, Facebook, Flickr, Full30, Instagram, Jamendo, LiveLeak, Mixcloud, Mixer, My Cloud Player, Overcast, PeerTube, Pippa, podCloud, Radio, Radioline, Steam, Streamable, TikTok, Ultimedia, YT Home ;
7+
YouTube, Twitch, Vimeo, SoundCloud ainsi que Ace Stream, Apple Podcasts, BitChute, Blog Talk Radio, Dailymotion, DevTube, Facebook, Flickr, Full30, Instagram, Jamendo, LiveLeak, Mixcloud, Mixer, My Cloud Player, Overcast, PeerTube, Pippa, podCloud, PodMust, Radio, Radioline, Steam, Streamable, TikTok, Ultimedia, YT Home ;
88
<ul>
99
<li>Allemagne : Arte ;</li>
1010
<li>Belgique : VRT NU ;</li>

test/integration/scraper/podmust.js

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import assert from "assert";
2+
import { extract } from "../../../src/core/scrapers.js";
3+
4+
describe("Scraper: PodMust", function () {
5+
it("should return URL when it's not an audio", async function () {
6+
const url = "https://podmust.com/tendances-podcast-2021/";
7+
const options = { "depth": 0, "incognito": false };
8+
const expected = url;
9+
10+
const file = await extract(new URL(url), options);
11+
assert.strictEqual(file, expected);
12+
});
13+
14+
it("should return audio URL", async function () {
15+
const url = "https://podmust.com/podcast/le-billet-de-chris-esquerre/";
16+
const options = { "depth": 0, "incognito": false };
17+
const expected = "http://rf.proxycast.org" +
18+
"/c7e40c49-a922-441c-b423-10daeb6b7b6d" +
19+
"/19736-30.01.2020-ITEMA_22269047-0.mp3?_=1";
20+
21+
const file = await extract(new URL(url), options);
22+
assert.strictEqual(file, expected);
23+
});
24+
25+
it("should return audio URL when protocol is HTTP", async function () {
26+
const url = "http://podmust.com/podcast/oli/";
27+
const options = { "depth": 0, "incognito": false };
28+
const expected = "http://rf.proxycast.org/1651466062169907200" +
29+
"/19721-17.12.2019-ITEMA_22232156-6.m4a?_=1";
30+
31+
const file = await extract(new URL(url), options);
32+
assert.strictEqual(file, expected);
33+
});
34+
});

0 commit comments

Comments
 (0)