Upload 13 files
Browse files- .env +3 -0
- .well-known/acme-challenge/Q2U1W3fv9-2CCAzEQOgdtMTIg779BptO5g8GwpM7ZrM +1 -0
- Dockerfile +22 -0
- addon.js +449 -0
- combined.log +0 -0
- easynews-searcher.js +385 -0
- error.log +4 -0
- package-lock.json +1688 -0
- package.json +17 -0
- public/backdrop.jpg +0 -0
- public/index.html +242 -0
- server.js +142 -0
- tmdb-handler.js +119 -0
.env
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
TMDB_API_KEY=f051e7366c6105ad4f9aafe4733d9dae
|
2 |
+
PORT=3000
|
3 |
+
LOG_LEVEL=debug
|
.well-known/acme-challenge/Q2U1W3fv9-2CCAzEQOgdtMTIg779BptO5g8GwpM7ZrM
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Q2U1W3fv9-2CCAzEQOgdtMTIg779BptO5g8GwpM7ZrM.kdNvhSubpWtIliTr2j3sK2FuUuwKMiddxUgH7uoGe38
|
Dockerfile
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM node:18-slim
|
2 |
+
|
3 |
+
# Set the working directory inside the container
|
4 |
+
WORKDIR /usr/src/app
|
5 |
+
|
6 |
+
# Copy the package.json and package-lock.json if available
|
7 |
+
COPY package*.json ./
|
8 |
+
|
9 |
+
# Install the app dependencies
|
10 |
+
RUN npm install --production
|
11 |
+
|
12 |
+
# Copy the rest of the application code to the container
|
13 |
+
COPY . .
|
14 |
+
|
15 |
+
# Set environment variable to production
|
16 |
+
ENV NODE_ENV=production
|
17 |
+
|
18 |
+
# Expose the port Hugging Face Spaces will bind to
|
19 |
+
EXPOSE 3000
|
20 |
+
|
21 |
+
# Command to start the app
|
22 |
+
CMD ["npm", "start"]
|
addon.js
ADDED
@@ -0,0 +1,449 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
const { addonBuilder } = require('stremio-addon-sdk');
|
2 |
+
const EasynewsSearcher = require('./easynews-searcher');
|
3 |
+
const TMDBHandler = require('./tmdb-handler');
|
4 |
+
const winston = require('winston');
|
5 |
+
|
6 |
+
// Logger configuration
|
7 |
+
const logger = winston.createLogger({
|
8 |
+
level: 'debug',
|
9 |
+
format: winston.format.combine(
|
10 |
+
winston.format.timestamp(),
|
11 |
+
winston.format.printf(({ level, message, timestamp }) => {
|
12 |
+
return `${timestamp} ${level}: ${message}`;
|
13 |
+
})
|
14 |
+
),
|
15 |
+
transports: [
|
16 |
+
new winston.transports.Console(),
|
17 |
+
new winston.transports.File({ filename: 'error.log', level: 'error' }),
|
18 |
+
new winston.transports.File({ filename: 'combined.log' })
|
19 |
+
]
|
20 |
+
});
|
21 |
+
|
22 |
+
const manifest = {
|
23 |
+
id: 'org.stremio.easynews',
|
24 |
+
version: '1.0.0',
|
25 |
+
name: 'Easynews',
|
26 |
+
description: 'Stream movies and series from Easynews',
|
27 |
+
types: ['movie', 'series'],
|
28 |
+
catalogs: [
|
29 |
+
{
|
30 |
+
type: 'movie',
|
31 |
+
id: 'easynews-movie-catalog',
|
32 |
+
name: 'Easynews Movies',
|
33 |
+
extra: [{ name: 'search', isRequired: true }]
|
34 |
+
},
|
35 |
+
{
|
36 |
+
type: 'series',
|
37 |
+
id: 'easynews-series-catalog',
|
38 |
+
name: 'Easynews Series',
|
39 |
+
extra: [{ name: 'search', isRequired: true }]
|
40 |
+
}
|
41 |
+
],
|
42 |
+
resources: ['stream', 'catalog', 'meta'],
|
43 |
+
idPrefixes: ['tt', 'tmdb', 'easynews'],
|
44 |
+
background: 'https://www.easynews.com/images/logo.png',
|
45 |
+
logo: 'https://www.easynews.com/images/logo.png',
|
46 |
+
contactEmail: '[email protected]'
|
47 |
+
};
|
48 |
+
|
49 |
+
// Cache for storing search results
|
50 |
+
const searchCache = new Map();
|
51 |
+
const CACHE_TIMEOUT = 30 * 60 * 1000; // 30 minutes
|
52 |
+
|
53 |
+
let easynewsSearcher;
|
54 |
+
let tmdbHandler;
|
55 |
+
let easynewsUsername;
|
56 |
+
let easynewsPassword;
|
57 |
+
|
58 |
+
function generatePoster(content) {
|
59 |
+
const getBackgroundColor = (quality) => {
|
60 |
+
switch(quality) {
|
61 |
+
case '4K': return '#2c3e50';
|
62 |
+
case '1080p': return '#34495e';
|
63 |
+
case '720p': return '#2c3e50';
|
64 |
+
case '480p': return '#7f8c8d';
|
65 |
+
default: return '#95a5a6';
|
66 |
+
}
|
67 |
+
};
|
68 |
+
|
69 |
+
const bestQuality = Array.from(content.qualities).sort((a, b) => {
|
70 |
+
const order = { '4K': 4, '1080p': 3, '720p': 2, '480p': 1, 'SD': 0 };
|
71 |
+
return (order[b] || 0) - (order[a] || 0);
|
72 |
+
})[0];
|
73 |
+
|
74 |
+
const backgroundColor = getBackgroundColor(bestQuality);
|
75 |
+
|
76 |
+
// Create multiline text for title
|
77 |
+
let titleLines = [];
|
78 |
+
let words = content.title.split(' ');
|
79 |
+
let currentLine = '';
|
80 |
+
|
81 |
+
words.forEach(word => {
|
82 |
+
if ((currentLine + ' ' + word).length > 15) {
|
83 |
+
titleLines.push(currentLine);
|
84 |
+
currentLine = word;
|
85 |
+
} else {
|
86 |
+
currentLine = currentLine ? currentLine + ' ' + word : word;
|
87 |
+
}
|
88 |
+
});
|
89 |
+
if (currentLine) {
|
90 |
+
titleLines.push(currentLine);
|
91 |
+
}
|
92 |
+
|
93 |
+
if (titleLines.length > 3) {
|
94 |
+
titleLines = titleLines.slice(0, 3);
|
95 |
+
titleLines[2] += '...';
|
96 |
+
}
|
97 |
+
|
98 |
+
return `
|
99 |
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 450">
|
100 |
+
<rect width="100%" height="100%" fill="${backgroundColor}"/>
|
101 |
+
<circle cx="150" cy="100" r="50" fill="#e74c3c"/>
|
102 |
+
<text x="150" y="100" font-family="Arial" font-size="24" fill="white" text-anchor="middle" dominant-baseline="middle">${bestQuality}</text>
|
103 |
+
${titleLines.map((line, i) =>
|
104 |
+
`<text x="150" y="${220 + i * 30}" font-family="Arial" font-size="24" fill="white" text-anchor="middle">${line}</text>`
|
105 |
+
).join('')}
|
106 |
+
<text x="150" y="350" font-family="Arial" font-size="20" fill="white" text-anchor="middle">
|
107 |
+
${content.type === 'series'
|
108 |
+
? `S${content.season.toString().padStart(2, '0')}E${content.episode.toString().padStart(2, '0')}`
|
109 |
+
: content.year || ''}
|
110 |
+
</text>
|
111 |
+
<text x="150" y="400" font-family="Arial" font-size="16" fill="white" text-anchor="middle">
|
112 |
+
${content.streams.length} sources
|
113 |
+
</text>
|
114 |
+
<text x="150" y="430" font-family="Arial" font-size="14" fill="white" text-anchor="middle">
|
115 |
+
${Array.from(content.qualities).join(', ')}
|
116 |
+
</text>
|
117 |
+
</svg>
|
118 |
+
`.trim();
|
119 |
+
}
|
120 |
+
|
121 |
+
const builder = new addonBuilder(manifest);
|
122 |
+
|
123 |
+
builder.defineCatalogHandler(async ({ type, id, extra }) => {
|
124 |
+
if (!easynewsSearcher) {
|
125 |
+
logger.warn('Easynews searcher not initialized');
|
126 |
+
return { metas: [] };
|
127 |
+
}
|
128 |
+
|
129 |
+
const { search } = extra;
|
130 |
+
if (!search) {
|
131 |
+
logger.info('No search query provided');
|
132 |
+
return { metas: [] };
|
133 |
+
}
|
134 |
+
|
135 |
+
logger.info(`Searching Easynews catalog for: ${search}`);
|
136 |
+
|
137 |
+
try {
|
138 |
+
const results = await easynewsSearcher.search(search);
|
139 |
+
if (!results || results.length === 0) {
|
140 |
+
return { metas: [] };
|
141 |
+
}
|
142 |
+
|
143 |
+
// Group results by content
|
144 |
+
const groupedContent = new Map();
|
145 |
+
|
146 |
+
results.forEach(result => {
|
147 |
+
const isSeries = result.season !== null && result.episode !== null;
|
148 |
+
if ((type === 'movie' && isSeries) || (type === 'series' && !isSeries)) {
|
149 |
+
return;
|
150 |
+
}
|
151 |
+
|
152 |
+
let key;
|
153 |
+
if (isSeries) {
|
154 |
+
key = `${result.title} S${result.season.toString().padStart(2, '0')}E${result.episode.toString().padStart(2, '0')}`;
|
155 |
+
} else {
|
156 |
+
key = result.year ? `${result.title} (${result.year})` : result.title;
|
157 |
+
}
|
158 |
+
|
159 |
+
if (!groupedContent.has(key)) {
|
160 |
+
groupedContent.set(key, {
|
161 |
+
title: result.title,
|
162 |
+
year: result.year,
|
163 |
+
season: result.season,
|
164 |
+
episode: result.episode,
|
165 |
+
type: isSeries ? 'series' : 'movie',
|
166 |
+
streams: [],
|
167 |
+
qualities: new Set()
|
168 |
+
});
|
169 |
+
}
|
170 |
+
|
171 |
+
const content = groupedContent.get(key);
|
172 |
+
content.streams.push(result);
|
173 |
+
content.qualities.add(result.quality);
|
174 |
+
});
|
175 |
+
|
176 |
+
// Store in cache and create metas
|
177 |
+
const metas = Array.from(groupedContent.entries()).map(([key, content]) => {
|
178 |
+
const cacheKey = `easynews:${encodeURIComponent(key)}`;
|
179 |
+
searchCache.set(cacheKey, {
|
180 |
+
streams: content.streams,
|
181 |
+
timestamp: Date.now()
|
182 |
+
});
|
183 |
+
|
184 |
+
const bestQuality = Array.from(content.qualities).sort((a, b) => {
|
185 |
+
const order = { '4K': 4, '1080p': 3, '720p': 2, '480p': 1, 'SD': 0 };
|
186 |
+
return (order[b] || 0) - (order[a] || 0);
|
187 |
+
})[0];
|
188 |
+
|
189 |
+
// Enhanced meta object for better Android compatibility
|
190 |
+
return {
|
191 |
+
id: cacheKey,
|
192 |
+
type: content.type,
|
193 |
+
name: content.title,
|
194 |
+
year: content.year,
|
195 |
+
released: content.year ? `${content.year}-01-01` : undefined,
|
196 |
+
runtime: "120",
|
197 |
+
genres: content.type === 'movie' ? ['Movie'] : ['Series'],
|
198 |
+
background: null,
|
199 |
+
logo: null,
|
200 |
+
posterShape: 'regular',
|
201 |
+
poster: `data:image/svg+xml;base64,${Buffer.from(generatePoster(content)).toString('base64')}`,
|
202 |
+
description: `Quality: ${bestQuality}\nSources: ${content.streams.length}\nAvailable in: ${Array.from(content.qualities).join(', ')}`,
|
203 |
+
releaseInfo: content.year ? content.year.toString() : undefined,
|
204 |
+
imdbRating: null,
|
205 |
+
videos: content.type === 'series' ? [{
|
206 |
+
id: cacheKey,
|
207 |
+
title: `Season ${content.season} Episode ${content.episode}`,
|
208 |
+
season: content.season,
|
209 |
+
episode: content.episode,
|
210 |
+
released: content.year ? `${content.year}-01-01` : undefined
|
211 |
+
}] : undefined
|
212 |
+
};
|
213 |
+
});
|
214 |
+
|
215 |
+
// Sort by most recent year first
|
216 |
+
metas.sort((a, b) => (b.year || 0) - (a.year || 0));
|
217 |
+
|
218 |
+
return { metas };
|
219 |
+
} catch (error) {
|
220 |
+
logger.error(`Error in catalog handler: ${error.message}`);
|
221 |
+
return { metas: [] };
|
222 |
+
}
|
223 |
+
});
|
224 |
+
|
225 |
+
builder.defineStreamHandler(async ({ type, id }) => {
|
226 |
+
if (!easynewsSearcher) {
|
227 |
+
logger.warn('Easynews searcher not initialized');
|
228 |
+
return { streams: [] };
|
229 |
+
}
|
230 |
+
|
231 |
+
try {
|
232 |
+
let results = [];
|
233 |
+
|
234 |
+
if (id.startsWith('easynews:')) {
|
235 |
+
// Check cache first
|
236 |
+
const cached = searchCache.get(id);
|
237 |
+
if (cached && (Date.now() - cached.timestamp) < CACHE_TIMEOUT) {
|
238 |
+
results = cached.streams;
|
239 |
+
} else {
|
240 |
+
// If not in cache or expired, do a new search
|
241 |
+
const searchTerm = decodeURIComponent(id.replace('easynews:', ''));
|
242 |
+
results = await easynewsSearcher.search(searchTerm);
|
243 |
+
}
|
244 |
+
} else if ((id.startsWith('tt') || id.startsWith('tmdb')) && tmdbHandler) {
|
245 |
+
try {
|
246 |
+
const [baseId, seasonNum, episodeNum] = id.split(':');
|
247 |
+
const metadata = await tmdbHandler.getMetadata(baseId, type);
|
248 |
+
if (!metadata) {
|
249 |
+
logger.error(`Unable to find metadata for ${baseId}`);
|
250 |
+
return { streams: [] };
|
251 |
+
}
|
252 |
+
|
253 |
+
const title = metadata.title || metadata.name;
|
254 |
+
let year = null;
|
255 |
+
|
256 |
+
if (type === 'movie' && metadata.release_date) {
|
257 |
+
year = new Date(metadata.release_date).getFullYear();
|
258 |
+
} else if (type === 'series' && metadata.first_air_date) {
|
259 |
+
year = new Date(metadata.first_air_date).getFullYear();
|
260 |
+
}
|
261 |
+
|
262 |
+
let searchTerm;
|
263 |
+
if (type === 'series' && seasonNum && episodeNum) {
|
264 |
+
searchTerm = `${title} S${seasonNum.padStart(2, '0')}E${episodeNum.padStart(2, '0')}`;
|
265 |
+
} else if (type === 'movie') {
|
266 |
+
searchTerm = year ? `${title} ${year}` : title;
|
267 |
+
} else {
|
268 |
+
searchTerm = title;
|
269 |
+
}
|
270 |
+
|
271 |
+
results = await easynewsSearcher.search(searchTerm);
|
272 |
+
|
273 |
+
if (results.length === 0 && type === 'movie' && year) {
|
274 |
+
results = await easynewsSearcher.search(title);
|
275 |
+
}
|
276 |
+
} catch (error) {
|
277 |
+
logger.error(`TMDB error: ${error.message}. Falling back to ID-based search.`);
|
278 |
+
results = await handleIdBasedSearch(id, type);
|
279 |
+
}
|
280 |
+
} else {
|
281 |
+
results = await handleIdBasedSearch(id, type);
|
282 |
+
}
|
283 |
+
|
284 |
+
const streams = results.map(result => ({
|
285 |
+
title: result.filename,
|
286 |
+
name: `${result.quality} ${result.qualityEmoji} [${result.fileSize}]`,
|
287 |
+
url: result.linkUrl,
|
288 |
+
behaviorHints: {
|
289 |
+
notWebReady: true,
|
290 |
+
bingeGroup: `easynews-${result.quality}`,
|
291 |
+
proxyHeaders: {
|
292 |
+
request: {
|
293 |
+
"User-Agent": "VLC/3.0.0",
|
294 |
+
"Authorization": `Basic ${Buffer.from(`${easynewsUsername}:${easynewsPassword}`).toString('base64')}`
|
295 |
+
}
|
296 |
+
}
|
297 |
+
},
|
298 |
+
stream_quality: result.quality,
|
299 |
+
size: result.fileSize,
|
300 |
+
availability: 1
|
301 |
+
}));
|
302 |
+
|
303 |
+
// Sort streams by quality
|
304 |
+
streams.sort((a, b) => {
|
305 |
+
const qualityOrder = { '4K': 5, '1080p': 4, '720p': 3, '480p': 2, 'SD': 1 };
|
306 |
+
const qualityA = a.name.match(/(4K|1080p|720p|480p|SD)/i)?.[1]?.toUpperCase() || 'SD';
|
307 |
+
const qualityB = b.name.match(/(4K|1080p|720p|480p|SD)/i)?.[1]?.toUpperCase() || 'SD';
|
308 |
+
return (qualityOrder[qualityB] || 0) - (qualityOrder[qualityA] || 0);
|
309 |
+
});
|
310 |
+
|
311 |
+
return { streams };
|
312 |
+
} catch (error) {
|
313 |
+
logger.error(`Error in stream handler: ${error.message}`);
|
314 |
+
return { streams: [] };
|
315 |
+
}
|
316 |
+
});
|
317 |
+
|
318 |
+
// Helper function to handle ID-based searches when TMDB is not available
|
319 |
+
async function handleIdBasedSearch(id, type) {
|
320 |
+
const [baseId, seasonNum, episodeNum] = id.split(':');
|
321 |
+
let searchTerm;
|
322 |
+
|
323 |
+
if (type === 'series' && seasonNum && episodeNum) {
|
324 |
+
searchTerm = `${baseId} S${seasonNum.padStart(2, '0')}E${episodeNum.padStart(2, '0')}`;
|
325 |
+
} else {
|
326 |
+
searchTerm = baseId;
|
327 |
+
}
|
328 |
+
|
329 |
+
return await easynewsSearcher.search(searchTerm);
|
330 |
+
}
|
331 |
+
|
332 |
+
function setConfiguration(config) {
|
333 |
+
try {
|
334 |
+
logger.info('Received configuration:', JSON.stringify({
|
335 |
+
...config,
|
336 |
+
username: config.username ? '[REDACTED]' : undefined,
|
337 |
+
password: config.password ? '[REDACTED]' : undefined
|
338 |
+
}));
|
339 |
+
|
340 |
+
const { username, password } = config;
|
341 |
+
easynewsUsername = username;
|
342 |
+
easynewsPassword = password;
|
343 |
+
|
344 |
+
easynewsSearcher = new EasynewsSearcher(username, password);
|
345 |
+
|
346 |
+
const TMDB_API_KEY = process.env.TMDB_API_KEY || 'f051e7366c6105ad4f9aafe4733d9dae';
|
347 |
+
|
348 |
+
if (TMDB_API_KEY) {
|
349 |
+
try {
|
350 |
+
tmdbHandler = new TMDBHandler(TMDB_API_KEY);
|
351 |
+
logger.info('TMDB handler initialized with API key');
|
352 |
+
} catch (error) {
|
353 |
+
logger.warn('Failed to initialize TMDB handler:', error.message);
|
354 |
+
tmdbHandler = null;
|
355 |
+
}
|
356 |
+
} else {
|
357 |
+
logger.warn('No TMDB API key available - TMDB features will be disabled');
|
358 |
+
tmdbHandler = null;
|
359 |
+
}
|
360 |
+
|
361 |
+
logger.info('Configuration set for Easynews searcher');
|
362 |
+
return builder.getInterface();
|
363 |
+
} catch (error) {
|
364 |
+
logger.error('Error in setConfiguration:', error);
|
365 |
+
throw error;
|
366 |
+
}
|
367 |
+
}
|
368 |
+
|
369 |
+
builder.defineMetaHandler(async ({ type, id }) => {
|
370 |
+
logger.info(`Meta request for ${type}, id: ${id}`);
|
371 |
+
try {
|
372 |
+
// For cached Easynews results
|
373 |
+
if (id.startsWith('easynews:')) {
|
374 |
+
const cached = searchCache.get(id);
|
375 |
+
if (cached && (Date.now() - cached.timestamp) < CACHE_TIMEOUT) {
|
376 |
+
const result = cached.streams[0]; // Use first stream for metadata
|
377 |
+
return {
|
378 |
+
meta: {
|
379 |
+
id,
|
380 |
+
type: result.season ? 'series' : 'movie',
|
381 |
+
name: result.title,
|
382 |
+
year: result.year,
|
383 |
+
runtime: "120",
|
384 |
+
genres: result.season ? ['Series'] : ['Movie'],
|
385 |
+
posterShape: 'regular',
|
386 |
+
background: null,
|
387 |
+
logo: null,
|
388 |
+
description: `Available qualities: ${Array.from(new Set(cached.streams.map(s => s.quality))).join(', ')}\nTotal sources: ${cached.streams.length}`,
|
389 |
+
releaseInfo: result.year ? result.year.toString() : undefined,
|
390 |
+
imdbRating: null,
|
391 |
+
released: result.year ? `${result.year}-01-01` : undefined,
|
392 |
+
videos: result.season ? [{
|
393 |
+
id: id,
|
394 |
+
title: `Season ${result.season} Episode ${result.episode}`,
|
395 |
+
season: result.season,
|
396 |
+
episode: result.episode,
|
397 |
+
released: result.year ? `${result.year}-01-01` : undefined
|
398 |
+
}] : undefined
|
399 |
+
}
|
400 |
+
};
|
401 |
+
}
|
402 |
+
}
|
403 |
+
|
404 |
+
// For TMDB/IMDB IDs
|
405 |
+
if ((id.startsWith('tt') || id.startsWith('tmdb')) && tmdbHandler) {
|
406 |
+
const [baseId, seasonNum, episodeNum] = id.split(':');
|
407 |
+
const metadata = await tmdbHandler.getMetadata(baseId, type);
|
408 |
+
|
409 |
+
if (metadata) {
|
410 |
+
const meta = {
|
411 |
+
id: baseId,
|
412 |
+
type: type,
|
413 |
+
name: metadata.title || metadata.name,
|
414 |
+
year: metadata.release_date ? new Date(metadata.release_date).getFullYear() :
|
415 |
+
metadata.first_air_date ? new Date(metadata.first_air_date).getFullYear() : null,
|
416 |
+
runtime: metadata.runtime ? metadata.runtime.toString() : "120",
|
417 |
+
genres: metadata.genres ? metadata.genres.map(g => g.name) : [],
|
418 |
+
posterShape: 'regular',
|
419 |
+
background: metadata.backdrop_path ?
|
420 |
+
`https://image.tmdb.org/t/p/original${metadata.backdrop_path}` : null,
|
421 |
+
logo: null,
|
422 |
+
description: metadata.overview,
|
423 |
+
releaseInfo: metadata.release_date || metadata.first_air_date,
|
424 |
+
imdbRating: metadata.vote_average ? metadata.vote_average.toFixed(1) : null,
|
425 |
+
released: metadata.release_date || metadata.first_air_date,
|
426 |
+
};
|
427 |
+
|
428 |
+
if (type === 'series' && seasonNum && episodeNum) {
|
429 |
+
meta.videos = [{
|
430 |
+
id: id,
|
431 |
+
title: `Season ${seasonNum} Episode ${episodeNum}`,
|
432 |
+
season: parseInt(seasonNum),
|
433 |
+
episode: parseInt(episodeNum),
|
434 |
+
released: meta.released
|
435 |
+
}];
|
436 |
+
}
|
437 |
+
|
438 |
+
return { meta };
|
439 |
+
}
|
440 |
+
}
|
441 |
+
|
442 |
+
return { meta: null };
|
443 |
+
} catch (error) {
|
444 |
+
logger.error(`Error in meta handler: ${error.message}`);
|
445 |
+
return { meta: null };
|
446 |
+
}
|
447 |
+
});
|
448 |
+
|
449 |
+
module.exports = { setConfiguration };
|
combined.log
ADDED
The diff for this file is too large to render.
See raw diff
|
|
easynews-searcher.js
ADDED
@@ -0,0 +1,385 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
const fetch = require('node-fetch');
|
2 |
+
const winston = require('winston');
|
3 |
+
|
4 |
+
// Logger configuration
|
5 |
+
const logger = winston.createLogger({
|
6 |
+
level: 'debug',
|
7 |
+
format: winston.format.combine(
|
8 |
+
winston.format.timestamp(),
|
9 |
+
winston.format.printf(({ level, message, timestamp }) => {
|
10 |
+
return `${timestamp} ${level}: ${message}`;
|
11 |
+
})
|
12 |
+
),
|
13 |
+
transports: [
|
14 |
+
new winston.transports.Console(),
|
15 |
+
new winston.transports.File({ filename: 'error.log', level: 'error' }),
|
16 |
+
new winston.transports.File({ filename: 'combined.log' })
|
17 |
+
]
|
18 |
+
});
|
19 |
+
|
20 |
+
class EasynewsSearcher {
|
21 |
+
constructor(username, password, maxRetries = 3, retryDelay = 1000) {
|
22 |
+
this.username = username;
|
23 |
+
this.password = password;
|
24 |
+
this.maxRetries = maxRetries;
|
25 |
+
this.retryDelay = retryDelay;
|
26 |
+
this.maxFileSize = 100; // Maximum file size in GB
|
27 |
+
}
|
28 |
+
|
29 |
+
getSearchUrl(searchTerm) {
|
30 |
+
const encodedSearchTerm = encodeURIComponent(searchTerm);
|
31 |
+
return `https://members.easynews.com/1.0/global5/search.html?submit=Search&gps=&sbj=&from=&ns=&fil=${encodedSearchTerm}&fex=&vc=&ac=&fty%5B%5D=VIDEO&s1=dtime&s1d=-&s2=nsubject&s2d=%2B&s3=nrfile&s3d=%2B&pby=1000&pno=1&sS=5&u=1&svL=&d1=&d1t=&d2=&d2t=&b1=&b1t=&b2=&b2t=&px1=&px1t=&px2=&px2t=&fps1=&fps1t=&fps2=&fps2t=&bps1=&bps1t=&bps2=&bps2t=&hz1=&hz1t=&hz2=&hz2t=&rn1=&rn1t=&rn2=&rn2t=&fly=1`;
|
32 |
+
}
|
33 |
+
|
34 |
+
detectQuality(filename) {
|
35 |
+
const qualityPatterns = [
|
36 |
+
{
|
37 |
+
quality: '4K',
|
38 |
+
patterns: [/2160p/i, /4K/i, /UHD/i, /ULTRA.?HD/i]
|
39 |
+
},
|
40 |
+
{
|
41 |
+
quality: '1080p',
|
42 |
+
patterns: [/1080[pi]/i, /FHD/i, /FULL.?HD/i]
|
43 |
+
},
|
44 |
+
{
|
45 |
+
quality: '720p',
|
46 |
+
patterns: [/720p/i, /HD(?!TV)/i]
|
47 |
+
},
|
48 |
+
{
|
49 |
+
quality: '480p',
|
50 |
+
patterns: [/480[pi]/i, /SD\b/i]
|
51 |
+
}
|
52 |
+
];
|
53 |
+
|
54 |
+
for (const { quality, patterns } of qualityPatterns) {
|
55 |
+
if (patterns.some(pattern => pattern.test(filename))) {
|
56 |
+
return quality;
|
57 |
+
}
|
58 |
+
}
|
59 |
+
|
60 |
+
// Default quality if no match found
|
61 |
+
return 'SD';
|
62 |
+
}
|
63 |
+
|
64 |
+
getQualityEmoji(quality) {
|
65 |
+
const emojiMap = {
|
66 |
+
'4K': '🌟',
|
67 |
+
'1080p': '🎥',
|
68 |
+
'720p': '📺',
|
69 |
+
'480p': '📱',
|
70 |
+
'SD': '💾'
|
71 |
+
};
|
72 |
+
return emojiMap[quality] || '📺';
|
73 |
+
}
|
74 |
+
|
75 |
+
detectLanguagesFromFilename(filename) {
|
76 |
+
const languagePatterns = {
|
77 |
+
'English': [
|
78 |
+
/\bENG\b/i,
|
79 |
+
/\bENGLISH\b/i,
|
80 |
+
/\bEN\b/i,
|
81 |
+
/\bDUAL[._]AUDIO\b/i
|
82 |
+
],
|
83 |
+
'French': [
|
84 |
+
/\bFR\b/i,
|
85 |
+
/\bFRENCH\b/i,
|
86 |
+
/\bVFF\b/i,
|
87 |
+
/\bTRUEFRENCH\b/i
|
88 |
+
],
|
89 |
+
'German': [
|
90 |
+
/\bGER(MAN)?\b/i,
|
91 |
+
/\bDEU\b/i
|
92 |
+
],
|
93 |
+
'Spanish': [
|
94 |
+
/\bESP\b/i,
|
95 |
+
/\bSPA(NISH)?\b/i
|
96 |
+
],
|
97 |
+
'Italian': [
|
98 |
+
/\bITA(LIAN)?\b/i
|
99 |
+
],
|
100 |
+
'Multi': [
|
101 |
+
/\bMULTI\b/i,
|
102 |
+
/\bMULTILANGUAGE\b/i,
|
103 |
+
/\bDUAL[._]AUDIO\b/i
|
104 |
+
],
|
105 |
+
'Nordic': [
|
106 |
+
/\bNORDIC\b/i,
|
107 |
+
/\bNORDiC\b/i
|
108 |
+
]
|
109 |
+
};
|
110 |
+
|
111 |
+
const languages = new Set();
|
112 |
+
|
113 |
+
for (const [language, patterns] of Object.entries(languagePatterns)) {
|
114 |
+
if (patterns.some(pattern => pattern.test(filename))) {
|
115 |
+
languages.add(language);
|
116 |
+
}
|
117 |
+
}
|
118 |
+
|
119 |
+
return Array.from(languages);
|
120 |
+
}
|
121 |
+
|
122 |
+
getLanguageFromCode(code) {
|
123 |
+
const languageMap = {
|
124 |
+
'us': 'English',
|
125 |
+
'gb': 'English',
|
126 |
+
'ca': 'English',
|
127 |
+
'au': 'English',
|
128 |
+
'nz': 'English',
|
129 |
+
'fr': 'French',
|
130 |
+
'de': 'German',
|
131 |
+
'es': 'Spanish',
|
132 |
+
'it': 'Italian',
|
133 |
+
'jp': 'Japanese',
|
134 |
+
'kr': 'Korean',
|
135 |
+
'cn': 'Chinese',
|
136 |
+
'ru': 'Russian',
|
137 |
+
'nl': 'Dutch',
|
138 |
+
'pl': 'Polish',
|
139 |
+
'se': 'Swedish',
|
140 |
+
'dk': 'Danish',
|
141 |
+
'no': 'Norwegian',
|
142 |
+
'fi': 'Finnish',
|
143 |
+
'pt': 'Portuguese',
|
144 |
+
'br': 'Portuguese',
|
145 |
+
'tr': 'Turkish',
|
146 |
+
'nordic': 'Nordic'
|
147 |
+
};
|
148 |
+
return languageMap[code.toLowerCase()] || code;
|
149 |
+
}
|
150 |
+
|
151 |
+
getLanguageEmojis(languages) {
|
152 |
+
const emojiMap = {
|
153 |
+
'English': ['🇺🇸', '🇬🇧'],
|
154 |
+
'French': '🇫🇷',
|
155 |
+
'German': '🇩🇪',
|
156 |
+
'Spanish': '🇪🇸',
|
157 |
+
'Italian': '🇮🇹',
|
158 |
+
'Japanese': '🇯🇵',
|
159 |
+
'Korean': '🇰🇷',
|
160 |
+
'Chinese': '🇨🇳',
|
161 |
+
'Russian': '🇷🇺',
|
162 |
+
'Dutch': '🇳🇱',
|
163 |
+
'Polish': '🇵🇱',
|
164 |
+
'Swedish': '🇸🇪',
|
165 |
+
'Danish': '🇩🇰',
|
166 |
+
'Norwegian': '🇳🇴',
|
167 |
+
'Finnish': '🇫🇮',
|
168 |
+
'Portuguese': '🇵🇹',
|
169 |
+
'Turkish': '🇹🇷',
|
170 |
+
'Nordic': '🇩🇰',
|
171 |
+
'Multi': '🌐'
|
172 |
+
};
|
173 |
+
|
174 |
+
return languages.flatMap(lang => {
|
175 |
+
const emoji = emojiMap[lang];
|
176 |
+
return Array.isArray(emoji) ? emoji : [emoji || '🏳️'];
|
177 |
+
});
|
178 |
+
}
|
179 |
+
|
180 |
+
convertToGB(fileSize) {
|
181 |
+
const size = parseFloat(fileSize);
|
182 |
+
const unit = fileSize.split(' ')[1]?.toLowerCase() || 'gb';
|
183 |
+
|
184 |
+
switch (unit) {
|
185 |
+
case 'kb': return size / (1024 * 1024);
|
186 |
+
case 'mb': return size / 1024;
|
187 |
+
case 'gb': return size;
|
188 |
+
case 'tb': return size * 1024;
|
189 |
+
default: return 0;
|
190 |
+
}
|
191 |
+
}
|
192 |
+
|
193 |
+
extractFileInfo(filename) {
|
194 |
+
// Clean up filename
|
195 |
+
let cleanName = filename
|
196 |
+
.replace(/\.[^/.]+$/, '') // Remove extension
|
197 |
+
.replace(/\b(?:480p|720p|1080[pi]|2160p|4k|uhd|hdr|bluray|webrip|web-dl|webdl|web)\b.*$/i, '')
|
198 |
+
.replace(/\./g, ' ')
|
199 |
+
.replace(/-/g, ' ')
|
200 |
+
.trim();
|
201 |
+
|
202 |
+
// Extract year
|
203 |
+
const yearMatch = cleanName.match(/\b(?:19|20)\d{2}\b/);
|
204 |
+
const year = yearMatch ? parseInt(yearMatch[0]) : null;
|
205 |
+
if (year) {
|
206 |
+
cleanName = cleanName.replace(yearMatch[0], '').trim();
|
207 |
+
}
|
208 |
+
|
209 |
+
// Extract season/episode
|
210 |
+
const seasonEpMatch = cleanName.match(/S(\d{1,2})E(\d{1,2})/i);
|
211 |
+
const season = seasonEpMatch ? parseInt(seasonEpMatch[1]) : null;
|
212 |
+
const episode = seasonEpMatch ? parseInt(seasonEpMatch[2]) : null;
|
213 |
+
|
214 |
+
if (season && episode) {
|
215 |
+
cleanName = cleanName.replace(/S\d{1,2}E\d{1,2}/i, '').trim();
|
216 |
+
}
|
217 |
+
|
218 |
+
// Clean title
|
219 |
+
cleanName = cleanName
|
220 |
+
.replace(/\[.*?\]/g, '')
|
221 |
+
.replace(/\(.*?\)/g, '')
|
222 |
+
.replace(/\s+/g, ' ')
|
223 |
+
.trim();
|
224 |
+
|
225 |
+
return {
|
226 |
+
title: cleanName,
|
227 |
+
year,
|
228 |
+
season,
|
229 |
+
episode
|
230 |
+
};
|
231 |
+
}
|
232 |
+
|
233 |
+
parseXMLItem(itemXml) {
|
234 |
+
try {
|
235 |
+
// Extract URL
|
236 |
+
const enclosureMatch = itemXml.match(/<enclosure url="([^"]+)"/);
|
237 |
+
if (!enclosureMatch) return null;
|
238 |
+
let url = enclosureMatch[1];
|
239 |
+
url = this.decodeHTMLEntities(url);
|
240 |
+
|
241 |
+
// Extract file size
|
242 |
+
const sizeMatch = itemXml.match(/length="([^"]+)"/);
|
243 |
+
const fileSize = sizeMatch ? this.decodeHTMLEntities(sizeMatch[1]) : '0 B';
|
244 |
+
|
245 |
+
// Get filename from URL
|
246 |
+
const filenameMatch = url.match(/\/([^\/]+\.(?:mkv|mp4|avi|ts))(?:\?|$)/i);
|
247 |
+
if (!filenameMatch) return null;
|
248 |
+
const filename = this.decodeHTMLEntities(decodeURIComponent(filenameMatch[1]));
|
249 |
+
|
250 |
+
// Skip sample files
|
251 |
+
if (/(^|-|\s)sample[s]?(\.|$|\s|-)/i.test(filename)) {
|
252 |
+
logger.debug(`Skipping sample file: ${filename}`);
|
253 |
+
return null;
|
254 |
+
}
|
255 |
+
|
256 |
+
// Check file size
|
257 |
+
const sizeInGB = this.convertToGB(fileSize);
|
258 |
+
if (sizeInGB > this.maxFileSize) {
|
259 |
+
logger.debug(`Skipping large file: ${filename} (${fileSize})`);
|
260 |
+
return null;
|
261 |
+
}
|
262 |
+
|
263 |
+
// Extract information
|
264 |
+
const info = this.extractFileInfo(filename);
|
265 |
+
|
266 |
+
// Extract languages from flags
|
267 |
+
const flagCodes = new Set();
|
268 |
+
const flagMatches = itemXml.matchAll(/flags\/16\/([^.]+)\.png/g);
|
269 |
+
for (const match of flagMatches) {
|
270 |
+
flagCodes.add(match[1].toLowerCase());
|
271 |
+
}
|
272 |
+
|
273 |
+
// Get languages
|
274 |
+
const filenameLanguages = this.detectLanguagesFromFilename(filename);
|
275 |
+
const flagLanguages = Array.from(flagCodes).map(code => this.getLanguageFromCode(code));
|
276 |
+
const allLanguages = Array.from(new Set([...flagLanguages, ...filenameLanguages]));
|
277 |
+
|
278 |
+
// Default to English for standard releases
|
279 |
+
if (allLanguages.length === 0 &&
|
280 |
+
/\b(?:BluRay|WEB-DL|WEBRip|BRRip|DVDRip)\b/i.test(filename) &&
|
281 |
+
!/\b(?:FRENCH|GERMAN|SPANISH|ITALIAN|NORDIC)\b/i.test(filename)) {
|
282 |
+
allLanguages.push('English');
|
283 |
+
}
|
284 |
+
|
285 |
+
// Detect quality
|
286 |
+
const quality = this.detectQuality(filename);
|
287 |
+
|
288 |
+
return {
|
289 |
+
filename,
|
290 |
+
linkUrl: url,
|
291 |
+
fileSize,
|
292 |
+
quality,
|
293 |
+
qualityEmoji: this.getQualityEmoji(quality),
|
294 |
+
languages: allLanguages,
|
295 |
+
languageEmojis: this.getLanguageEmojis(allLanguages),
|
296 |
+
...info
|
297 |
+
};
|
298 |
+
} catch (error) {
|
299 |
+
logger.error(`Error parsing XML item: ${error.message}`);
|
300 |
+
return null;
|
301 |
+
}
|
302 |
+
}
|
303 |
+
|
304 |
+
decodeHTMLEntities(text) {
|
305 |
+
return text.replace(/&([^;]+);/g, (match, entity) => {
|
306 |
+
const entities = {
|
307 |
+
'amp': '&',
|
308 |
+
'apos': "'",
|
309 |
+
'lt': '<',
|
310 |
+
'gt': '>',
|
311 |
+
'quot': '"',
|
312 |
+
'nbsp': ' ',
|
313 |
+
'#046': '.',
|
314 |
+
'#058': ':',
|
315 |
+
'#047': '/',
|
316 |
+
'#040': '(',
|
317 |
+
'#041': ')',
|
318 |
+
'#064': '@',
|
319 |
+
'#037': '%',
|
320 |
+
'#043': '+',
|
321 |
+
'#061': '='
|
322 |
+
};
|
323 |
+
|
324 |
+
if (entity.startsWith('#')) {
|
325 |
+
const code = parseInt(entity.substring(1));
|
326 |
+
return isNaN(code) ? match : String.fromCharCode(code);
|
327 |
+
}
|
328 |
+
|
329 |
+
return entities[entity] || match;
|
330 |
+
});
|
331 |
+
}
|
332 |
+
|
333 |
+
async fetchWithRetry(fetchFunction, retries = this.maxRetries) {
|
334 |
+
try {
|
335 |
+
return await fetchFunction();
|
336 |
+
} catch (error) {
|
337 |
+
if (retries > 0) {
|
338 |
+
logger.warn(`Retrying... ${retries} attempts left`);
|
339 |
+
await new Promise(resolve => setTimeout(resolve, this.retryDelay));
|
340 |
+
return this.fetchWithRetry(fetchFunction, retries - 1);
|
341 |
+
} else {
|
342 |
+
throw error;
|
343 |
+
}
|
344 |
+
}
|
345 |
+
}
|
346 |
+
|
347 |
+
async fetchEasynewsRssFeed(searchTerm) {
|
348 |
+
const url = this.getSearchUrl(searchTerm);
|
349 |
+
logger.debug(`Fetching from URL: ${url}`);
|
350 |
+
const response = await fetch(url, {
|
351 |
+
headers: {
|
352 |
+
'Authorization': `Basic ${Buffer.from(`${this.username}:${this.password}`).toString('base64')}`,
|
353 |
+
},
|
354 |
+
});
|
355 |
+
if (!response.ok) {
|
356 |
+
throw new Error(`HTTP error! status: ${response.status}`);
|
357 |
+
}
|
358 |
+
return await response.text();
|
359 |
+
}
|
360 |
+
|
361 |
+
async search(searchTerm) {
|
362 |
+
logger.info(`Searching Easynews for: ${searchTerm}`);
|
363 |
+
try {
|
364 |
+
const xml = await this.fetchWithRetry(() => this.fetchEasynewsRssFeed(searchTerm));
|
365 |
+
const itemRegex = /<item>([\s\S]*?)<\/item>/g;
|
366 |
+
const results = [];
|
367 |
+
let match;
|
368 |
+
|
369 |
+
while ((match = itemRegex.exec(xml)) !== null) {
|
370 |
+
const result = this.parseXMLItem(match[1]);
|
371 |
+
if (result) {
|
372 |
+
results.push(result);
|
373 |
+
}
|
374 |
+
}
|
375 |
+
|
376 |
+
logger.info(`Found ${results.length} results`);
|
377 |
+
return results;
|
378 |
+
} catch (error) {
|
379 |
+
logger.error(`Failed to search Easynews for: ${searchTerm}`, error);
|
380 |
+
return [];
|
381 |
+
}
|
382 |
+
}
|
383 |
+
}
|
384 |
+
|
385 |
+
module.exports = EasynewsSearcher;
|
error.log
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
2024-11-09T23:09:33.136Z error: Failed to decode configuration: Unexpected token } in JSON at position 0
|
2 |
+
2024-11-09T23:11:04.956Z error: Failed to decode configuration: Unexpected token } in JSON at position 0
|
3 |
+
2024-11-16T01:23:03.216Z error: Failed to decode configuration: Unexpected token } in JSON at position 0
|
4 |
+
2024-11-16T01:23:06.653Z error: Failed to decode configuration: Unexpected token } in JSON at position 0
|
package-lock.json
ADDED
@@ -0,0 +1,1688 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "easynews-stremio-addon",
|
3 |
+
"version": "1.0.0",
|
4 |
+
"lockfileVersion": 3,
|
5 |
+
"requires": true,
|
6 |
+
"packages": {
|
7 |
+
"": {
|
8 |
+
"name": "easynews-stremio-addon",
|
9 |
+
"version": "1.0.0",
|
10 |
+
"dependencies": {
|
11 |
+
"dotenv": "^16.4.5",
|
12 |
+
"express": "^4.17.1",
|
13 |
+
"moviedb-promise": "^3.1.14",
|
14 |
+
"node-fetch": "^2.6.1",
|
15 |
+
"stremio-addon-sdk": "^1.6.10",
|
16 |
+
"winston": "^3.14.2"
|
17 |
+
}
|
18 |
+
},
|
19 |
+
"node_modules/@colors/colors": {
|
20 |
+
"version": "1.6.0",
|
21 |
+
"resolved": "https://registry.npmmirror.com/@colors/colors/-/colors-1.6.0.tgz",
|
22 |
+
"integrity": "sha512-Ir+AOibqzrIsL6ajt3Rz3LskB7OiMVHqltZmspbW/TJuTVuyOMirVqAkjfY6JISiLHgyNqicAC8AyHHGzNd/dA==",
|
23 |
+
"license": "MIT",
|
24 |
+
"engines": {
|
25 |
+
"node": ">=0.1.90"
|
26 |
+
}
|
27 |
+
},
|
28 |
+
"node_modules/@dabh/diagnostics": {
|
29 |
+
"version": "2.0.3",
|
30 |
+
"resolved": "https://registry.npmmirror.com/@dabh/diagnostics/-/diagnostics-2.0.3.tgz",
|
31 |
+
"integrity": "sha512-hrlQOIi7hAfzsMqlGSFyVucrx38O+j6wiGOf//H2ecvIEqYN4ADBSS2iLMh5UFyDunCNniUIPk/q3riFv45xRA==",
|
32 |
+
"license": "MIT",
|
33 |
+
"dependencies": {
|
34 |
+
"colorspace": "1.1.x",
|
35 |
+
"enabled": "2.0.x",
|
36 |
+
"kuler": "^2.0.0"
|
37 |
+
}
|
38 |
+
},
|
39 |
+
"node_modules/@types/triple-beam": {
|
40 |
+
"version": "1.3.5",
|
41 |
+
"resolved": "https://registry.npmmirror.com/@types/triple-beam/-/triple-beam-1.3.5.tgz",
|
42 |
+
"integrity": "sha512-6WaYesThRMCl19iryMYP7/x2OVgCtbIVflDGFpWnb9irXI3UjYE4AzmYuiUKY1AJstGijoY+MgUszMgRxIYTYw==",
|
43 |
+
"license": "MIT"
|
44 |
+
},
|
45 |
+
"node_modules/abort-controller": {
|
46 |
+
"version": "3.0.0",
|
47 |
+
"resolved": "https://registry.npmmirror.com/abort-controller/-/abort-controller-3.0.0.tgz",
|
48 |
+
"integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==",
|
49 |
+
"license": "MIT",
|
50 |
+
"dependencies": {
|
51 |
+
"event-target-shim": "^5.0.0"
|
52 |
+
},
|
53 |
+
"engines": {
|
54 |
+
"node": ">=6.5"
|
55 |
+
}
|
56 |
+
},
|
57 |
+
"node_modules/accepts": {
|
58 |
+
"version": "1.3.8",
|
59 |
+
"resolved": "https://registry.npmmirror.com/accepts/-/accepts-1.3.8.tgz",
|
60 |
+
"integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
|
61 |
+
"license": "MIT",
|
62 |
+
"dependencies": {
|
63 |
+
"mime-types": "~2.1.34",
|
64 |
+
"negotiator": "0.6.3"
|
65 |
+
},
|
66 |
+
"engines": {
|
67 |
+
"node": ">= 0.6"
|
68 |
+
}
|
69 |
+
},
|
70 |
+
"node_modules/ansi-escapes": {
|
71 |
+
"version": "3.2.0",
|
72 |
+
"resolved": "https://registry.npmmirror.com/ansi-escapes/-/ansi-escapes-3.2.0.tgz",
|
73 |
+
"integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==",
|
74 |
+
"license": "MIT",
|
75 |
+
"engines": {
|
76 |
+
"node": ">=4"
|
77 |
+
}
|
78 |
+
},
|
79 |
+
"node_modules/ansi-regex": {
|
80 |
+
"version": "4.1.1",
|
81 |
+
"resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-4.1.1.tgz",
|
82 |
+
"integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==",
|
83 |
+
"license": "MIT",
|
84 |
+
"engines": {
|
85 |
+
"node": ">=6"
|
86 |
+
}
|
87 |
+
},
|
88 |
+
"node_modules/ansi-styles": {
|
89 |
+
"version": "3.2.1",
|
90 |
+
"resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-3.2.1.tgz",
|
91 |
+
"integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
|
92 |
+
"license": "MIT",
|
93 |
+
"dependencies": {
|
94 |
+
"color-convert": "^1.9.0"
|
95 |
+
},
|
96 |
+
"engines": {
|
97 |
+
"node": ">=4"
|
98 |
+
}
|
99 |
+
},
|
100 |
+
"node_modules/array-flatten": {
|
101 |
+
"version": "1.1.1",
|
102 |
+
"resolved": "https://registry.npmmirror.com/array-flatten/-/array-flatten-1.1.1.tgz",
|
103 |
+
"integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==",
|
104 |
+
"license": "MIT"
|
105 |
+
},
|
106 |
+
"node_modules/async": {
|
107 |
+
"version": "3.2.6",
|
108 |
+
"resolved": "https://registry.npmmirror.com/async/-/async-3.2.6.tgz",
|
109 |
+
"integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==",
|
110 |
+
"license": "MIT"
|
111 |
+
},
|
112 |
+
"node_modules/axios": {
|
113 |
+
"version": "0.26.1",
|
114 |
+
"resolved": "https://registry.npmmirror.com/axios/-/axios-0.26.1.tgz",
|
115 |
+
"integrity": "sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA==",
|
116 |
+
"license": "MIT",
|
117 |
+
"dependencies": {
|
118 |
+
"follow-redirects": "^1.14.8"
|
119 |
+
}
|
120 |
+
},
|
121 |
+
"node_modules/base64-js": {
|
122 |
+
"version": "1.5.1",
|
123 |
+
"resolved": "https://registry.npmmirror.com/base64-js/-/base64-js-1.5.1.tgz",
|
124 |
+
"integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
|
125 |
+
"funding": [
|
126 |
+
{
|
127 |
+
"type": "github",
|
128 |
+
"url": "https://github.com/sponsors/feross"
|
129 |
+
},
|
130 |
+
{
|
131 |
+
"type": "patreon",
|
132 |
+
"url": "https://www.patreon.com/feross"
|
133 |
+
},
|
134 |
+
{
|
135 |
+
"type": "consulting",
|
136 |
+
"url": "https://feross.org/support"
|
137 |
+
}
|
138 |
+
],
|
139 |
+
"license": "MIT"
|
140 |
+
},
|
141 |
+
"node_modules/body-parser": {
|
142 |
+
"version": "1.20.3",
|
143 |
+
"resolved": "https://registry.npmmirror.com/body-parser/-/body-parser-1.20.3.tgz",
|
144 |
+
"integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==",
|
145 |
+
"license": "MIT",
|
146 |
+
"dependencies": {
|
147 |
+
"bytes": "3.1.2",
|
148 |
+
"content-type": "~1.0.5",
|
149 |
+
"debug": "2.6.9",
|
150 |
+
"depd": "2.0.0",
|
151 |
+
"destroy": "1.2.0",
|
152 |
+
"http-errors": "2.0.0",
|
153 |
+
"iconv-lite": "0.4.24",
|
154 |
+
"on-finished": "2.4.1",
|
155 |
+
"qs": "6.13.0",
|
156 |
+
"raw-body": "2.5.2",
|
157 |
+
"type-is": "~1.6.18",
|
158 |
+
"unpipe": "1.0.0"
|
159 |
+
},
|
160 |
+
"engines": {
|
161 |
+
"node": ">= 0.8",
|
162 |
+
"npm": "1.2.8000 || >= 1.4.16"
|
163 |
+
}
|
164 |
+
},
|
165 |
+
"node_modules/buffer": {
|
166 |
+
"version": "6.0.3",
|
167 |
+
"resolved": "https://registry.npmmirror.com/buffer/-/buffer-6.0.3.tgz",
|
168 |
+
"integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==",
|
169 |
+
"funding": [
|
170 |
+
{
|
171 |
+
"type": "github",
|
172 |
+
"url": "https://github.com/sponsors/feross"
|
173 |
+
},
|
174 |
+
{
|
175 |
+
"type": "patreon",
|
176 |
+
"url": "https://www.patreon.com/feross"
|
177 |
+
},
|
178 |
+
{
|
179 |
+
"type": "consulting",
|
180 |
+
"url": "https://feross.org/support"
|
181 |
+
}
|
182 |
+
],
|
183 |
+
"license": "MIT",
|
184 |
+
"dependencies": {
|
185 |
+
"base64-js": "^1.3.1",
|
186 |
+
"ieee754": "^1.2.1"
|
187 |
+
}
|
188 |
+
},
|
189 |
+
"node_modules/bytes": {
|
190 |
+
"version": "3.1.2",
|
191 |
+
"resolved": "https://registry.npmmirror.com/bytes/-/bytes-3.1.2.tgz",
|
192 |
+
"integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
|
193 |
+
"license": "MIT",
|
194 |
+
"engines": {
|
195 |
+
"node": ">= 0.8"
|
196 |
+
}
|
197 |
+
},
|
198 |
+
"node_modules/call-bind": {
|
199 |
+
"version": "1.0.7",
|
200 |
+
"resolved": "https://registry.npmmirror.com/call-bind/-/call-bind-1.0.7.tgz",
|
201 |
+
"integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==",
|
202 |
+
"license": "MIT",
|
203 |
+
"dependencies": {
|
204 |
+
"es-define-property": "^1.0.0",
|
205 |
+
"es-errors": "^1.3.0",
|
206 |
+
"function-bind": "^1.1.2",
|
207 |
+
"get-intrinsic": "^1.2.4",
|
208 |
+
"set-function-length": "^1.2.1"
|
209 |
+
},
|
210 |
+
"engines": {
|
211 |
+
"node": ">= 0.4"
|
212 |
+
},
|
213 |
+
"funding": {
|
214 |
+
"url": "https://github.com/sponsors/ljharb"
|
215 |
+
}
|
216 |
+
},
|
217 |
+
"node_modules/chalk": {
|
218 |
+
"version": "2.4.2",
|
219 |
+
"resolved": "https://registry.npmmirror.com/chalk/-/chalk-2.4.2.tgz",
|
220 |
+
"integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
|
221 |
+
"license": "MIT",
|
222 |
+
"dependencies": {
|
223 |
+
"ansi-styles": "^3.2.1",
|
224 |
+
"escape-string-regexp": "^1.0.5",
|
225 |
+
"supports-color": "^5.3.0"
|
226 |
+
},
|
227 |
+
"engines": {
|
228 |
+
"node": ">=4"
|
229 |
+
}
|
230 |
+
},
|
231 |
+
"node_modules/chardet": {
|
232 |
+
"version": "0.7.0",
|
233 |
+
"resolved": "https://registry.npmmirror.com/chardet/-/chardet-0.7.0.tgz",
|
234 |
+
"integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==",
|
235 |
+
"license": "MIT"
|
236 |
+
},
|
237 |
+
"node_modules/cli-cursor": {
|
238 |
+
"version": "2.1.0",
|
239 |
+
"resolved": "https://registry.npmmirror.com/cli-cursor/-/cli-cursor-2.1.0.tgz",
|
240 |
+
"integrity": "sha512-8lgKz8LmCRYZZQDpRyT2m5rKJ08TnU4tR9FFFW2rxpxR1FzWi4PQ/NfyODchAatHaUgnSPVcx/R5w6NuTBzFiw==",
|
241 |
+
"license": "MIT",
|
242 |
+
"dependencies": {
|
243 |
+
"restore-cursor": "^2.0.0"
|
244 |
+
},
|
245 |
+
"engines": {
|
246 |
+
"node": ">=4"
|
247 |
+
}
|
248 |
+
},
|
249 |
+
"node_modules/cli-width": {
|
250 |
+
"version": "2.2.1",
|
251 |
+
"resolved": "https://registry.npmmirror.com/cli-width/-/cli-width-2.2.1.tgz",
|
252 |
+
"integrity": "sha512-GRMWDxpOB6Dgk2E5Uo+3eEBvtOOlimMmpbFiKuLFnQzYDavtLFY3K5ona41jgN/WdRZtG7utuVSVTL4HbZHGkw==",
|
253 |
+
"license": "ISC"
|
254 |
+
},
|
255 |
+
"node_modules/color": {
|
256 |
+
"version": "3.2.1",
|
257 |
+
"resolved": "https://registry.npmmirror.com/color/-/color-3.2.1.tgz",
|
258 |
+
"integrity": "sha512-aBl7dZI9ENN6fUGC7mWpMTPNHmWUSNan9tuWN6ahh5ZLNk9baLJOnSMlrQkHcrfFgz2/RigjUVAjdx36VcemKA==",
|
259 |
+
"license": "MIT",
|
260 |
+
"dependencies": {
|
261 |
+
"color-convert": "^1.9.3",
|
262 |
+
"color-string": "^1.6.0"
|
263 |
+
}
|
264 |
+
},
|
265 |
+
"node_modules/color-convert": {
|
266 |
+
"version": "1.9.3",
|
267 |
+
"resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-1.9.3.tgz",
|
268 |
+
"integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
|
269 |
+
"license": "MIT",
|
270 |
+
"dependencies": {
|
271 |
+
"color-name": "1.1.3"
|
272 |
+
}
|
273 |
+
},
|
274 |
+
"node_modules/color-name": {
|
275 |
+
"version": "1.1.3",
|
276 |
+
"resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.3.tgz",
|
277 |
+
"integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==",
|
278 |
+
"license": "MIT"
|
279 |
+
},
|
280 |
+
"node_modules/color-string": {
|
281 |
+
"version": "1.9.1",
|
282 |
+
"resolved": "https://registry.npmmirror.com/color-string/-/color-string-1.9.1.tgz",
|
283 |
+
"integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==",
|
284 |
+
"license": "MIT",
|
285 |
+
"dependencies": {
|
286 |
+
"color-name": "^1.0.0",
|
287 |
+
"simple-swizzle": "^0.2.2"
|
288 |
+
}
|
289 |
+
},
|
290 |
+
"node_modules/color-string/node_modules/color-name": {
|
291 |
+
"version": "1.1.4",
|
292 |
+
"resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz",
|
293 |
+
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
|
294 |
+
"license": "MIT"
|
295 |
+
},
|
296 |
+
"node_modules/colorspace": {
|
297 |
+
"version": "1.1.4",
|
298 |
+
"resolved": "https://registry.npmmirror.com/colorspace/-/colorspace-1.1.4.tgz",
|
299 |
+
"integrity": "sha512-BgvKJiuVu1igBUF2kEjRCZXol6wiiGbY5ipL/oVPwm0BL9sIpMIzM8IK7vwuxIIzOXMV3Ey5w+vxhm0rR/TN8w==",
|
300 |
+
"license": "MIT",
|
301 |
+
"dependencies": {
|
302 |
+
"color": "^3.1.3",
|
303 |
+
"text-hex": "1.0.x"
|
304 |
+
}
|
305 |
+
},
|
306 |
+
"node_modules/content-disposition": {
|
307 |
+
"version": "0.5.4",
|
308 |
+
"resolved": "https://registry.npmmirror.com/content-disposition/-/content-disposition-0.5.4.tgz",
|
309 |
+
"integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
|
310 |
+
"license": "MIT",
|
311 |
+
"dependencies": {
|
312 |
+
"safe-buffer": "5.2.1"
|
313 |
+
},
|
314 |
+
"engines": {
|
315 |
+
"node": ">= 0.6"
|
316 |
+
}
|
317 |
+
},
|
318 |
+
"node_modules/content-type": {
|
319 |
+
"version": "1.0.5",
|
320 |
+
"resolved": "https://registry.npmmirror.com/content-type/-/content-type-1.0.5.tgz",
|
321 |
+
"integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
|
322 |
+
"license": "MIT",
|
323 |
+
"engines": {
|
324 |
+
"node": ">= 0.6"
|
325 |
+
}
|
326 |
+
},
|
327 |
+
"node_modules/cookie": {
|
328 |
+
"version": "0.7.1",
|
329 |
+
"resolved": "https://registry.npmmirror.com/cookie/-/cookie-0.7.1.tgz",
|
330 |
+
"integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==",
|
331 |
+
"license": "MIT",
|
332 |
+
"engines": {
|
333 |
+
"node": ">= 0.6"
|
334 |
+
}
|
335 |
+
},
|
336 |
+
"node_modules/cookie-signature": {
|
337 |
+
"version": "1.0.6",
|
338 |
+
"resolved": "https://registry.npmmirror.com/cookie-signature/-/cookie-signature-1.0.6.tgz",
|
339 |
+
"integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==",
|
340 |
+
"license": "MIT"
|
341 |
+
},
|
342 |
+
"node_modules/cors": {
|
343 |
+
"version": "2.8.5",
|
344 |
+
"resolved": "https://registry.npmmirror.com/cors/-/cors-2.8.5.tgz",
|
345 |
+
"integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==",
|
346 |
+
"license": "MIT",
|
347 |
+
"dependencies": {
|
348 |
+
"object-assign": "^4",
|
349 |
+
"vary": "^1"
|
350 |
+
},
|
351 |
+
"engines": {
|
352 |
+
"node": ">= 0.10"
|
353 |
+
}
|
354 |
+
},
|
355 |
+
"node_modules/debug": {
|
356 |
+
"version": "2.6.9",
|
357 |
+
"resolved": "https://registry.npmmirror.com/debug/-/debug-2.6.9.tgz",
|
358 |
+
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
|
359 |
+
"license": "MIT",
|
360 |
+
"dependencies": {
|
361 |
+
"ms": "2.0.0"
|
362 |
+
}
|
363 |
+
},
|
364 |
+
"node_modules/debug/node_modules/ms": {
|
365 |
+
"version": "2.0.0",
|
366 |
+
"resolved": "https://registry.npmmirror.com/ms/-/ms-2.0.0.tgz",
|
367 |
+
"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
|
368 |
+
"license": "MIT"
|
369 |
+
},
|
370 |
+
"node_modules/define-data-property": {
|
371 |
+
"version": "1.1.4",
|
372 |
+
"resolved": "https://registry.npmmirror.com/define-data-property/-/define-data-property-1.1.4.tgz",
|
373 |
+
"integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",
|
374 |
+
"license": "MIT",
|
375 |
+
"dependencies": {
|
376 |
+
"es-define-property": "^1.0.0",
|
377 |
+
"es-errors": "^1.3.0",
|
378 |
+
"gopd": "^1.0.1"
|
379 |
+
},
|
380 |
+
"engines": {
|
381 |
+
"node": ">= 0.4"
|
382 |
+
},
|
383 |
+
"funding": {
|
384 |
+
"url": "https://github.com/sponsors/ljharb"
|
385 |
+
}
|
386 |
+
},
|
387 |
+
"node_modules/depd": {
|
388 |
+
"version": "2.0.0",
|
389 |
+
"resolved": "https://registry.npmmirror.com/depd/-/depd-2.0.0.tgz",
|
390 |
+
"integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
|
391 |
+
"license": "MIT",
|
392 |
+
"engines": {
|
393 |
+
"node": ">= 0.8"
|
394 |
+
}
|
395 |
+
},
|
396 |
+
"node_modules/destroy": {
|
397 |
+
"version": "1.2.0",
|
398 |
+
"resolved": "https://registry.npmmirror.com/destroy/-/destroy-1.2.0.tgz",
|
399 |
+
"integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
|
400 |
+
"license": "MIT",
|
401 |
+
"engines": {
|
402 |
+
"node": ">= 0.8",
|
403 |
+
"npm": "1.2.8000 || >= 1.4.16"
|
404 |
+
}
|
405 |
+
},
|
406 |
+
"node_modules/dotenv": {
|
407 |
+
"version": "16.4.5",
|
408 |
+
"resolved": "https://registry.npmmirror.com/dotenv/-/dotenv-16.4.5.tgz",
|
409 |
+
"integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==",
|
410 |
+
"license": "BSD-2-Clause",
|
411 |
+
"engines": {
|
412 |
+
"node": ">=12"
|
413 |
+
},
|
414 |
+
"funding": {
|
415 |
+
"url": "https://dotenvx.com"
|
416 |
+
}
|
417 |
+
},
|
418 |
+
"node_modules/ee-first": {
|
419 |
+
"version": "1.1.1",
|
420 |
+
"resolved": "https://registry.npmmirror.com/ee-first/-/ee-first-1.1.1.tgz",
|
421 |
+
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
|
422 |
+
"license": "MIT"
|
423 |
+
},
|
424 |
+
"node_modules/enabled": {
|
425 |
+
"version": "2.0.0",
|
426 |
+
"resolved": "https://registry.npmmirror.com/enabled/-/enabled-2.0.0.tgz",
|
427 |
+
"integrity": "sha512-AKrN98kuwOzMIdAizXGI86UFBoo26CL21UM763y1h/GMSJ4/OHU9k2YlsmBpyScFo/wbLzWQJBMCW4+IO3/+OQ==",
|
428 |
+
"license": "MIT"
|
429 |
+
},
|
430 |
+
"node_modules/encodeurl": {
|
431 |
+
"version": "2.0.0",
|
432 |
+
"resolved": "https://registry.npmmirror.com/encodeurl/-/encodeurl-2.0.0.tgz",
|
433 |
+
"integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
|
434 |
+
"license": "MIT",
|
435 |
+
"engines": {
|
436 |
+
"node": ">= 0.8"
|
437 |
+
}
|
438 |
+
},
|
439 |
+
"node_modules/es-define-property": {
|
440 |
+
"version": "1.0.0",
|
441 |
+
"resolved": "https://registry.npmmirror.com/es-define-property/-/es-define-property-1.0.0.tgz",
|
442 |
+
"integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==",
|
443 |
+
"license": "MIT",
|
444 |
+
"dependencies": {
|
445 |
+
"get-intrinsic": "^1.2.4"
|
446 |
+
},
|
447 |
+
"engines": {
|
448 |
+
"node": ">= 0.4"
|
449 |
+
}
|
450 |
+
},
|
451 |
+
"node_modules/es-errors": {
|
452 |
+
"version": "1.3.0",
|
453 |
+
"resolved": "https://registry.npmmirror.com/es-errors/-/es-errors-1.3.0.tgz",
|
454 |
+
"integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
|
455 |
+
"license": "MIT",
|
456 |
+
"engines": {
|
457 |
+
"node": ">= 0.4"
|
458 |
+
}
|
459 |
+
},
|
460 |
+
"node_modules/escape-html": {
|
461 |
+
"version": "1.0.3",
|
462 |
+
"resolved": "https://registry.npmmirror.com/escape-html/-/escape-html-1.0.3.tgz",
|
463 |
+
"integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
|
464 |
+
"license": "MIT"
|
465 |
+
},
|
466 |
+
"node_modules/escape-string-regexp": {
|
467 |
+
"version": "1.0.5",
|
468 |
+
"resolved": "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
|
469 |
+
"integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==",
|
470 |
+
"license": "MIT",
|
471 |
+
"engines": {
|
472 |
+
"node": ">=0.8.0"
|
473 |
+
}
|
474 |
+
},
|
475 |
+
"node_modules/etag": {
|
476 |
+
"version": "1.8.1",
|
477 |
+
"resolved": "https://registry.npmmirror.com/etag/-/etag-1.8.1.tgz",
|
478 |
+
"integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
|
479 |
+
"license": "MIT",
|
480 |
+
"engines": {
|
481 |
+
"node": ">= 0.6"
|
482 |
+
}
|
483 |
+
},
|
484 |
+
"node_modules/event-target-shim": {
|
485 |
+
"version": "5.0.1",
|
486 |
+
"resolved": "https://registry.npmmirror.com/event-target-shim/-/event-target-shim-5.0.1.tgz",
|
487 |
+
"integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==",
|
488 |
+
"license": "MIT",
|
489 |
+
"engines": {
|
490 |
+
"node": ">=6"
|
491 |
+
}
|
492 |
+
},
|
493 |
+
"node_modules/events": {
|
494 |
+
"version": "3.3.0",
|
495 |
+
"resolved": "https://registry.npmmirror.com/events/-/events-3.3.0.tgz",
|
496 |
+
"integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==",
|
497 |
+
"license": "MIT",
|
498 |
+
"engines": {
|
499 |
+
"node": ">=0.8.x"
|
500 |
+
}
|
501 |
+
},
|
502 |
+
"node_modules/express": {
|
503 |
+
"version": "4.21.1",
|
504 |
+
"resolved": "https://registry.npmmirror.com/express/-/express-4.21.1.tgz",
|
505 |
+
"integrity": "sha512-YSFlK1Ee0/GC8QaO91tHcDxJiE/X4FbpAyQWkxAvG6AXCuR65YzK8ua6D9hvi/TzUfZMpc+BwuM1IPw8fmQBiQ==",
|
506 |
+
"license": "MIT",
|
507 |
+
"dependencies": {
|
508 |
+
"accepts": "~1.3.8",
|
509 |
+
"array-flatten": "1.1.1",
|
510 |
+
"body-parser": "1.20.3",
|
511 |
+
"content-disposition": "0.5.4",
|
512 |
+
"content-type": "~1.0.4",
|
513 |
+
"cookie": "0.7.1",
|
514 |
+
"cookie-signature": "1.0.6",
|
515 |
+
"debug": "2.6.9",
|
516 |
+
"depd": "2.0.0",
|
517 |
+
"encodeurl": "~2.0.0",
|
518 |
+
"escape-html": "~1.0.3",
|
519 |
+
"etag": "~1.8.1",
|
520 |
+
"finalhandler": "1.3.1",
|
521 |
+
"fresh": "0.5.2",
|
522 |
+
"http-errors": "2.0.0",
|
523 |
+
"merge-descriptors": "1.0.3",
|
524 |
+
"methods": "~1.1.2",
|
525 |
+
"on-finished": "2.4.1",
|
526 |
+
"parseurl": "~1.3.3",
|
527 |
+
"path-to-regexp": "0.1.10",
|
528 |
+
"proxy-addr": "~2.0.7",
|
529 |
+
"qs": "6.13.0",
|
530 |
+
"range-parser": "~1.2.1",
|
531 |
+
"safe-buffer": "5.2.1",
|
532 |
+
"send": "0.19.0",
|
533 |
+
"serve-static": "1.16.2",
|
534 |
+
"setprototypeof": "1.2.0",
|
535 |
+
"statuses": "2.0.1",
|
536 |
+
"type-is": "~1.6.18",
|
537 |
+
"utils-merge": "1.0.1",
|
538 |
+
"vary": "~1.1.2"
|
539 |
+
},
|
540 |
+
"engines": {
|
541 |
+
"node": ">= 0.10.0"
|
542 |
+
}
|
543 |
+
},
|
544 |
+
"node_modules/external-editor": {
|
545 |
+
"version": "3.1.0",
|
546 |
+
"resolved": "https://registry.npmmirror.com/external-editor/-/external-editor-3.1.0.tgz",
|
547 |
+
"integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==",
|
548 |
+
"license": "MIT",
|
549 |
+
"dependencies": {
|
550 |
+
"chardet": "^0.7.0",
|
551 |
+
"iconv-lite": "^0.4.24",
|
552 |
+
"tmp": "^0.0.33"
|
553 |
+
},
|
554 |
+
"engines": {
|
555 |
+
"node": ">=4"
|
556 |
+
}
|
557 |
+
},
|
558 |
+
"node_modules/fecha": {
|
559 |
+
"version": "4.2.3",
|
560 |
+
"resolved": "https://registry.npmmirror.com/fecha/-/fecha-4.2.3.tgz",
|
561 |
+
"integrity": "sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw==",
|
562 |
+
"license": "MIT"
|
563 |
+
},
|
564 |
+
"node_modules/figures": {
|
565 |
+
"version": "2.0.0",
|
566 |
+
"resolved": "https://registry.npmmirror.com/figures/-/figures-2.0.0.tgz",
|
567 |
+
"integrity": "sha512-Oa2M9atig69ZkfwiApY8F2Yy+tzMbazyvqv21R0NsSC8floSOC09BbT1ITWAdoMGQvJ/aZnR1KMwdx9tvHnTNA==",
|
568 |
+
"license": "MIT",
|
569 |
+
"dependencies": {
|
570 |
+
"escape-string-regexp": "^1.0.5"
|
571 |
+
},
|
572 |
+
"engines": {
|
573 |
+
"node": ">=4"
|
574 |
+
}
|
575 |
+
},
|
576 |
+
"node_modules/finalhandler": {
|
577 |
+
"version": "1.3.1",
|
578 |
+
"resolved": "https://registry.npmmirror.com/finalhandler/-/finalhandler-1.3.1.tgz",
|
579 |
+
"integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==",
|
580 |
+
"license": "MIT",
|
581 |
+
"dependencies": {
|
582 |
+
"debug": "2.6.9",
|
583 |
+
"encodeurl": "~2.0.0",
|
584 |
+
"escape-html": "~1.0.3",
|
585 |
+
"on-finished": "2.4.1",
|
586 |
+
"parseurl": "~1.3.3",
|
587 |
+
"statuses": "2.0.1",
|
588 |
+
"unpipe": "~1.0.0"
|
589 |
+
},
|
590 |
+
"engines": {
|
591 |
+
"node": ">= 0.8"
|
592 |
+
}
|
593 |
+
},
|
594 |
+
"node_modules/fn.name": {
|
595 |
+
"version": "1.1.0",
|
596 |
+
"resolved": "https://registry.npmmirror.com/fn.name/-/fn.name-1.1.0.tgz",
|
597 |
+
"integrity": "sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw==",
|
598 |
+
"license": "MIT"
|
599 |
+
},
|
600 |
+
"node_modules/follow-redirects": {
|
601 |
+
"version": "1.15.9",
|
602 |
+
"resolved": "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.15.9.tgz",
|
603 |
+
"integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==",
|
604 |
+
"funding": [
|
605 |
+
{
|
606 |
+
"type": "individual",
|
607 |
+
"url": "https://github.com/sponsors/RubenVerborgh"
|
608 |
+
}
|
609 |
+
],
|
610 |
+
"license": "MIT",
|
611 |
+
"engines": {
|
612 |
+
"node": ">=4.0"
|
613 |
+
},
|
614 |
+
"peerDependenciesMeta": {
|
615 |
+
"debug": {
|
616 |
+
"optional": true
|
617 |
+
}
|
618 |
+
}
|
619 |
+
},
|
620 |
+
"node_modules/forwarded": {
|
621 |
+
"version": "0.2.0",
|
622 |
+
"resolved": "https://registry.npmmirror.com/forwarded/-/forwarded-0.2.0.tgz",
|
623 |
+
"integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
|
624 |
+
"license": "MIT",
|
625 |
+
"engines": {
|
626 |
+
"node": ">= 0.6"
|
627 |
+
}
|
628 |
+
},
|
629 |
+
"node_modules/fresh": {
|
630 |
+
"version": "0.5.2",
|
631 |
+
"resolved": "https://registry.npmmirror.com/fresh/-/fresh-0.5.2.tgz",
|
632 |
+
"integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
|
633 |
+
"license": "MIT",
|
634 |
+
"engines": {
|
635 |
+
"node": ">= 0.6"
|
636 |
+
}
|
637 |
+
},
|
638 |
+
"node_modules/function-bind": {
|
639 |
+
"version": "1.1.2",
|
640 |
+
"resolved": "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.2.tgz",
|
641 |
+
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
|
642 |
+
"license": "MIT",
|
643 |
+
"funding": {
|
644 |
+
"url": "https://github.com/sponsors/ljharb"
|
645 |
+
}
|
646 |
+
},
|
647 |
+
"node_modules/get-intrinsic": {
|
648 |
+
"version": "1.2.4",
|
649 |
+
"resolved": "https://registry.npmmirror.com/get-intrinsic/-/get-intrinsic-1.2.4.tgz",
|
650 |
+
"integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==",
|
651 |
+
"license": "MIT",
|
652 |
+
"dependencies": {
|
653 |
+
"es-errors": "^1.3.0",
|
654 |
+
"function-bind": "^1.1.2",
|
655 |
+
"has-proto": "^1.0.1",
|
656 |
+
"has-symbols": "^1.0.3",
|
657 |
+
"hasown": "^2.0.0"
|
658 |
+
},
|
659 |
+
"engines": {
|
660 |
+
"node": ">= 0.4"
|
661 |
+
},
|
662 |
+
"funding": {
|
663 |
+
"url": "https://github.com/sponsors/ljharb"
|
664 |
+
}
|
665 |
+
},
|
666 |
+
"node_modules/gopd": {
|
667 |
+
"version": "1.0.1",
|
668 |
+
"resolved": "https://registry.npmmirror.com/gopd/-/gopd-1.0.1.tgz",
|
669 |
+
"integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==",
|
670 |
+
"license": "MIT",
|
671 |
+
"dependencies": {
|
672 |
+
"get-intrinsic": "^1.1.3"
|
673 |
+
},
|
674 |
+
"funding": {
|
675 |
+
"url": "https://github.com/sponsors/ljharb"
|
676 |
+
}
|
677 |
+
},
|
678 |
+
"node_modules/has-flag": {
|
679 |
+
"version": "3.0.0",
|
680 |
+
"resolved": "https://registry.npmmirror.com/has-flag/-/has-flag-3.0.0.tgz",
|
681 |
+
"integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==",
|
682 |
+
"license": "MIT",
|
683 |
+
"engines": {
|
684 |
+
"node": ">=4"
|
685 |
+
}
|
686 |
+
},
|
687 |
+
"node_modules/has-property-descriptors": {
|
688 |
+
"version": "1.0.2",
|
689 |
+
"resolved": "https://registry.npmmirror.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",
|
690 |
+
"integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",
|
691 |
+
"license": "MIT",
|
692 |
+
"dependencies": {
|
693 |
+
"es-define-property": "^1.0.0"
|
694 |
+
},
|
695 |
+
"funding": {
|
696 |
+
"url": "https://github.com/sponsors/ljharb"
|
697 |
+
}
|
698 |
+
},
|
699 |
+
"node_modules/has-proto": {
|
700 |
+
"version": "1.0.3",
|
701 |
+
"resolved": "https://registry.npmmirror.com/has-proto/-/has-proto-1.0.3.tgz",
|
702 |
+
"integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==",
|
703 |
+
"license": "MIT",
|
704 |
+
"engines": {
|
705 |
+
"node": ">= 0.4"
|
706 |
+
},
|
707 |
+
"funding": {
|
708 |
+
"url": "https://github.com/sponsors/ljharb"
|
709 |
+
}
|
710 |
+
},
|
711 |
+
"node_modules/has-symbols": {
|
712 |
+
"version": "1.0.3",
|
713 |
+
"resolved": "https://registry.npmmirror.com/has-symbols/-/has-symbols-1.0.3.tgz",
|
714 |
+
"integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",
|
715 |
+
"license": "MIT",
|
716 |
+
"engines": {
|
717 |
+
"node": ">= 0.4"
|
718 |
+
},
|
719 |
+
"funding": {
|
720 |
+
"url": "https://github.com/sponsors/ljharb"
|
721 |
+
}
|
722 |
+
},
|
723 |
+
"node_modules/hasown": {
|
724 |
+
"version": "2.0.2",
|
725 |
+
"resolved": "https://registry.npmmirror.com/hasown/-/hasown-2.0.2.tgz",
|
726 |
+
"integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
|
727 |
+
"license": "MIT",
|
728 |
+
"dependencies": {
|
729 |
+
"function-bind": "^1.1.2"
|
730 |
+
},
|
731 |
+
"engines": {
|
732 |
+
"node": ">= 0.4"
|
733 |
+
}
|
734 |
+
},
|
735 |
+
"node_modules/http-errors": {
|
736 |
+
"version": "2.0.0",
|
737 |
+
"resolved": "https://registry.npmmirror.com/http-errors/-/http-errors-2.0.0.tgz",
|
738 |
+
"integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
|
739 |
+
"license": "MIT",
|
740 |
+
"dependencies": {
|
741 |
+
"depd": "2.0.0",
|
742 |
+
"inherits": "2.0.4",
|
743 |
+
"setprototypeof": "1.2.0",
|
744 |
+
"statuses": "2.0.1",
|
745 |
+
"toidentifier": "1.0.1"
|
746 |
+
},
|
747 |
+
"engines": {
|
748 |
+
"node": ">= 0.8"
|
749 |
+
}
|
750 |
+
},
|
751 |
+
"node_modules/iconv-lite": {
|
752 |
+
"version": "0.4.24",
|
753 |
+
"resolved": "https://registry.npmmirror.com/iconv-lite/-/iconv-lite-0.4.24.tgz",
|
754 |
+
"integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
|
755 |
+
"license": "MIT",
|
756 |
+
"dependencies": {
|
757 |
+
"safer-buffer": ">= 2.1.2 < 3"
|
758 |
+
},
|
759 |
+
"engines": {
|
760 |
+
"node": ">=0.10.0"
|
761 |
+
}
|
762 |
+
},
|
763 |
+
"node_modules/ieee754": {
|
764 |
+
"version": "1.2.1",
|
765 |
+
"resolved": "https://registry.npmmirror.com/ieee754/-/ieee754-1.2.1.tgz",
|
766 |
+
"integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
|
767 |
+
"funding": [
|
768 |
+
{
|
769 |
+
"type": "github",
|
770 |
+
"url": "https://github.com/sponsors/feross"
|
771 |
+
},
|
772 |
+
{
|
773 |
+
"type": "patreon",
|
774 |
+
"url": "https://www.patreon.com/feross"
|
775 |
+
},
|
776 |
+
{
|
777 |
+
"type": "consulting",
|
778 |
+
"url": "https://feross.org/support"
|
779 |
+
}
|
780 |
+
],
|
781 |
+
"license": "BSD-3-Clause"
|
782 |
+
},
|
783 |
+
"node_modules/inherits": {
|
784 |
+
"version": "2.0.4",
|
785 |
+
"resolved": "https://registry.npmmirror.com/inherits/-/inherits-2.0.4.tgz",
|
786 |
+
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
|
787 |
+
"license": "ISC"
|
788 |
+
},
|
789 |
+
"node_modules/inquirer": {
|
790 |
+
"version": "6.5.2",
|
791 |
+
"resolved": "https://registry.npmmirror.com/inquirer/-/inquirer-6.5.2.tgz",
|
792 |
+
"integrity": "sha512-cntlB5ghuB0iuO65Ovoi8ogLHiWGs/5yNrtUcKjFhSSiVeAIVpD7koaSU9RM8mpXw5YDi9RdYXGQMaOURB7ycQ==",
|
793 |
+
"license": "MIT",
|
794 |
+
"dependencies": {
|
795 |
+
"ansi-escapes": "^3.2.0",
|
796 |
+
"chalk": "^2.4.2",
|
797 |
+
"cli-cursor": "^2.1.0",
|
798 |
+
"cli-width": "^2.0.0",
|
799 |
+
"external-editor": "^3.0.3",
|
800 |
+
"figures": "^2.0.0",
|
801 |
+
"lodash": "^4.17.12",
|
802 |
+
"mute-stream": "0.0.7",
|
803 |
+
"run-async": "^2.2.0",
|
804 |
+
"rxjs": "^6.4.0",
|
805 |
+
"string-width": "^2.1.0",
|
806 |
+
"strip-ansi": "^5.1.0",
|
807 |
+
"through": "^2.3.6"
|
808 |
+
},
|
809 |
+
"engines": {
|
810 |
+
"node": ">=6.0.0"
|
811 |
+
}
|
812 |
+
},
|
813 |
+
"node_modules/ipaddr.js": {
|
814 |
+
"version": "1.9.1",
|
815 |
+
"resolved": "https://registry.npmmirror.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
|
816 |
+
"integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
|
817 |
+
"license": "MIT",
|
818 |
+
"engines": {
|
819 |
+
"node": ">= 0.10"
|
820 |
+
}
|
821 |
+
},
|
822 |
+
"node_modules/is-arrayish": {
|
823 |
+
"version": "0.3.2",
|
824 |
+
"resolved": "https://registry.npmmirror.com/is-arrayish/-/is-arrayish-0.3.2.tgz",
|
825 |
+
"integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==",
|
826 |
+
"license": "MIT"
|
827 |
+
},
|
828 |
+
"node_modules/is-fullwidth-code-point": {
|
829 |
+
"version": "2.0.0",
|
830 |
+
"resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
|
831 |
+
"integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==",
|
832 |
+
"license": "MIT",
|
833 |
+
"engines": {
|
834 |
+
"node": ">=4"
|
835 |
+
}
|
836 |
+
},
|
837 |
+
"node_modules/is-stream": {
|
838 |
+
"version": "2.0.1",
|
839 |
+
"resolved": "https://registry.npmmirror.com/is-stream/-/is-stream-2.0.1.tgz",
|
840 |
+
"integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",
|
841 |
+
"license": "MIT",
|
842 |
+
"engines": {
|
843 |
+
"node": ">=8"
|
844 |
+
},
|
845 |
+
"funding": {
|
846 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
847 |
+
}
|
848 |
+
},
|
849 |
+
"node_modules/is-wsl": {
|
850 |
+
"version": "1.1.0",
|
851 |
+
"resolved": "https://registry.npmmirror.com/is-wsl/-/is-wsl-1.1.0.tgz",
|
852 |
+
"integrity": "sha512-gfygJYZ2gLTDlmbWMI0CE2MwnFzSN/2SZfkMlItC4K/JBlsWVDB0bO6XhqcY13YXE7iMcAJnzTCJjPiTeJJ0Mw==",
|
853 |
+
"license": "MIT",
|
854 |
+
"engines": {
|
855 |
+
"node": ">=4"
|
856 |
+
}
|
857 |
+
},
|
858 |
+
"node_modules/kuler": {
|
859 |
+
"version": "2.0.0",
|
860 |
+
"resolved": "https://registry.npmmirror.com/kuler/-/kuler-2.0.0.tgz",
|
861 |
+
"integrity": "sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==",
|
862 |
+
"license": "MIT"
|
863 |
+
},
|
864 |
+
"node_modules/lodash": {
|
865 |
+
"version": "4.17.21",
|
866 |
+
"resolved": "https://registry.npmmirror.com/lodash/-/lodash-4.17.21.tgz",
|
867 |
+
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
|
868 |
+
"license": "MIT"
|
869 |
+
},
|
870 |
+
"node_modules/logform": {
|
871 |
+
"version": "2.6.1",
|
872 |
+
"resolved": "https://registry.npmmirror.com/logform/-/logform-2.6.1.tgz",
|
873 |
+
"integrity": "sha512-CdaO738xRapbKIMVn2m4F6KTj4j7ooJ8POVnebSgKo3KBz5axNXRAL7ZdRjIV6NOr2Uf4vjtRkxrFETOioCqSA==",
|
874 |
+
"license": "MIT",
|
875 |
+
"dependencies": {
|
876 |
+
"@colors/colors": "1.6.0",
|
877 |
+
"@types/triple-beam": "^1.3.2",
|
878 |
+
"fecha": "^4.2.0",
|
879 |
+
"ms": "^2.1.1",
|
880 |
+
"safe-stable-stringify": "^2.3.1",
|
881 |
+
"triple-beam": "^1.3.0"
|
882 |
+
},
|
883 |
+
"engines": {
|
884 |
+
"node": ">= 12.0.0"
|
885 |
+
}
|
886 |
+
},
|
887 |
+
"node_modules/media-typer": {
|
888 |
+
"version": "0.3.0",
|
889 |
+
"resolved": "https://registry.npmmirror.com/media-typer/-/media-typer-0.3.0.tgz",
|
890 |
+
"integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
|
891 |
+
"license": "MIT",
|
892 |
+
"engines": {
|
893 |
+
"node": ">= 0.6"
|
894 |
+
}
|
895 |
+
},
|
896 |
+
"node_modules/merge-descriptors": {
|
897 |
+
"version": "1.0.3",
|
898 |
+
"resolved": "https://registry.npmmirror.com/merge-descriptors/-/merge-descriptors-1.0.3.tgz",
|
899 |
+
"integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==",
|
900 |
+
"license": "MIT",
|
901 |
+
"funding": {
|
902 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
903 |
+
}
|
904 |
+
},
|
905 |
+
"node_modules/methods": {
|
906 |
+
"version": "1.1.2",
|
907 |
+
"resolved": "https://registry.npmmirror.com/methods/-/methods-1.1.2.tgz",
|
908 |
+
"integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
|
909 |
+
"license": "MIT",
|
910 |
+
"engines": {
|
911 |
+
"node": ">= 0.6"
|
912 |
+
}
|
913 |
+
},
|
914 |
+
"node_modules/mime": {
|
915 |
+
"version": "1.6.0",
|
916 |
+
"resolved": "https://registry.npmmirror.com/mime/-/mime-1.6.0.tgz",
|
917 |
+
"integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
|
918 |
+
"license": "MIT",
|
919 |
+
"bin": {
|
920 |
+
"mime": "cli.js"
|
921 |
+
},
|
922 |
+
"engines": {
|
923 |
+
"node": ">=4"
|
924 |
+
}
|
925 |
+
},
|
926 |
+
"node_modules/mime-db": {
|
927 |
+
"version": "1.52.0",
|
928 |
+
"resolved": "https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz",
|
929 |
+
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
|
930 |
+
"license": "MIT",
|
931 |
+
"engines": {
|
932 |
+
"node": ">= 0.6"
|
933 |
+
}
|
934 |
+
},
|
935 |
+
"node_modules/mime-types": {
|
936 |
+
"version": "2.1.35",
|
937 |
+
"resolved": "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz",
|
938 |
+
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
|
939 |
+
"license": "MIT",
|
940 |
+
"dependencies": {
|
941 |
+
"mime-db": "1.52.0"
|
942 |
+
},
|
943 |
+
"engines": {
|
944 |
+
"node": ">= 0.6"
|
945 |
+
}
|
946 |
+
},
|
947 |
+
"node_modules/mimic-fn": {
|
948 |
+
"version": "1.2.0",
|
949 |
+
"resolved": "https://registry.npmmirror.com/mimic-fn/-/mimic-fn-1.2.0.tgz",
|
950 |
+
"integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==",
|
951 |
+
"license": "MIT",
|
952 |
+
"engines": {
|
953 |
+
"node": ">=4"
|
954 |
+
}
|
955 |
+
},
|
956 |
+
"node_modules/minimist": {
|
957 |
+
"version": "1.2.8",
|
958 |
+
"resolved": "https://registry.npmmirror.com/minimist/-/minimist-1.2.8.tgz",
|
959 |
+
"integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
|
960 |
+
"license": "MIT",
|
961 |
+
"funding": {
|
962 |
+
"url": "https://github.com/sponsors/ljharb"
|
963 |
+
}
|
964 |
+
},
|
965 |
+
"node_modules/mkdirp": {
|
966 |
+
"version": "0.5.6",
|
967 |
+
"resolved": "https://registry.npmmirror.com/mkdirp/-/mkdirp-0.5.6.tgz",
|
968 |
+
"integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==",
|
969 |
+
"license": "MIT",
|
970 |
+
"dependencies": {
|
971 |
+
"minimist": "^1.2.6"
|
972 |
+
},
|
973 |
+
"bin": {
|
974 |
+
"mkdirp": "bin/cmd.js"
|
975 |
+
}
|
976 |
+
},
|
977 |
+
"node_modules/moviedb-promise": {
|
978 |
+
"version": "3.4.1",
|
979 |
+
"resolved": "https://registry.npmmirror.com/moviedb-promise/-/moviedb-promise-3.4.1.tgz",
|
980 |
+
"integrity": "sha512-TQe6ntr3Ws8w3wgEzk4Qb7/2nUNvbR7lfv9i58A19qfCad2G7esJoGpKV+xc0QCIDvPYslloM+e0KIpmJl3VCg==",
|
981 |
+
"license": "MIT",
|
982 |
+
"dependencies": {
|
983 |
+
"axios": "^0.26.1",
|
984 |
+
"lodash": "^4.17.21"
|
985 |
+
}
|
986 |
+
},
|
987 |
+
"node_modules/ms": {
|
988 |
+
"version": "2.1.3",
|
989 |
+
"resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz",
|
990 |
+
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
|
991 |
+
"license": "MIT"
|
992 |
+
},
|
993 |
+
"node_modules/mute-stream": {
|
994 |
+
"version": "0.0.7",
|
995 |
+
"resolved": "https://registry.npmmirror.com/mute-stream/-/mute-stream-0.0.7.tgz",
|
996 |
+
"integrity": "sha512-r65nCZhrbXXb6dXOACihYApHw2Q6pV0M3V0PSxd74N0+D8nzAdEAITq2oAjA1jVnKI+tGvEBUpqiMh0+rW6zDQ==",
|
997 |
+
"license": "ISC"
|
998 |
+
},
|
999 |
+
"node_modules/negotiator": {
|
1000 |
+
"version": "0.6.3",
|
1001 |
+
"resolved": "https://registry.npmmirror.com/negotiator/-/negotiator-0.6.3.tgz",
|
1002 |
+
"integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
|
1003 |
+
"license": "MIT",
|
1004 |
+
"engines": {
|
1005 |
+
"node": ">= 0.6"
|
1006 |
+
}
|
1007 |
+
},
|
1008 |
+
"node_modules/node-fetch": {
|
1009 |
+
"version": "2.7.0",
|
1010 |
+
"resolved": "https://registry.npmmirror.com/node-fetch/-/node-fetch-2.7.0.tgz",
|
1011 |
+
"integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
|
1012 |
+
"license": "MIT",
|
1013 |
+
"dependencies": {
|
1014 |
+
"whatwg-url": "^5.0.0"
|
1015 |
+
},
|
1016 |
+
"engines": {
|
1017 |
+
"node": "4.x || >=6.0.0"
|
1018 |
+
},
|
1019 |
+
"peerDependencies": {
|
1020 |
+
"encoding": "^0.1.0"
|
1021 |
+
},
|
1022 |
+
"peerDependenciesMeta": {
|
1023 |
+
"encoding": {
|
1024 |
+
"optional": true
|
1025 |
+
}
|
1026 |
+
}
|
1027 |
+
},
|
1028 |
+
"node_modules/object-assign": {
|
1029 |
+
"version": "4.1.1",
|
1030 |
+
"resolved": "https://registry.npmmirror.com/object-assign/-/object-assign-4.1.1.tgz",
|
1031 |
+
"integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
|
1032 |
+
"license": "MIT",
|
1033 |
+
"engines": {
|
1034 |
+
"node": ">=0.10.0"
|
1035 |
+
}
|
1036 |
+
},
|
1037 |
+
"node_modules/object-inspect": {
|
1038 |
+
"version": "1.13.3",
|
1039 |
+
"resolved": "https://registry.npmmirror.com/object-inspect/-/object-inspect-1.13.3.tgz",
|
1040 |
+
"integrity": "sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA==",
|
1041 |
+
"license": "MIT",
|
1042 |
+
"engines": {
|
1043 |
+
"node": ">= 0.4"
|
1044 |
+
},
|
1045 |
+
"funding": {
|
1046 |
+
"url": "https://github.com/sponsors/ljharb"
|
1047 |
+
}
|
1048 |
+
},
|
1049 |
+
"node_modules/on-finished": {
|
1050 |
+
"version": "2.4.1",
|
1051 |
+
"resolved": "https://registry.npmmirror.com/on-finished/-/on-finished-2.4.1.tgz",
|
1052 |
+
"integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
|
1053 |
+
"license": "MIT",
|
1054 |
+
"dependencies": {
|
1055 |
+
"ee-first": "1.1.1"
|
1056 |
+
},
|
1057 |
+
"engines": {
|
1058 |
+
"node": ">= 0.8"
|
1059 |
+
}
|
1060 |
+
},
|
1061 |
+
"node_modules/one-time": {
|
1062 |
+
"version": "1.0.0",
|
1063 |
+
"resolved": "https://registry.npmmirror.com/one-time/-/one-time-1.0.0.tgz",
|
1064 |
+
"integrity": "sha512-5DXOiRKwuSEcQ/l0kGCF6Q3jcADFv5tSmRaJck/OqkVFcOzutB134KRSfF0xDrL39MNnqxbHBbUUcjZIhTgb2g==",
|
1065 |
+
"license": "MIT",
|
1066 |
+
"dependencies": {
|
1067 |
+
"fn.name": "1.x.x"
|
1068 |
+
}
|
1069 |
+
},
|
1070 |
+
"node_modules/onetime": {
|
1071 |
+
"version": "2.0.1",
|
1072 |
+
"resolved": "https://registry.npmmirror.com/onetime/-/onetime-2.0.1.tgz",
|
1073 |
+
"integrity": "sha512-oyyPpiMaKARvvcgip+JV+7zci5L8D1W9RZIz2l1o08AM3pfspitVWnPt3mzHcBPp12oYMTy0pqrFs/C+m3EwsQ==",
|
1074 |
+
"license": "MIT",
|
1075 |
+
"dependencies": {
|
1076 |
+
"mimic-fn": "^1.0.0"
|
1077 |
+
},
|
1078 |
+
"engines": {
|
1079 |
+
"node": ">=4"
|
1080 |
+
}
|
1081 |
+
},
|
1082 |
+
"node_modules/opn": {
|
1083 |
+
"version": "5.5.0",
|
1084 |
+
"resolved": "https://registry.npmmirror.com/opn/-/opn-5.5.0.tgz",
|
1085 |
+
"integrity": "sha512-PqHpggC9bLV0VeWcdKhkpxY+3JTzetLSqTCWL/z/tFIbI6G8JCjondXklT1JinczLz2Xib62sSp0T/gKT4KksA==",
|
1086 |
+
"license": "MIT",
|
1087 |
+
"dependencies": {
|
1088 |
+
"is-wsl": "^1.1.0"
|
1089 |
+
},
|
1090 |
+
"engines": {
|
1091 |
+
"node": ">=4"
|
1092 |
+
}
|
1093 |
+
},
|
1094 |
+
"node_modules/os-tmpdir": {
|
1095 |
+
"version": "1.0.2",
|
1096 |
+
"resolved": "https://registry.npmmirror.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
|
1097 |
+
"integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==",
|
1098 |
+
"license": "MIT",
|
1099 |
+
"engines": {
|
1100 |
+
"node": ">=0.10.0"
|
1101 |
+
}
|
1102 |
+
},
|
1103 |
+
"node_modules/parseurl": {
|
1104 |
+
"version": "1.3.3",
|
1105 |
+
"resolved": "https://registry.npmmirror.com/parseurl/-/parseurl-1.3.3.tgz",
|
1106 |
+
"integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
|
1107 |
+
"license": "MIT",
|
1108 |
+
"engines": {
|
1109 |
+
"node": ">= 0.8"
|
1110 |
+
}
|
1111 |
+
},
|
1112 |
+
"node_modules/path-to-regexp": {
|
1113 |
+
"version": "0.1.10",
|
1114 |
+
"resolved": "https://registry.npmmirror.com/path-to-regexp/-/path-to-regexp-0.1.10.tgz",
|
1115 |
+
"integrity": "sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w==",
|
1116 |
+
"license": "MIT"
|
1117 |
+
},
|
1118 |
+
"node_modules/process": {
|
1119 |
+
"version": "0.11.10",
|
1120 |
+
"resolved": "https://registry.npmmirror.com/process/-/process-0.11.10.tgz",
|
1121 |
+
"integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==",
|
1122 |
+
"license": "MIT",
|
1123 |
+
"engines": {
|
1124 |
+
"node": ">= 0.6.0"
|
1125 |
+
}
|
1126 |
+
},
|
1127 |
+
"node_modules/proxy-addr": {
|
1128 |
+
"version": "2.0.7",
|
1129 |
+
"resolved": "https://registry.npmmirror.com/proxy-addr/-/proxy-addr-2.0.7.tgz",
|
1130 |
+
"integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
|
1131 |
+
"license": "MIT",
|
1132 |
+
"dependencies": {
|
1133 |
+
"forwarded": "0.2.0",
|
1134 |
+
"ipaddr.js": "1.9.1"
|
1135 |
+
},
|
1136 |
+
"engines": {
|
1137 |
+
"node": ">= 0.10"
|
1138 |
+
}
|
1139 |
+
},
|
1140 |
+
"node_modules/qs": {
|
1141 |
+
"version": "6.13.0",
|
1142 |
+
"resolved": "https://registry.npmmirror.com/qs/-/qs-6.13.0.tgz",
|
1143 |
+
"integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==",
|
1144 |
+
"license": "BSD-3-Clause",
|
1145 |
+
"dependencies": {
|
1146 |
+
"side-channel": "^1.0.6"
|
1147 |
+
},
|
1148 |
+
"engines": {
|
1149 |
+
"node": ">=0.6"
|
1150 |
+
},
|
1151 |
+
"funding": {
|
1152 |
+
"url": "https://github.com/sponsors/ljharb"
|
1153 |
+
}
|
1154 |
+
},
|
1155 |
+
"node_modules/range-parser": {
|
1156 |
+
"version": "1.2.1",
|
1157 |
+
"resolved": "https://registry.npmmirror.com/range-parser/-/range-parser-1.2.1.tgz",
|
1158 |
+
"integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
|
1159 |
+
"license": "MIT",
|
1160 |
+
"engines": {
|
1161 |
+
"node": ">= 0.6"
|
1162 |
+
}
|
1163 |
+
},
|
1164 |
+
"node_modules/raw-body": {
|
1165 |
+
"version": "2.5.2",
|
1166 |
+
"resolved": "https://registry.npmmirror.com/raw-body/-/raw-body-2.5.2.tgz",
|
1167 |
+
"integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==",
|
1168 |
+
"license": "MIT",
|
1169 |
+
"dependencies": {
|
1170 |
+
"bytes": "3.1.2",
|
1171 |
+
"http-errors": "2.0.0",
|
1172 |
+
"iconv-lite": "0.4.24",
|
1173 |
+
"unpipe": "1.0.0"
|
1174 |
+
},
|
1175 |
+
"engines": {
|
1176 |
+
"node": ">= 0.8"
|
1177 |
+
}
|
1178 |
+
},
|
1179 |
+
"node_modules/readable-stream": {
|
1180 |
+
"version": "3.6.2",
|
1181 |
+
"resolved": "https://registry.npmmirror.com/readable-stream/-/readable-stream-3.6.2.tgz",
|
1182 |
+
"integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
|
1183 |
+
"license": "MIT",
|
1184 |
+
"dependencies": {
|
1185 |
+
"inherits": "^2.0.3",
|
1186 |
+
"string_decoder": "^1.1.1",
|
1187 |
+
"util-deprecate": "^1.0.1"
|
1188 |
+
},
|
1189 |
+
"engines": {
|
1190 |
+
"node": ">= 6"
|
1191 |
+
}
|
1192 |
+
},
|
1193 |
+
"node_modules/restore-cursor": {
|
1194 |
+
"version": "2.0.0",
|
1195 |
+
"resolved": "https://registry.npmmirror.com/restore-cursor/-/restore-cursor-2.0.0.tgz",
|
1196 |
+
"integrity": "sha512-6IzJLuGi4+R14vwagDHX+JrXmPVtPpn4mffDJ1UdR7/Edm87fl6yi8mMBIVvFtJaNTUvjughmW4hwLhRG7gC1Q==",
|
1197 |
+
"license": "MIT",
|
1198 |
+
"dependencies": {
|
1199 |
+
"onetime": "^2.0.0",
|
1200 |
+
"signal-exit": "^3.0.2"
|
1201 |
+
},
|
1202 |
+
"engines": {
|
1203 |
+
"node": ">=4"
|
1204 |
+
}
|
1205 |
+
},
|
1206 |
+
"node_modules/router": {
|
1207 |
+
"version": "1.3.8",
|
1208 |
+
"resolved": "https://registry.npmmirror.com/router/-/router-1.3.8.tgz",
|
1209 |
+
"integrity": "sha512-461UFH44NtSfIlS83PUg2N7OZo86BC/kB3dY77gJdsODsBhhw7+2uE0tzTINxrY9CahCUVk1VhpWCA5i1yoIEg==",
|
1210 |
+
"license": "MIT",
|
1211 |
+
"dependencies": {
|
1212 |
+
"array-flatten": "3.0.0",
|
1213 |
+
"debug": "2.6.9",
|
1214 |
+
"methods": "~1.1.2",
|
1215 |
+
"parseurl": "~1.3.3",
|
1216 |
+
"path-to-regexp": "0.1.7",
|
1217 |
+
"setprototypeof": "1.2.0",
|
1218 |
+
"utils-merge": "1.0.1"
|
1219 |
+
},
|
1220 |
+
"engines": {
|
1221 |
+
"node": ">= 0.8"
|
1222 |
+
}
|
1223 |
+
},
|
1224 |
+
"node_modules/router/node_modules/array-flatten": {
|
1225 |
+
"version": "3.0.0",
|
1226 |
+
"resolved": "https://registry.npmmirror.com/array-flatten/-/array-flatten-3.0.0.tgz",
|
1227 |
+
"integrity": "sha512-zPMVc3ZYlGLNk4mpK1NzP2wg0ml9t7fUgDsayR5Y5rSzxQilzR9FGu/EH2jQOcKSAeAfWeylyW8juy3OkWRvNA==",
|
1228 |
+
"license": "MIT"
|
1229 |
+
},
|
1230 |
+
"node_modules/router/node_modules/path-to-regexp": {
|
1231 |
+
"version": "0.1.7",
|
1232 |
+
"resolved": "https://registry.npmmirror.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
|
1233 |
+
"integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==",
|
1234 |
+
"license": "MIT"
|
1235 |
+
},
|
1236 |
+
"node_modules/run-async": {
|
1237 |
+
"version": "2.4.1",
|
1238 |
+
"resolved": "https://registry.npmmirror.com/run-async/-/run-async-2.4.1.tgz",
|
1239 |
+
"integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==",
|
1240 |
+
"license": "MIT",
|
1241 |
+
"engines": {
|
1242 |
+
"node": ">=0.12.0"
|
1243 |
+
}
|
1244 |
+
},
|
1245 |
+
"node_modules/rxjs": {
|
1246 |
+
"version": "6.6.7",
|
1247 |
+
"resolved": "https://registry.npmmirror.com/rxjs/-/rxjs-6.6.7.tgz",
|
1248 |
+
"integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
|
1249 |
+
"license": "Apache-2.0",
|
1250 |
+
"dependencies": {
|
1251 |
+
"tslib": "^1.9.0"
|
1252 |
+
},
|
1253 |
+
"engines": {
|
1254 |
+
"npm": ">=2.0.0"
|
1255 |
+
}
|
1256 |
+
},
|
1257 |
+
"node_modules/safe-buffer": {
|
1258 |
+
"version": "5.2.1",
|
1259 |
+
"resolved": "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
1260 |
+
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
|
1261 |
+
"funding": [
|
1262 |
+
{
|
1263 |
+
"type": "github",
|
1264 |
+
"url": "https://github.com/sponsors/feross"
|
1265 |
+
},
|
1266 |
+
{
|
1267 |
+
"type": "patreon",
|
1268 |
+
"url": "https://www.patreon.com/feross"
|
1269 |
+
},
|
1270 |
+
{
|
1271 |
+
"type": "consulting",
|
1272 |
+
"url": "https://feross.org/support"
|
1273 |
+
}
|
1274 |
+
],
|
1275 |
+
"license": "MIT"
|
1276 |
+
},
|
1277 |
+
"node_modules/safe-stable-stringify": {
|
1278 |
+
"version": "2.5.0",
|
1279 |
+
"resolved": "https://registry.npmmirror.com/safe-stable-stringify/-/safe-stable-stringify-2.5.0.tgz",
|
1280 |
+
"integrity": "sha512-b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA==",
|
1281 |
+
"license": "MIT",
|
1282 |
+
"engines": {
|
1283 |
+
"node": ">=10"
|
1284 |
+
}
|
1285 |
+
},
|
1286 |
+
"node_modules/safer-buffer": {
|
1287 |
+
"version": "2.1.2",
|
1288 |
+
"resolved": "https://registry.npmmirror.com/safer-buffer/-/safer-buffer-2.1.2.tgz",
|
1289 |
+
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
|
1290 |
+
"license": "MIT"
|
1291 |
+
},
|
1292 |
+
"node_modules/semver": {
|
1293 |
+
"version": "5.7.2",
|
1294 |
+
"resolved": "https://registry.npmmirror.com/semver/-/semver-5.7.2.tgz",
|
1295 |
+
"integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==",
|
1296 |
+
"license": "ISC",
|
1297 |
+
"bin": {
|
1298 |
+
"semver": "bin/semver"
|
1299 |
+
}
|
1300 |
+
},
|
1301 |
+
"node_modules/send": {
|
1302 |
+
"version": "0.19.0",
|
1303 |
+
"resolved": "https://registry.npmmirror.com/send/-/send-0.19.0.tgz",
|
1304 |
+
"integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==",
|
1305 |
+
"license": "MIT",
|
1306 |
+
"dependencies": {
|
1307 |
+
"debug": "2.6.9",
|
1308 |
+
"depd": "2.0.0",
|
1309 |
+
"destroy": "1.2.0",
|
1310 |
+
"encodeurl": "~1.0.2",
|
1311 |
+
"escape-html": "~1.0.3",
|
1312 |
+
"etag": "~1.8.1",
|
1313 |
+
"fresh": "0.5.2",
|
1314 |
+
"http-errors": "2.0.0",
|
1315 |
+
"mime": "1.6.0",
|
1316 |
+
"ms": "2.1.3",
|
1317 |
+
"on-finished": "2.4.1",
|
1318 |
+
"range-parser": "~1.2.1",
|
1319 |
+
"statuses": "2.0.1"
|
1320 |
+
},
|
1321 |
+
"engines": {
|
1322 |
+
"node": ">= 0.8.0"
|
1323 |
+
}
|
1324 |
+
},
|
1325 |
+
"node_modules/send/node_modules/encodeurl": {
|
1326 |
+
"version": "1.0.2",
|
1327 |
+
"resolved": "https://registry.npmmirror.com/encodeurl/-/encodeurl-1.0.2.tgz",
|
1328 |
+
"integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",
|
1329 |
+
"license": "MIT",
|
1330 |
+
"engines": {
|
1331 |
+
"node": ">= 0.8"
|
1332 |
+
}
|
1333 |
+
},
|
1334 |
+
"node_modules/serve-static": {
|
1335 |
+
"version": "1.16.2",
|
1336 |
+
"resolved": "https://registry.npmmirror.com/serve-static/-/serve-static-1.16.2.tgz",
|
1337 |
+
"integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==",
|
1338 |
+
"license": "MIT",
|
1339 |
+
"dependencies": {
|
1340 |
+
"encodeurl": "~2.0.0",
|
1341 |
+
"escape-html": "~1.0.3",
|
1342 |
+
"parseurl": "~1.3.3",
|
1343 |
+
"send": "0.19.0"
|
1344 |
+
},
|
1345 |
+
"engines": {
|
1346 |
+
"node": ">= 0.8.0"
|
1347 |
+
}
|
1348 |
+
},
|
1349 |
+
"node_modules/set-function-length": {
|
1350 |
+
"version": "1.2.2",
|
1351 |
+
"resolved": "https://registry.npmmirror.com/set-function-length/-/set-function-length-1.2.2.tgz",
|
1352 |
+
"integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==",
|
1353 |
+
"license": "MIT",
|
1354 |
+
"dependencies": {
|
1355 |
+
"define-data-property": "^1.1.4",
|
1356 |
+
"es-errors": "^1.3.0",
|
1357 |
+
"function-bind": "^1.1.2",
|
1358 |
+
"get-intrinsic": "^1.2.4",
|
1359 |
+
"gopd": "^1.0.1",
|
1360 |
+
"has-property-descriptors": "^1.0.2"
|
1361 |
+
},
|
1362 |
+
"engines": {
|
1363 |
+
"node": ">= 0.4"
|
1364 |
+
}
|
1365 |
+
},
|
1366 |
+
"node_modules/setprototypeof": {
|
1367 |
+
"version": "1.2.0",
|
1368 |
+
"resolved": "https://registry.npmmirror.com/setprototypeof/-/setprototypeof-1.2.0.tgz",
|
1369 |
+
"integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
|
1370 |
+
"license": "ISC"
|
1371 |
+
},
|
1372 |
+
"node_modules/side-channel": {
|
1373 |
+
"version": "1.0.6",
|
1374 |
+
"resolved": "https://registry.npmmirror.com/side-channel/-/side-channel-1.0.6.tgz",
|
1375 |
+
"integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==",
|
1376 |
+
"license": "MIT",
|
1377 |
+
"dependencies": {
|
1378 |
+
"call-bind": "^1.0.7",
|
1379 |
+
"es-errors": "^1.3.0",
|
1380 |
+
"get-intrinsic": "^1.2.4",
|
1381 |
+
"object-inspect": "^1.13.1"
|
1382 |
+
},
|
1383 |
+
"engines": {
|
1384 |
+
"node": ">= 0.4"
|
1385 |
+
},
|
1386 |
+
"funding": {
|
1387 |
+
"url": "https://github.com/sponsors/ljharb"
|
1388 |
+
}
|
1389 |
+
},
|
1390 |
+
"node_modules/signal-exit": {
|
1391 |
+
"version": "3.0.7",
|
1392 |
+
"resolved": "https://registry.npmmirror.com/signal-exit/-/signal-exit-3.0.7.tgz",
|
1393 |
+
"integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
|
1394 |
+
"license": "ISC"
|
1395 |
+
},
|
1396 |
+
"node_modules/simple-swizzle": {
|
1397 |
+
"version": "0.2.2",
|
1398 |
+
"resolved": "https://registry.npmmirror.com/simple-swizzle/-/simple-swizzle-0.2.2.tgz",
|
1399 |
+
"integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==",
|
1400 |
+
"license": "MIT",
|
1401 |
+
"dependencies": {
|
1402 |
+
"is-arrayish": "^0.3.1"
|
1403 |
+
}
|
1404 |
+
},
|
1405 |
+
"node_modules/stack-trace": {
|
1406 |
+
"version": "0.0.10",
|
1407 |
+
"resolved": "https://registry.npmmirror.com/stack-trace/-/stack-trace-0.0.10.tgz",
|
1408 |
+
"integrity": "sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg==",
|
1409 |
+
"license": "MIT",
|
1410 |
+
"engines": {
|
1411 |
+
"node": "*"
|
1412 |
+
}
|
1413 |
+
},
|
1414 |
+
"node_modules/statuses": {
|
1415 |
+
"version": "2.0.1",
|
1416 |
+
"resolved": "https://registry.npmmirror.com/statuses/-/statuses-2.0.1.tgz",
|
1417 |
+
"integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
|
1418 |
+
"license": "MIT",
|
1419 |
+
"engines": {
|
1420 |
+
"node": ">= 0.8"
|
1421 |
+
}
|
1422 |
+
},
|
1423 |
+
"node_modules/stremio-addon-linter": {
|
1424 |
+
"version": "1.7.0",
|
1425 |
+
"resolved": "https://registry.npmmirror.com/stremio-addon-linter/-/stremio-addon-linter-1.7.0.tgz",
|
1426 |
+
"integrity": "sha512-ck1L1Wp2qvAhvXLj+4Lq1XRn8K3r2gx1i/f+e1W6K0+Et/oIYYDmaIVoh3SvExiNbCBcbJjH9WWEeDYKoqaMqQ==",
|
1427 |
+
"license": "MIT",
|
1428 |
+
"dependencies": {
|
1429 |
+
"semver": "^5.5.0"
|
1430 |
+
}
|
1431 |
+
},
|
1432 |
+
"node_modules/stremio-addon-sdk": {
|
1433 |
+
"version": "1.6.10",
|
1434 |
+
"resolved": "https://registry.npmmirror.com/stremio-addon-sdk/-/stremio-addon-sdk-1.6.10.tgz",
|
1435 |
+
"integrity": "sha512-+U/lDGv73JPZa7OOy8eMb+SkUFhnHuZGBRXuKNeXcz706oDdwC/sQe9r8Wxw2A7Cw05+f/CQIJSl4zIcmKBkGg==",
|
1436 |
+
"license": "MIT",
|
1437 |
+
"dependencies": {
|
1438 |
+
"chalk": "^2.4.2",
|
1439 |
+
"cors": "^2.8.4",
|
1440 |
+
"express": "^4.16.3",
|
1441 |
+
"inquirer": "^6.2.2",
|
1442 |
+
"mkdirp": "^0.5.1",
|
1443 |
+
"node-fetch": "^2.3.0",
|
1444 |
+
"opn": "^5.4.0",
|
1445 |
+
"router": "^1.3.3",
|
1446 |
+
"stremio-addon-linter": "^1.7.0"
|
1447 |
+
},
|
1448 |
+
"bin": {
|
1449 |
+
"addon-bootstrap": "cli/bootstrap.js"
|
1450 |
+
}
|
1451 |
+
},
|
1452 |
+
"node_modules/string_decoder": {
|
1453 |
+
"version": "1.3.0",
|
1454 |
+
"resolved": "https://registry.npmmirror.com/string_decoder/-/string_decoder-1.3.0.tgz",
|
1455 |
+
"integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
|
1456 |
+
"license": "MIT",
|
1457 |
+
"dependencies": {
|
1458 |
+
"safe-buffer": "~5.2.0"
|
1459 |
+
}
|
1460 |
+
},
|
1461 |
+
"node_modules/string-width": {
|
1462 |
+
"version": "2.1.1",
|
1463 |
+
"resolved": "https://registry.npmmirror.com/string-width/-/string-width-2.1.1.tgz",
|
1464 |
+
"integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==",
|
1465 |
+
"license": "MIT",
|
1466 |
+
"dependencies": {
|
1467 |
+
"is-fullwidth-code-point": "^2.0.0",
|
1468 |
+
"strip-ansi": "^4.0.0"
|
1469 |
+
},
|
1470 |
+
"engines": {
|
1471 |
+
"node": ">=4"
|
1472 |
+
}
|
1473 |
+
},
|
1474 |
+
"node_modules/string-width/node_modules/ansi-regex": {
|
1475 |
+
"version": "3.0.1",
|
1476 |
+
"resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-3.0.1.tgz",
|
1477 |
+
"integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==",
|
1478 |
+
"license": "MIT",
|
1479 |
+
"engines": {
|
1480 |
+
"node": ">=4"
|
1481 |
+
}
|
1482 |
+
},
|
1483 |
+
"node_modules/string-width/node_modules/strip-ansi": {
|
1484 |
+
"version": "4.0.0",
|
1485 |
+
"resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-4.0.0.tgz",
|
1486 |
+
"integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==",
|
1487 |
+
"license": "MIT",
|
1488 |
+
"dependencies": {
|
1489 |
+
"ansi-regex": "^3.0.0"
|
1490 |
+
},
|
1491 |
+
"engines": {
|
1492 |
+
"node": ">=4"
|
1493 |
+
}
|
1494 |
+
},
|
1495 |
+
"node_modules/strip-ansi": {
|
1496 |
+
"version": "5.2.0",
|
1497 |
+
"resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-5.2.0.tgz",
|
1498 |
+
"integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==",
|
1499 |
+
"license": "MIT",
|
1500 |
+
"dependencies": {
|
1501 |
+
"ansi-regex": "^4.1.0"
|
1502 |
+
},
|
1503 |
+
"engines": {
|
1504 |
+
"node": ">=6"
|
1505 |
+
}
|
1506 |
+
},
|
1507 |
+
"node_modules/supports-color": {
|
1508 |
+
"version": "5.5.0",
|
1509 |
+
"resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-5.5.0.tgz",
|
1510 |
+
"integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
|
1511 |
+
"license": "MIT",
|
1512 |
+
"dependencies": {
|
1513 |
+
"has-flag": "^3.0.0"
|
1514 |
+
},
|
1515 |
+
"engines": {
|
1516 |
+
"node": ">=4"
|
1517 |
+
}
|
1518 |
+
},
|
1519 |
+
"node_modules/text-hex": {
|
1520 |
+
"version": "1.0.0",
|
1521 |
+
"resolved": "https://registry.npmmirror.com/text-hex/-/text-hex-1.0.0.tgz",
|
1522 |
+
"integrity": "sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg==",
|
1523 |
+
"license": "MIT"
|
1524 |
+
},
|
1525 |
+
"node_modules/through": {
|
1526 |
+
"version": "2.3.8",
|
1527 |
+
"resolved": "https://registry.npmmirror.com/through/-/through-2.3.8.tgz",
|
1528 |
+
"integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==",
|
1529 |
+
"license": "MIT"
|
1530 |
+
},
|
1531 |
+
"node_modules/tmp": {
|
1532 |
+
"version": "0.0.33",
|
1533 |
+
"resolved": "https://registry.npmmirror.com/tmp/-/tmp-0.0.33.tgz",
|
1534 |
+
"integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==",
|
1535 |
+
"license": "MIT",
|
1536 |
+
"dependencies": {
|
1537 |
+
"os-tmpdir": "~1.0.2"
|
1538 |
+
},
|
1539 |
+
"engines": {
|
1540 |
+
"node": ">=0.6.0"
|
1541 |
+
}
|
1542 |
+
},
|
1543 |
+
"node_modules/toidentifier": {
|
1544 |
+
"version": "1.0.1",
|
1545 |
+
"resolved": "https://registry.npmmirror.com/toidentifier/-/toidentifier-1.0.1.tgz",
|
1546 |
+
"integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
|
1547 |
+
"license": "MIT",
|
1548 |
+
"engines": {
|
1549 |
+
"node": ">=0.6"
|
1550 |
+
}
|
1551 |
+
},
|
1552 |
+
"node_modules/tr46": {
|
1553 |
+
"version": "0.0.3",
|
1554 |
+
"resolved": "https://registry.npmmirror.com/tr46/-/tr46-0.0.3.tgz",
|
1555 |
+
"integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",
|
1556 |
+
"license": "MIT"
|
1557 |
+
},
|
1558 |
+
"node_modules/triple-beam": {
|
1559 |
+
"version": "1.4.1",
|
1560 |
+
"resolved": "https://registry.npmmirror.com/triple-beam/-/triple-beam-1.4.1.tgz",
|
1561 |
+
"integrity": "sha512-aZbgViZrg1QNcG+LULa7nhZpJTZSLm/mXnHXnbAbjmN5aSa0y7V+wvv6+4WaBtpISJzThKy+PIPxc1Nq1EJ9mg==",
|
1562 |
+
"license": "MIT",
|
1563 |
+
"engines": {
|
1564 |
+
"node": ">= 14.0.0"
|
1565 |
+
}
|
1566 |
+
},
|
1567 |
+
"node_modules/tslib": {
|
1568 |
+
"version": "1.14.1",
|
1569 |
+
"resolved": "https://registry.npmmirror.com/tslib/-/tslib-1.14.1.tgz",
|
1570 |
+
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
|
1571 |
+
"license": "0BSD"
|
1572 |
+
},
|
1573 |
+
"node_modules/type-is": {
|
1574 |
+
"version": "1.6.18",
|
1575 |
+
"resolved": "https://registry.npmmirror.com/type-is/-/type-is-1.6.18.tgz",
|
1576 |
+
"integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
|
1577 |
+
"license": "MIT",
|
1578 |
+
"dependencies": {
|
1579 |
+
"media-typer": "0.3.0",
|
1580 |
+
"mime-types": "~2.1.24"
|
1581 |
+
},
|
1582 |
+
"engines": {
|
1583 |
+
"node": ">= 0.6"
|
1584 |
+
}
|
1585 |
+
},
|
1586 |
+
"node_modules/unpipe": {
|
1587 |
+
"version": "1.0.0",
|
1588 |
+
"resolved": "https://registry.npmmirror.com/unpipe/-/unpipe-1.0.0.tgz",
|
1589 |
+
"integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
|
1590 |
+
"license": "MIT",
|
1591 |
+
"engines": {
|
1592 |
+
"node": ">= 0.8"
|
1593 |
+
}
|
1594 |
+
},
|
1595 |
+
"node_modules/util-deprecate": {
|
1596 |
+
"version": "1.0.2",
|
1597 |
+
"resolved": "https://registry.npmmirror.com/util-deprecate/-/util-deprecate-1.0.2.tgz",
|
1598 |
+
"integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
|
1599 |
+
"license": "MIT"
|
1600 |
+
},
|
1601 |
+
"node_modules/utils-merge": {
|
1602 |
+
"version": "1.0.1",
|
1603 |
+
"resolved": "https://registry.npmmirror.com/utils-merge/-/utils-merge-1.0.1.tgz",
|
1604 |
+
"integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
|
1605 |
+
"license": "MIT",
|
1606 |
+
"engines": {
|
1607 |
+
"node": ">= 0.4.0"
|
1608 |
+
}
|
1609 |
+
},
|
1610 |
+
"node_modules/vary": {
|
1611 |
+
"version": "1.1.2",
|
1612 |
+
"resolved": "https://registry.npmmirror.com/vary/-/vary-1.1.2.tgz",
|
1613 |
+
"integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
|
1614 |
+
"license": "MIT",
|
1615 |
+
"engines": {
|
1616 |
+
"node": ">= 0.8"
|
1617 |
+
}
|
1618 |
+
},
|
1619 |
+
"node_modules/webidl-conversions": {
|
1620 |
+
"version": "3.0.1",
|
1621 |
+
"resolved": "https://registry.npmmirror.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
|
1622 |
+
"integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==",
|
1623 |
+
"license": "BSD-2-Clause"
|
1624 |
+
},
|
1625 |
+
"node_modules/whatwg-url": {
|
1626 |
+
"version": "5.0.0",
|
1627 |
+
"resolved": "https://registry.npmmirror.com/whatwg-url/-/whatwg-url-5.0.0.tgz",
|
1628 |
+
"integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
|
1629 |
+
"license": "MIT",
|
1630 |
+
"dependencies": {
|
1631 |
+
"tr46": "~0.0.3",
|
1632 |
+
"webidl-conversions": "^3.0.0"
|
1633 |
+
}
|
1634 |
+
},
|
1635 |
+
"node_modules/winston": {
|
1636 |
+
"version": "3.16.0",
|
1637 |
+
"resolved": "https://registry.npmmirror.com/winston/-/winston-3.16.0.tgz",
|
1638 |
+
"integrity": "sha512-xz7+cyGN5M+4CmmD4Npq1/4T+UZaz7HaeTlAruFUTjk79CNMq+P6H30vlE4z0qfqJ01VHYQwd7OZo03nYm/+lg==",
|
1639 |
+
"license": "MIT",
|
1640 |
+
"dependencies": {
|
1641 |
+
"@colors/colors": "^1.6.0",
|
1642 |
+
"@dabh/diagnostics": "^2.0.2",
|
1643 |
+
"async": "^3.2.3",
|
1644 |
+
"is-stream": "^2.0.0",
|
1645 |
+
"logform": "^2.6.0",
|
1646 |
+
"one-time": "^1.0.0",
|
1647 |
+
"readable-stream": "^3.4.0",
|
1648 |
+
"safe-stable-stringify": "^2.3.1",
|
1649 |
+
"stack-trace": "0.0.x",
|
1650 |
+
"triple-beam": "^1.3.0",
|
1651 |
+
"winston-transport": "^4.7.0"
|
1652 |
+
},
|
1653 |
+
"engines": {
|
1654 |
+
"node": ">= 12.0.0"
|
1655 |
+
}
|
1656 |
+
},
|
1657 |
+
"node_modules/winston-transport": {
|
1658 |
+
"version": "4.8.0",
|
1659 |
+
"resolved": "https://registry.npmmirror.com/winston-transport/-/winston-transport-4.8.0.tgz",
|
1660 |
+
"integrity": "sha512-qxSTKswC6llEMZKgCQdaWgDuMJQnhuvF5f2Nk3SNXc4byfQ+voo2mX1Px9dkNOuR8p0KAjfPG29PuYUSIb+vSA==",
|
1661 |
+
"license": "MIT",
|
1662 |
+
"dependencies": {
|
1663 |
+
"logform": "^2.6.1",
|
1664 |
+
"readable-stream": "^4.5.2",
|
1665 |
+
"triple-beam": "^1.3.0"
|
1666 |
+
},
|
1667 |
+
"engines": {
|
1668 |
+
"node": ">= 12.0.0"
|
1669 |
+
}
|
1670 |
+
},
|
1671 |
+
"node_modules/winston-transport/node_modules/readable-stream": {
|
1672 |
+
"version": "4.5.2",
|
1673 |
+
"resolved": "https://registry.npmmirror.com/readable-stream/-/readable-stream-4.5.2.tgz",
|
1674 |
+
"integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==",
|
1675 |
+
"license": "MIT",
|
1676 |
+
"dependencies": {
|
1677 |
+
"abort-controller": "^3.0.0",
|
1678 |
+
"buffer": "^6.0.3",
|
1679 |
+
"events": "^3.3.0",
|
1680 |
+
"process": "^0.11.10",
|
1681 |
+
"string_decoder": "^1.3.0"
|
1682 |
+
},
|
1683 |
+
"engines": {
|
1684 |
+
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
1685 |
+
}
|
1686 |
+
}
|
1687 |
+
}
|
1688 |
+
}
|
package.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "easynews-stremio-addon",
|
3 |
+
"version": "1.0.0",
|
4 |
+
"description": "Stremio addon for Easynews",
|
5 |
+
"main": "server.js",
|
6 |
+
"scripts": {
|
7 |
+
"start": "node server.js"
|
8 |
+
},
|
9 |
+
"dependencies": {
|
10 |
+
"dotenv": "^16.4.5",
|
11 |
+
"express": "^4.17.1",
|
12 |
+
"moviedb-promise": "^3.1.14",
|
13 |
+
"node-fetch": "^2.6.1",
|
14 |
+
"stremio-addon-sdk": "^1.6.10",
|
15 |
+
"winston": "^3.14.2"
|
16 |
+
}
|
17 |
+
}
|
public/backdrop.jpg
ADDED
![]() |
public/index.html
ADDED
@@ -0,0 +1,242 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="utf-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Easynews RSS Search - Stremio Addon</title>
|
7 |
+
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap" rel="stylesheet">
|
8 |
+
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
|
9 |
+
<style>
|
10 |
+
* {
|
11 |
+
box-sizing: border-box;
|
12 |
+
margin: 0;
|
13 |
+
padding: 0;
|
14 |
+
}
|
15 |
+
body, html {
|
16 |
+
height: 100%;
|
17 |
+
font-family: 'Roboto', sans-serif;
|
18 |
+
color: #ffffff;
|
19 |
+
}
|
20 |
+
body {
|
21 |
+
background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
|
22 |
+
url('/backdrop.jpg') no-repeat center center fixed;
|
23 |
+
background-size: cover;
|
24 |
+
}
|
25 |
+
.container {
|
26 |
+
display: flex;
|
27 |
+
flex-direction: column;
|
28 |
+
align-items: center;
|
29 |
+
min-height: 100%;
|
30 |
+
padding: 20px;
|
31 |
+
}
|
32 |
+
.logo {
|
33 |
+
font-size: 3rem;
|
34 |
+
font-weight: 700;
|
35 |
+
color: #e50914;
|
36 |
+
margin-bottom: 2rem;
|
37 |
+
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
|
38 |
+
}
|
39 |
+
.content-wrapper {
|
40 |
+
display: flex;
|
41 |
+
justify-content: center;
|
42 |
+
gap: 2rem;
|
43 |
+
width: 100%;
|
44 |
+
max-width: 1200px;
|
45 |
+
flex-wrap: wrap;
|
46 |
+
}
|
47 |
+
.description {
|
48 |
+
background-color: rgba(0, 0, 0, 0.6);
|
49 |
+
backdrop-filter: blur(10px);
|
50 |
+
border-radius: 4px;
|
51 |
+
padding: 40px;
|
52 |
+
flex: 1;
|
53 |
+
min-width: 300px;
|
54 |
+
max-width: 600px;
|
55 |
+
height: fit-content;
|
56 |
+
line-height: 1.6;
|
57 |
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
58 |
+
}
|
59 |
+
.description h2 {
|
60 |
+
color: #e50914;
|
61 |
+
margin-bottom: 1rem;
|
62 |
+
}
|
63 |
+
.description p {
|
64 |
+
margin-bottom: 1rem;
|
65 |
+
}
|
66 |
+
.description ul {
|
67 |
+
margin-left: 20px;
|
68 |
+
margin-bottom: 1rem;
|
69 |
+
}
|
70 |
+
.description li {
|
71 |
+
margin-bottom: 0.5rem;
|
72 |
+
}
|
73 |
+
.form-container {
|
74 |
+
background-color: rgba(0, 0, 0, 0.6);
|
75 |
+
backdrop-filter: blur(10px);
|
76 |
+
border-radius: 4px;
|
77 |
+
padding: 40px;
|
78 |
+
width: 100%;
|
79 |
+
max-width: 450px;
|
80 |
+
height: fit-content;
|
81 |
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
82 |
+
}
|
83 |
+
h1 {
|
84 |
+
font-size: 2rem;
|
85 |
+
font-weight: 700;
|
86 |
+
margin-bottom: 28px;
|
87 |
+
}
|
88 |
+
.input-container {
|
89 |
+
position: relative;
|
90 |
+
margin-bottom: 16px;
|
91 |
+
}
|
92 |
+
.input {
|
93 |
+
width: 100%;
|
94 |
+
height: 50px;
|
95 |
+
background-color: rgba(51, 51, 51, 0.8);
|
96 |
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
97 |
+
border-radius: 4px;
|
98 |
+
color: white;
|
99 |
+
padding: 16px 20px 0;
|
100 |
+
font-size: 1rem;
|
101 |
+
outline: none;
|
102 |
+
}
|
103 |
+
.input:focus {
|
104 |
+
background-color: rgba(69, 69, 69, 0.8);
|
105 |
+
border-color: rgba(255, 255, 255, 0.3);
|
106 |
+
}
|
107 |
+
.input-label {
|
108 |
+
position: absolute;
|
109 |
+
top: 50%;
|
110 |
+
left: 20px;
|
111 |
+
transform: translateY(-50%);
|
112 |
+
transition: all 0.1s ease;
|
113 |
+
color: #8c8c8c;
|
114 |
+
pointer-events: none;
|
115 |
+
}
|
116 |
+
.input:focus + .input-label,
|
117 |
+
.input:not(:placeholder-shown) + .input-label {
|
118 |
+
top: 7px;
|
119 |
+
font-size: 0.7rem;
|
120 |
+
}
|
121 |
+
.btn {
|
122 |
+
width: 100%;
|
123 |
+
height: 50px;
|
124 |
+
background-color: #e50914;
|
125 |
+
color: white;
|
126 |
+
border: none;
|
127 |
+
border-radius: 4px;
|
128 |
+
font-size: 1rem;
|
129 |
+
font-weight: 700;
|
130 |
+
margin: 24px 0 12px;
|
131 |
+
cursor: pointer;
|
132 |
+
transition: background-color 0.2s;
|
133 |
+
}
|
134 |
+
.btn:hover {
|
135 |
+
background-color: #f40612;
|
136 |
+
}
|
137 |
+
.info {
|
138 |
+
color: #737373;
|
139 |
+
font-size: 0.9rem;
|
140 |
+
margin-top: 16px;
|
141 |
+
}
|
142 |
+
#installURL {
|
143 |
+
width: 100%;
|
144 |
+
background-color: rgba(51, 51, 51, 0.8);
|
145 |
+
color: white;
|
146 |
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
147 |
+
padding: 10px;
|
148 |
+
margin-top: 10px;
|
149 |
+
border-radius: 4px;
|
150 |
+
}
|
151 |
+
.copy-btn {
|
152 |
+
background-color: #e50914;
|
153 |
+
color: white;
|
154 |
+
border: none;
|
155 |
+
padding: 10px 20px;
|
156 |
+
margin-top: 10px;
|
157 |
+
border-radius: 4px;
|
158 |
+
cursor: pointer;
|
159 |
+
transition: background-color 0.2s;
|
160 |
+
}
|
161 |
+
.copy-btn:hover {
|
162 |
+
background-color: #f40612;
|
163 |
+
}
|
164 |
+
@media (max-width: 768px) {
|
165 |
+
.content-wrapper {
|
166 |
+
flex-direction: column;
|
167 |
+
align-items: center;
|
168 |
+
}
|
169 |
+
.description, .form-container {
|
170 |
+
max-width: 100%;
|
171 |
+
}
|
172 |
+
}
|
173 |
+
</style>
|
174 |
+
</head>
|
175 |
+
<body>
|
176 |
+
<div class="container">
|
177 |
+
<div class="logo">EASYNEWS RSS FEED</div>
|
178 |
+
<div class="content-wrapper">
|
179 |
+
<div class="description">
|
180 |
+
<h2>About This Addon</h2>
|
181 |
+
<p>This Stremio addon enables seamless integration with Easynews, allowing you to search and stream media content directly through Stremio's interface. The addon works by:</p>
|
182 |
+
<ul>
|
183 |
+
<li>Connecting to Easynews' RSS feed</li>
|
184 |
+
<li>Providing high-quality streaming links for movies and TV shows</li>
|
185 |
+
<li>Manual search for both movies and series</li>
|
186 |
+
</ul>
|
187 |
+
<p>To use this addon, you'll need an active Easynews account. Simply enter your credentials on the right to generate a custom installation link for your Stremio app.</p>
|
188 |
+
</div>
|
189 |
+
<div class="form-container">
|
190 |
+
<h1>Stremio Addon Installation</h1>
|
191 |
+
<div class="input-container">
|
192 |
+
<input type="text" id="username" class="input" placeholder=" ">
|
193 |
+
<label for="username" class="input-label">Easynews Username</label>
|
194 |
+
</div>
|
195 |
+
<div class="input-container">
|
196 |
+
<input type="password" id="password" class="input" placeholder=" ">
|
197 |
+
<label for="password" class="input-label">Easynews Password</label>
|
198 |
+
</div>
|
199 |
+
<button id="installBtn" class="btn" onclick="generateInstallLink()">INSTALL</button>
|
200 |
+
<div id="installLinkInfo" style="display:none;">
|
201 |
+
<p class="info">If the installation button doesn't work, copy and paste this URL into the Stremio addon search bar:</p>
|
202 |
+
<input type="text" id="installURL" readonly>
|
203 |
+
<button class="copy-btn" onclick="copy('installURL')">Copy URL</button>
|
204 |
+
</div>
|
205 |
+
</div>
|
206 |
+
</div>
|
207 |
+
</div>
|
208 |
+
|
209 |
+
<script type="text/javascript">
|
210 |
+
function encode(userData) {
|
211 |
+
return btoa(JSON.stringify(userData)).replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, '')
|
212 |
+
}
|
213 |
+
|
214 |
+
function copy(id){
|
215 |
+
document.getElementById(id).select();
|
216 |
+
document.execCommand("copy");
|
217 |
+
}
|
218 |
+
|
219 |
+
function generateInstallLink() {
|
220 |
+
var username = $('#username').val().trim() || null;
|
221 |
+
var password = $('#password').val().trim() || null;
|
222 |
+
|
223 |
+
if (!username || !password) {
|
224 |
+
alert("Please fill in all fields!");
|
225 |
+
return;
|
226 |
+
}
|
227 |
+
|
228 |
+
var params = {username, password};
|
229 |
+
var configuration = encode(params);
|
230 |
+
|
231 |
+
var installBtn = document.getElementById('installBtn');
|
232 |
+
var installURL = `${window.location.origin}/${configuration}/manifest.json`;
|
233 |
+
|
234 |
+
installBtn.onclick = function() {
|
235 |
+
window.location.href = 'stremio://' + installURL;
|
236 |
+
};
|
237 |
+
document.getElementById("installURL").value = installURL;
|
238 |
+
document.getElementById("installLinkInfo").style.display = "block";
|
239 |
+
}
|
240 |
+
</script>
|
241 |
+
</body>
|
242 |
+
</html>
|
server.js
ADDED
@@ -0,0 +1,142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
require('dotenv').config();
|
2 |
+
const { getRouter } = require('stremio-addon-sdk');
|
3 |
+
const addonInterface = require('./addon');
|
4 |
+
const express = require('express');
|
5 |
+
const path = require('path');
|
6 |
+
const http = require('http');
|
7 |
+
const winston = require('winston');
|
8 |
+
|
9 |
+
// Configure Winston logger
|
10 |
+
const logger = winston.createLogger({
|
11 |
+
level: 'info',
|
12 |
+
format: winston.format.combine(
|
13 |
+
winston.format.timestamp(),
|
14 |
+
winston.format.printf(({ level, message, timestamp }) => {
|
15 |
+
return `${timestamp} ${level}: ${message}`;
|
16 |
+
})
|
17 |
+
),
|
18 |
+
transports: [
|
19 |
+
new winston.transports.Console(),
|
20 |
+
new winston.transports.File({ filename: 'error.log', level: 'error' }),
|
21 |
+
new winston.transports.File({ filename: 'combined.log' })
|
22 |
+
]
|
23 |
+
});
|
24 |
+
|
25 |
+
const app = express();
|
26 |
+
|
27 |
+
// Serve static files
|
28 |
+
app.use(express.static(path.join(__dirname, 'public')));
|
29 |
+
|
30 |
+
// Basic error handling middleware
|
31 |
+
app.use((err, req, res, next) => {
|
32 |
+
logger.error('Unhandled error:', err);
|
33 |
+
res.status(500).json({ error: 'Internal server error' });
|
34 |
+
});
|
35 |
+
|
36 |
+
// Health check endpoint
|
37 |
+
app.get('/health', (req, res) => {
|
38 |
+
res.json({ status: 'ok' });
|
39 |
+
});
|
40 |
+
|
41 |
+
// Serve the installation page
|
42 |
+
app.get('/', (req, res) => {
|
43 |
+
res.sendFile(path.join(__dirname, 'public', 'index.html'));
|
44 |
+
});
|
45 |
+
|
46 |
+
let addonRouter = null;
|
47 |
+
|
48 |
+
// Handle addon requests
|
49 |
+
app.use('/:configuration?', (req, res, next) => {
|
50 |
+
try {
|
51 |
+
if (!addonRouter) {
|
52 |
+
const configurationStr = req.params.configuration;
|
53 |
+
if (configurationStr) {
|
54 |
+
let configuration;
|
55 |
+
try {
|
56 |
+
const decodedStr = Buffer.from(configurationStr, 'base64').toString('utf-8');
|
57 |
+
configuration = JSON.parse(decodedStr);
|
58 |
+
logger.debug('Decoded configuration:', {
|
59 |
+
...configuration,
|
60 |
+
username: configuration.username ? '[REDACTED]' : undefined,
|
61 |
+
password: configuration.password ? '[REDACTED]' : undefined
|
62 |
+
});
|
63 |
+
} catch (e) {
|
64 |
+
logger.error('Failed to decode configuration:', e);
|
65 |
+
return res.status(400).json({ error: 'Invalid configuration format' });
|
66 |
+
}
|
67 |
+
|
68 |
+
const { username, password } = configuration;
|
69 |
+
if (!username || !password) {
|
70 |
+
logger.warn('Missing required configuration parameters');
|
71 |
+
return res.status(400).json({ error: 'Missing username or password' });
|
72 |
+
}
|
73 |
+
|
74 |
+
try {
|
75 |
+
const addonWithConfig = addonInterface.setConfiguration({ username, password });
|
76 |
+
addonRouter = getRouter(addonWithConfig);
|
77 |
+
logger.info('Addon router created with configuration');
|
78 |
+
} catch (e) {
|
79 |
+
logger.error('Failed to create addon router:', e);
|
80 |
+
return res.status(500).json({ error: 'Failed to initialize addon' });
|
81 |
+
}
|
82 |
+
} else {
|
83 |
+
// If no configuration, use default addon interface
|
84 |
+
addonRouter = getRouter(addonInterface);
|
85 |
+
logger.info('Addon router created with default configuration');
|
86 |
+
}
|
87 |
+
}
|
88 |
+
|
89 |
+
addonRouter(req, res, next);
|
90 |
+
} catch (error) {
|
91 |
+
logger.error('Error in addon middleware:', error);
|
92 |
+
next(error);
|
93 |
+
}
|
94 |
+
});
|
95 |
+
|
96 |
+
// Handle 404
|
97 |
+
app.use((req, res) => {
|
98 |
+
res.status(404).json({ error: 'Not found' });
|
99 |
+
});
|
100 |
+
|
101 |
+
function startServer(port) {
|
102 |
+
return new Promise((resolve, reject) => {
|
103 |
+
const server = http.createServer(app);
|
104 |
+
|
105 |
+
// Handle server errors
|
106 |
+
server.on('error', (error) => {
|
107 |
+
if (error.code === 'EADDRINUSE') {
|
108 |
+
logger.warn(`Port ${port} is in use, trying ${port + 1}`);
|
109 |
+
resolve(startServer(port + 1));
|
110 |
+
} else {
|
111 |
+
logger.error('Server error:', error);
|
112 |
+
reject(error);
|
113 |
+
}
|
114 |
+
});
|
115 |
+
|
116 |
+
// Handle uncaught exceptions
|
117 |
+
process.on('uncaughtException', (error) => {
|
118 |
+
logger.error('Uncaught exception:', error);
|
119 |
+
process.exit(1);
|
120 |
+
});
|
121 |
+
|
122 |
+
// Handle unhandled promise rejections
|
123 |
+
process.on('unhandledRejection', (reason, promise) => {
|
124 |
+
logger.error('Unhandled Rejection at:', promise, 'reason:', reason);
|
125 |
+
});
|
126 |
+
|
127 |
+
// Start the server
|
128 |
+
server.listen(port, () => {
|
129 |
+
logger.info(`Addon running on http://127.0.0.1:${port}`);
|
130 |
+
resolve(server);
|
131 |
+
});
|
132 |
+
});
|
133 |
+
}
|
134 |
+
|
135 |
+
// Start the server with automatic port selection
|
136 |
+
startServer(9876).catch(err => {
|
137 |
+
logger.error('Failed to start server:', err);
|
138 |
+
process.exit(1);
|
139 |
+
});
|
140 |
+
|
141 |
+
// Export for testing
|
142 |
+
module.exports = { app, startServer };
|
tmdb-handler.js
ADDED
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
const { MovieDb } = require('moviedb-promise');
|
2 |
+
const winston = require('winston');
|
3 |
+
|
4 |
+
// Logger configuration
|
5 |
+
const logger = winston.createLogger({
|
6 |
+
level: 'debug',
|
7 |
+
format: winston.format.combine(
|
8 |
+
winston.format.timestamp(),
|
9 |
+
winston.format.printf(({ level, message, timestamp }) => {
|
10 |
+
return `${timestamp} ${level}: ${message}`;
|
11 |
+
})
|
12 |
+
),
|
13 |
+
transports: [
|
14 |
+
new winston.transports.Console(),
|
15 |
+
new winston.transports.File({ filename: 'error.log', level: 'error' }),
|
16 |
+
new winston.transports.File({ filename: 'combined.log' })
|
17 |
+
]
|
18 |
+
});
|
19 |
+
|
20 |
+
class TMDBHandler {
|
21 |
+
constructor(apiKey) {
|
22 |
+
this.tmdb = new MovieDb(apiKey);
|
23 |
+
}
|
24 |
+
|
25 |
+
async getMetadata(id, type) {
|
26 |
+
try {
|
27 |
+
logger.info(`Fetching metadata for ID: ${id}, Type: ${type}`);
|
28 |
+
let result;
|
29 |
+
let tmdbId;
|
30 |
+
|
31 |
+
if (id.startsWith('tt')) {
|
32 |
+
// It's an IMDb ID, need to find it in TMDB first
|
33 |
+
logger.info(`Searching TMDB for IMDb ID: ${id}`);
|
34 |
+
const searchResult = await this.tmdb.find({ id: id, external_source: 'imdb_id' });
|
35 |
+
if (searchResult.movie_results && searchResult.movie_results.length > 0) {
|
36 |
+
tmdbId = searchResult.movie_results[0].id;
|
37 |
+
type = 'movie';
|
38 |
+
} else if (searchResult.tv_results && searchResult.tv_results.length > 0) {
|
39 |
+
tmdbId = searchResult.tv_results[0].id;
|
40 |
+
type = 'series';
|
41 |
+
}
|
42 |
+
} else if (id.startsWith('tmdb-')) {
|
43 |
+
tmdbId = id.split('-')[1]; // Remove the 'tmdb-' prefix
|
44 |
+
} else {
|
45 |
+
tmdbId = id;
|
46 |
+
}
|
47 |
+
|
48 |
+
if (!tmdbId) {
|
49 |
+
throw new Error('Unable to determine TMDB ID');
|
50 |
+
}
|
51 |
+
|
52 |
+
logger.info(`Fetching TMDB info for ID: ${tmdbId}, Type: ${type}`);
|
53 |
+
if (type === 'movie') {
|
54 |
+
result = await this.tmdb.movieInfo({ id: tmdbId });
|
55 |
+
} else if (type === 'series') {
|
56 |
+
result = await this.tmdb.tvInfo({ id: tmdbId });
|
57 |
+
} else {
|
58 |
+
throw new Error('Invalid type. Must be "movie" or "series".');
|
59 |
+
}
|
60 |
+
|
61 |
+
if (!result) {
|
62 |
+
throw new Error('No results found');
|
63 |
+
}
|
64 |
+
|
65 |
+
logger.info(`Successfully fetched metadata for ${id}`);
|
66 |
+
return result;
|
67 |
+
} catch (error) {
|
68 |
+
logger.error(`Error fetching metadata: ${error.message}`);
|
69 |
+
return null;
|
70 |
+
}
|
71 |
+
}
|
72 |
+
|
73 |
+
async getImdbId(tmdbId, type) {
|
74 |
+
try {
|
75 |
+
logger.info(`Fetching IMDb ID for TMDB ID: ${tmdbId}`);
|
76 |
+
let result;
|
77 |
+
if (type === 'movie') {
|
78 |
+
result = await this.tmdb.movieExternalIds(tmdbId);
|
79 |
+
} else if (type === 'series') {
|
80 |
+
result = await this.tmdb.tvExternalIds(tmdbId);
|
81 |
+
} else {
|
82 |
+
throw new Error('Invalid type. Must be "movie" or "series".');
|
83 |
+
}
|
84 |
+
|
85 |
+
logger.info(`Successfully fetched IMDb ID for TMDB ID: ${tmdbId}`);
|
86 |
+
return result.imdb_id;
|
87 |
+
} catch (error) {
|
88 |
+
logger.error(`Error fetching IMDB ID: ${error.message}`);
|
89 |
+
return null;
|
90 |
+
}
|
91 |
+
}
|
92 |
+
|
93 |
+
async searchByTitle(title, type) {
|
94 |
+
try {
|
95 |
+
logger.info(`Searching TMDB by title: ${title}`);
|
96 |
+
let results;
|
97 |
+
if (type === 'movie') {
|
98 |
+
results = await this.tmdb.searchMovie({ query: title });
|
99 |
+
} else if (type === 'series') {
|
100 |
+
results = await this.tmdb.searchTv({ query: title });
|
101 |
+
} else {
|
102 |
+
throw new Error('Invalid type. Must be "movie" or "series".');
|
103 |
+
}
|
104 |
+
|
105 |
+
if (results.results && results.results.length > 0) {
|
106 |
+
const tmdbId = results.results[0].id;
|
107 |
+
logger.info(`Found TMDB ID: ${tmdbId} for title: ${title}`);
|
108 |
+
return await this.getImdbId(tmdbId, type);
|
109 |
+
}
|
110 |
+
logger.warn(`No results found for title: ${title}`);
|
111 |
+
return null;
|
112 |
+
} catch (error) {
|
113 |
+
logger.error(`Error searching by title: ${error.message}`);
|
114 |
+
return null;
|
115 |
+
}
|
116 |
+
}
|
117 |
+
}
|
118 |
+
|
119 |
+
module.exports = TMDBHandler;
|