Skip to content

Commit dc2d2c0

Browse files
committed
feat: Indiquer le support de L'Internaute.
1 parent a9ca345 commit dc2d2c0

File tree

4 files changed

+27
-3
lines changed

4 files changed

+27
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ des vidéos et des musiques sur **Kodi** :
2323
- Belgique : VRT NU ;
2424
- États-Unis : KCAA Radio ;
2525
- France : 20 Minutes, AlloCiné, Arte, Arte Radio, France Inter, Gamekult,
26-
JeuxVideoCom, Konbini, Le Point, Melty, Ouest-France ;
26+
JeuxVideoCom, Konbini, Le Point, L'Internaute, Melty, Ouest-France ;
2727
- Iran : آپارات ;
2828
- Islande : Útvarp Saga ;
2929
- Pays-Bas : Dumpert ;

locales/en/amo_description.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<li>Germany: Arte;</li>
1010
<li>Belgium: VRT&nbsp;NU;</li>
1111
<li>USA: KCAA&nbsp;Radio;</li>
12-
<li>France: 20&nbsp;Minutes, AlloCiné, Arte, Arte&nbsp;Radio, France&nbsp;Inter, Gamekult, JeuxVideoCom, Konbini, Le&nbsp;Point, Melty, Ouest-France;</li>
12+
<li>France: 20&nbsp;Minutes, AlloCiné, Arte, Arte&nbsp;Radio, France&nbsp;Inter, Gamekult, JeuxVideoCom, Konbini, Le&nbsp;Point, L'Internaute, Melty, Ouest-France;</li>
1313
<li>Iran: آپارات;</li>
1414
<li>Iceland: Útvarp&nbsp;Saga;</li>
1515
<li>Netherlands: Dumpert;</li>

locales/fr/amo_description.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<li>Allemagne&nbsp;: Arte&nbsp;;</li>
1010
<li>Belgique&nbsp;: VRT NU&nbsp;;</li>
1111
<li>États-Unis&nbsp;: KCAA&nbsp;Radio&nbsp;;</li>
12-
<li>France&nbsp;: 20&nbsp;Minutes, AlloCiné, Arte, Arte&nbsp;Radio, France&nbsp;Inter, Gamekult, JeuxVideoCom, Konbini, Le&nbsp;Point, Melty, Ouest-France&nbsp;;</li>
12+
<li>France&nbsp;: 20&nbsp;Minutes, AlloCiné, Arte, Arte&nbsp;Radio, France&nbsp;Inter, Gamekult, JeuxVideoCom, Konbini, Le&nbsp;Point, L'Internaute, Melty, Ouest-France&nbsp;;</li>
1313
<li>Iran&nbsp;: آپارات&nbsp;;</li>
1414
<li>Islande&nbsp;: Útvarp&nbsp;Saga&nbsp;;</li>
1515
<li>Pays-Bas&nbsp;: Dumpert&nbsp;;</li>
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import assert from "assert";
2+
import { extract } from "../../../src/core/scrapers.js";
3+
4+
describe("Scraper: L'internaute", function () {
5+
it("should return URL when it's not a video", async function () {
6+
const url = "https://www.linternaute.com/cinema/film" +
7+
"/2462551-films-pixar-selection-des-meilleurs" +
8+
"-et-liste-de-tous-les-films-pixar/";
9+
const options = { depth: 0, incognito: false };
10+
11+
const file = await extract(new URL(url), options);
12+
assert.strictEqual(file, url);
13+
});
14+
15+
it("should return video URL", async function () {
16+
const url = "https://www.linternaute.fr/cinema/tous-les-films" +
17+
"/2424867-les-enfants-du-temps/";
18+
const options = { depth: 0, incognito: false };
19+
20+
const file = await extract(new URL(url), options);
21+
assert.strictEqual(file,
22+
"https://media.ccmbg.com/vc/767071118/852438/mp4/1577209511");
23+
});
24+
});

0 commit comments

Comments
 (0)