[CR]: Fix naming output parity for sub/dub
Some checks failed
auto-documentation / documentation (push) Has been cancelled
Style and build test / tsc (push) Has been cancelled
Style and build test / eslint (push) Has been cancelled
Style and build test / prettier (push) Has been cancelled
Style and build test / build-test (push) Has been cancelled

This commit is contained in:
AnimeDL 2025-10-02 12:42:41 -07:00
parent 061e1705b9
commit b98eff5e9f

View file

@ -3005,12 +3005,12 @@ export default class Crunchy implements ServiceClass {
console.info(`[${data?.absolute ? epNum : key}] [${item.items[0].upload_date ? new Date(item.items[0].upload_date).toISOString().slice(0, 10) : '0000-00-00'}] ${
item.items.find((a) => !a.season_title.match(/\(\w+ Dub\)/))?.season_title ?? item.items[0].season_title.replace(/\(\w+ Dub\)/g, '').trimEnd()
} - Season ${item.items[0].season_number} - ${item.items[0].title}
\r\t- Dubs: ${item.items
\r\t- Versions: ${item.items
.map((a, index) => {
return `${a.is_premium_only ? '☆ ' : ''}${item.langs?.[index]?.name ?? 'Unknown'}`;
})
.join(', ')}
\r\t- Subs: ${[...new Set(item.items.flatMap((a) => a.subtitle_locales ?? 'None'))].join(', ')}`);
\r\t- Subtitles: ${[...new Set(item.items.flatMap((a) => a.subtitle_locales ?? 'None'))].join(', ')}`);
}
if (!serieshasversions) {