mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-04-21 00:12:05 +00:00
Fix #282
This commit is contained in:
parent
5386800473
commit
3271548987
2 changed files with 6 additions and 6 deletions
|
|
@ -1452,11 +1452,11 @@ export default class Crunchy implements ServiceClass {
|
|||
for (const lang of langsData.languages) {
|
||||
if (!Object.prototype.hasOwnProperty.call(ret, item.season_number))
|
||||
ret[item.season_number] = {};
|
||||
if (item.title.includes(`(${lang.name} Dub)`)) {
|
||||
if (item.title.includes(`(${lang.name} Dub)`) || item.title.includes(`(${lang.name})`)) {
|
||||
ret[item.season_number][lang.code] = item;
|
||||
} else if (item.is_subbed && !item.is_dubbed && lang.code == 'jpn') {
|
||||
ret[item.season_number][lang.code] = item;
|
||||
} else if (item.is_dubbed && lang.code === 'eng' && !langsData.languages.some(a => item.title.includes(`(${a.name} Dub)`))) { // Dubbed with no more infos will be treated as eng dubs
|
||||
} else if (item.is_dubbed && lang.code === 'eng' && !langsData.languages.some(a => item.title.includes(`(${a.name})`) || item.title.includes(`(${a.name} Dub)`))) { // Dubbed with no more infos will be treated as eng dubs
|
||||
ret[item.season_number][lang.code] = item;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { app, BrowserWindow, dialog, } from 'electron';
|
||||
import { app, BrowserWindow, dialog, screen } from 'electron';
|
||||
import path from 'path/posix';
|
||||
import fs from 'fs';
|
||||
import dotenv from 'dotenv';
|
||||
|
|
@ -86,9 +86,9 @@ const createWindow = async () => {
|
|||
(await import('../../../modules/module.cfg-loader')).ensureConfig();
|
||||
// Create the browser window.
|
||||
mainWindow = new BrowserWindow({
|
||||
height: 600,
|
||||
width: 800,
|
||||
title: 'AniDL GUI BETA',
|
||||
width: screen.getPrimaryDisplay().bounds.width,
|
||||
height: screen.getPrimaryDisplay().bounds.height,
|
||||
title: `AniDL GUI BETA ${json.version}`,
|
||||
webPreferences: {
|
||||
nodeIntegration: false,
|
||||
preload: path.join(__dirname, 'preload.js')
|
||||
|
|
|
|||
Loading…
Reference in a new issue