Skip to content

Commit

Permalink
feat: Indiquer le support de L'Internaute.
Browse files Browse the repository at this point in the history
  • Loading branch information
regseb committed Apr 30, 2020
1 parent a9ca345 commit dc2d2c0
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ des vidéos et des musiques sur **Kodi** :
- Belgique : VRT NU ;
- États-Unis : KCAA Radio ;
- France : 20 Minutes, AlloCiné, Arte, Arte Radio, France Inter, Gamekult,
JeuxVideoCom, Konbini, Le Point, Melty, Ouest-France ;
JeuxVideoCom, Konbini, Le Point, L'Internaute, Melty, Ouest-France ;
- Iran : آپارات ;
- Islande : Útvarp Saga ;
- Pays-Bas : Dumpert ;
Expand Down
2 changes: 1 addition & 1 deletion locales/en/amo_description.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<li>Germany: Arte;</li>
<li>Belgium: VRT&nbsp;NU;</li>
<li>USA: KCAA&nbsp;Radio;</li>
<li>France: 20&nbsp;Minutes, AlloCiné, Arte, Arte&nbsp;Radio, France&nbsp;Inter, Gamekult, JeuxVideoCom, Konbini, Le&nbsp;Point, Melty, Ouest-France;</li>
<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>
<li>Iran: آپارات;</li>
<li>Iceland: Útvarp&nbsp;Saga;</li>
<li>Netherlands: Dumpert;</li>
Expand Down
2 changes: 1 addition & 1 deletion locales/fr/amo_description.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<li>Allemagne&nbsp;: Arte&nbsp;;</li>
<li>Belgique&nbsp;: VRT NU&nbsp;;</li>
<li>États-Unis&nbsp;: KCAA&nbsp;Radio&nbsp;;</li>
<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>
<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>
<li>Iran&nbsp;: آپارات&nbsp;;</li>
<li>Islande&nbsp;: Útvarp&nbsp;Saga&nbsp;;</li>
<li>Pays-Bas&nbsp;: Dumpert&nbsp;;</li>
Expand Down
24 changes: 24 additions & 0 deletions test/integration/scraper/linternaute.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import assert from "assert";
import { extract } from "../../../src/core/scrapers.js";

describe("Scraper: L'internaute", function () {
it("should return URL when it's not a video", async function () {
const url = "https://www.linternaute.com/cinema/film" +
"/2462551-films-pixar-selection-des-meilleurs" +
"-et-liste-de-tous-les-films-pixar/";
const options = { depth: 0, incognito: false };

const file = await extract(new URL(url), options);
assert.strictEqual(file, url);
});

it("should return video URL", async function () {
const url = "https://www.linternaute.fr/cinema/tous-les-films" +
"/2424867-les-enfants-du-temps/";
const options = { depth: 0, incognito: false };

const file = await extract(new URL(url), options);
assert.strictEqual(file,
"https://media.ccmbg.com/vc/767071118/852438/mp4/1577209511");
});
});

0 comments on commit dc2d2c0

Please sign in to comment.