Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wikiextensions-flix

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wikiextensions-flix - npm Package Compare versions

Comparing version 1.8.7 to 1.8.8

dist/extractors/rabbit.d.ts

37

dist/extractors/vidcloud.js

@@ -7,3 +7,3 @@ "use strict";

const axios_1 = __importDefault(require("axios"));
const https_1 = __importDefault(require("https"));
const rabbit_1 = require("./rabbit");
class VidCloud {

@@ -83,11 +83,25 @@ serverName = 'VidCloud';

const id = videoUrl.href.split('/').pop()?.split('?')[0];
const rabbit_url = "https://flixhq-wikimedia-api.vercel.app/api";
let res = await axios_1.default.post(`${rabbit_url}/${isAlternative ? "vidcloud" : "upcloud"}`, { "id": id });
const options = {
headers: {
'X-Requested-With': 'XMLHttpRequest',
'Referer': videoUrl.href,
'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0"
},
};
/*const rabbit_url = "https://flixhq-wikimedia-api.vercel.app/api"
let res = await axios.post(
`${rabbit_url}/${isAlternative ? "vidcloud" : "upcloud"}`, { "id": id }
)
//console.log(res.data.subtitle[0])
const axiosInstance = axios_1.default.create({
httpsAgent: new https_1.default.Agent({ rejectUnauthorized: false })
});
const { data } = await axiosInstance.get(res.data.source);
const axiosInstance = axios.create({
httpsAgent: new https.Agent({ rejectUnauthorized: false })
});
const { data } = await axiosInstance.get(res.data.source);*/
const res = await (0, rabbit_1.main)(id);
const sources = res.sources;
//console.log(res);
//for (const source of sources) {
//const { data } = await axios.get(source.file, options);
const { data } = await axios_1.default.get(sources[0].file, options);
const urls = data.split('\n').filter((line) => line.includes('.m3u8'));

@@ -108,7 +122,8 @@ const qualities = data.split('\n').filter((line) => line.includes('RESOLUTION='));

videoResult.sources.push({
url: res.data.source,
isM3U8: res.data.source.includes('.m3u8'),
url: res.sources,
isM3U8: res.sources.includes('.m3u8'),
quality: 'auto',
});
videoResult.subtiles = res.data.subtitle[0].map((s) => ({
//videoResult.subtiles = res.data.subtitle[0].map((s: any) => ({ //RabbitThunder
videoResult.subtiles = res.tracks.map((s) => ({
url: s.file,

@@ -115,0 +130,0 @@ lang: s.label ? s.label : 'Default',

{
"name": "wikiextensions-flix",
"version": "1.8.7",
"version": "1.8.8",
"description": "Nodejs library that provides an Api for obtaining the movies information from FlixHQ website.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

import axios from 'axios';
import https from 'https';
import { main } from './rabbit'
import cryptoJs from 'crypto-js';

@@ -85,4 +86,11 @@ import { IVideoResult } from '../types/types';

const id = videoUrl.href.split('/').pop()?.split('?')[0];
const options = {
headers: {
'X-Requested-With': 'XMLHttpRequest',
'Referer': videoUrl.href,
'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0"
},
};
const rabbit_url = "https://flixhq-wikimedia-api.vercel.app/api"
/*const rabbit_url = "https://flixhq-wikimedia-api.vercel.app/api"
let res = await axios.post(

@@ -97,7 +105,12 @@ `${rabbit_url}/${isAlternative ? "vidcloud" : "upcloud"}`, { "id": id }

});
const { data } = await axiosInstance.get(res.data.source);
const { data } = await axiosInstance.get(res.data.source);*/
const res = await main(id);
const sources = res.sources;
//console.log(res);
//for (const source of sources) {
//const { data } = await axios.get(source.file, options);
const { data } = await axios.get(sources[0].file, options);
const urls = data.split('\n').filter((line: string) => line.includes('.m3u8')) as string[];

@@ -122,8 +135,9 @@ const qualities = data.split('\n').filter((line: string) => line.includes('RESOLUTION=')) as string[];

videoResult.sources.push({
url: res.data.source,
isM3U8: res.data.source.includes('.m3u8'),
url: res.sources,
isM3U8: res.sources.includes('.m3u8'),
quality: 'auto',
});
videoResult.subtiles = res.data.subtitle[0].map((s: any) => ({
//videoResult.subtiles = res.data.subtitle[0].map((s: any) => ({ //RabbitThunder
videoResult.subtiles = res.tracks.map((s: any) => ({
url: s.file,

@@ -130,0 +144,0 @@ lang: s.label ? s.label : 'Default',

@@ -9,7 +9,7 @@ import { MOVIES } from "../src";

//console.log(search.results[0]);
const data = await FlixHQ.fetchMovieInfo('movie/watch-madame-web-105676');
const data = await FlixHQ.fetchMovieInfo('movie/watch-titanic-19586');
//const server = await FlixHQ.fetchEpisodeServers(data.id, data.episodes[0].id);
//console.log(JSON.stringify(server));
const source = await FlixHQ.fetchEpisodeSources(data.id, data.episodes[0].id, StreamingServers.UpCloud) as IVideoResult;
const source = await FlixHQ.fetchEpisodeSources(data.id, data.episodes[0].id, StreamingServers.VidCloud) as IVideoResult;
console.log(JSON.stringify(source));
})();

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc