mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-21 08:32:03 +00:00
fix: always add anime title
This commit is contained in:
parent
009e26974d
commit
8b3992ff06
2 changed files with 2 additions and 1 deletions
|
|
@ -230,6 +230,7 @@ export async function anitomyscript (...args) {
|
||||||
const parseObjs = Array.isArray(res) ? res : [res]
|
const parseObjs = Array.isArray(res) ? res : [res]
|
||||||
|
|
||||||
for (const obj of parseObjs) {
|
for (const obj of parseObjs) {
|
||||||
|
obj.anime_title ??= ''
|
||||||
const seasonMatch = obj.anime_title.match(/S(\d{2})E(\d{2})/)
|
const seasonMatch = obj.anime_title.match(/S(\d{2})E(\d{2})/)
|
||||||
if (seasonMatch) {
|
if (seasonMatch) {
|
||||||
obj.anime_season = seasonMatch[1]
|
obj.anime_season = seasonMatch[1]
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "Miru",
|
"name": "Miru",
|
||||||
"version": "4.5.0",
|
"version": "4.5.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
|
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
|
||||||
"description": "Stream anime torrents, real-time with no waiting for downloads.",
|
"description": "Stream anime torrents, real-time with no waiting for downloads.",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue