mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
[scraper] fix us country name
This commit is contained in:
@@ -167,7 +167,7 @@ function filterVideos(files) {
|
|||||||
}
|
}
|
||||||
const videos = files.filter(file => isVideo(file.path));
|
const videos = files.filter(file => isVideo(file.path));
|
||||||
const maxSize = Math.max(...videos.map(video => video.size));
|
const maxSize = Math.max(...videos.map(video => video.size));
|
||||||
const minSampleRatio = videos.length <= 3 ? 5 : 10;
|
const minSampleRatio = videos.length <= 3 ? 3 : 10;
|
||||||
const minAnimeExtraRatio = 5;
|
const minAnimeExtraRatio = 5;
|
||||||
const minRedundantRatio = videos.length <= 3 ? 30 : Number.MAX_VALUE;
|
const minRedundantRatio = videos.length <= 3 ? 30 : Number.MAX_VALUE;
|
||||||
const isSample = video => video.path.match(/sample|bonus/i) && maxSize / parseInt(video.size) > minSampleRatio;
|
const isSample = video => video.path.match(/sample|bonus/i) && maxSize / parseInt(video.size) > minSampleRatio;
|
||||||
|
|||||||
@@ -338,6 +338,7 @@ function decomposeEpisodeTitleFiles(torrent, files, metadata) {
|
|||||||
|
|
||||||
function getTimeZoneOffset(country) {
|
function getTimeZoneOffset(country) {
|
||||||
switch (country) {
|
switch (country) {
|
||||||
|
case 'United States':
|
||||||
case 'USA':
|
case 'USA':
|
||||||
return '-08:00';
|
return '-08:00';
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user