mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 19:01:15 +00:00
Merge pull request #193 from Schnitzel5/aniworld/vidmoly
added vidmoly host/extractor
This commit is contained in:
@@ -7,7 +7,7 @@ const mangayomiSources = [{
|
|||||||
"typeSource": "single",
|
"typeSource": "single",
|
||||||
"itemType": 1,
|
"itemType": 1,
|
||||||
"isNsfw": false,
|
"isNsfw": false,
|
||||||
"version": "0.3.5",
|
"version": "0.3.6",
|
||||||
"dateFormat": "",
|
"dateFormat": "",
|
||||||
"dateFormatLocale": "",
|
"dateFormatLocale": "",
|
||||||
"pkgPath": "anime/src/de/aniworld.js"
|
"pkgPath": "anime/src/de/aniworld.js"
|
||||||
@@ -199,7 +199,7 @@ class DefaultExtension extends MProvider {
|
|||||||
const languageValues = ['Deutscher', 'Englischer'];
|
const languageValues = ['Deutscher', 'Englischer'];
|
||||||
const types = ['Dub', 'Sub'];
|
const types = ['Dub', 'Sub'];
|
||||||
const resolutions = ['1080p', '720p', '480p'];
|
const resolutions = ['1080p', '720p', '480p'];
|
||||||
const hosts = ['Doodstream', 'Filemoon', 'Luluvdo', 'SpeedFiles', 'Streamtape', 'Vidoza', 'VOE'];
|
const hosts = ['Doodstream', 'Filemoon', 'Luluvdo', 'SpeedFiles', 'Streamtape', 'Vidmoly', 'Vidoza', 'VOE'];
|
||||||
const languageFilters = [];
|
const languageFilters = [];
|
||||||
|
|
||||||
for (const lang of languageValues) {
|
for (const lang of languageValues) {
|
||||||
@@ -387,6 +387,15 @@ async function doodExtractor(url) {
|
|||||||
return [{ url: videoUrl, originalUrl: videoUrl, headers: headers, quality: '' }];
|
return [{ url: videoUrl, originalUrl: videoUrl, headers: headers, quality: '' }];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function vidmolyExtractor(url) {
|
||||||
|
const res = await new Client({ 'useDartHttpClient': true, "followRedirects": true }).get(url);
|
||||||
|
const playlistUrl = res.body.match(/https:\/\/\S*\.m3u8/)[0];
|
||||||
|
return await m3u8Extractor(playlistUrl, {
|
||||||
|
'Referer': 'https://vidmoly.to',
|
||||||
|
'Origin': 'https://vidmoly.to'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
async function vidozaExtractor(url) {
|
async function vidozaExtractor(url) {
|
||||||
let response = await new Client({ 'useDartHttpClient': true, "followRedirects": true }).get(url);
|
let response = await new Client({ 'useDartHttpClient': true, "followRedirects": true }).get(url);
|
||||||
const videoUrl = response.body.match(/https:\/\/\S*\.mp4/)[0];
|
const videoUrl = response.body.match(/https:\/\/\S*\.mp4/)[0];
|
||||||
@@ -601,6 +610,7 @@ extractAny.methods = {
|
|||||||
'streamwish': vidHideExtractor,
|
'streamwish': vidHideExtractor,
|
||||||
'vidguard': vidGuardExtractor,
|
'vidguard': vidGuardExtractor,
|
||||||
'vidhide': vidHideExtractor,
|
'vidhide': vidHideExtractor,
|
||||||
|
'vidmoly': vidmolyExtractor,
|
||||||
'vidoza': vidozaExtractor,
|
'vidoza': vidozaExtractor,
|
||||||
'voe': voeExtractor,
|
'voe': voeExtractor,
|
||||||
'yourupload': yourUploadExtractor
|
'yourupload': yourUploadExtractor
|
||||||
|
|||||||
Reference in New Issue
Block a user