anidl / multi-downloader-nx

Downloader for Crunchyroll, Hidive, AnimeOnegai, and AnimationDigitalNetwork with CLI and GUI
MIT License
283 stars 45 forks source link

[BUG]: Unusual Download Order for Multi-Season Title #780

Open quamt opened 3 weeks ago

quamt commented 3 weeks ago

Program version

5.1.5

Operating System

Windows

Type

GUI

Service

Crunchyroll

Command used

NIL

Show ID

1040

Episode

ALL

Console Output

=== Multi Downloader NX GUI 5.1.5 ===

GUI server started on port 3000
[WS] Connection to public ws from '::1'
[WS] Connection from '::1'
[ERROR] HTTPError 401: Unauthorized
[ERROR] Body: {"status":401,"code":"UNAUTHORIZED","messages":["Bearer token is not valid"],"requestId":"9a6a78f8f3186fbd"}
[WARN] Token expired, refreshing token and retrying.
[Z.1040] Is It Wrong to Try to Pick Up Girls in a Dungeon? (6 Seasons)
  [S.18959] Season 1 (13 Episodes)
    [E.564147] (Bell Cranel) ADVENTURER
    [E.564188] (Monsterphilia) MONSTER FESTIVAL
    [E.564149] (Hestia Knife) THE KNIFE OF THE GODDESS
    [E.564121] (Supporter) WEAKLING
    [E.564171] (Grimoire) MAGIC TOME
    [E.564206] (Liliruca Arde) REASON
    [E.564124] (Ais Wallenstein) The Sword Princess
    [E.564174] (Argonaut) A HERO'S ASPIRATION
    [E.564172] (Welf Crozzo) THE SMITH
    [E.564173] (Pass Parade) MONSTER PROCESSION
    [E.564184] (Under Resort) THE LABYRINTH PARADISE
    [E.564148] (Show) MALICE
    [E.564122] (Familia Myth) A TALE OF FAMILY
  [S.19085] Season 1 OVA (1 Episodes)
    [E.537576] Is It Wrong to Expect a Hot Spring in a Dungeon?
  [S.18960] Season 2 (14 Episodes)
    [E.589397] Past and Future (Season 1 Recap)
    [E.577375] (Party) Banquet of the Gods
    [E.577401] (Apollo) God of the Sun
    [E.577402] (Conversion) Assemble
    [E.577404] (War Game) War Game
    [E.577373] (Home) Hearthstone Manor
    [E.577378] (Ishtar Familia) Pleasure Quarter
    [E.577399] (Renard) The Fox Girl
    [E.577430] (A Fleeting Dream) Killing Stone
    [E.577374] (Barbera) Warrior Prostitutes
    [E.577400] (Argonaut) A Hero's Will
    [E.577377] (Rakia) Marching Forward
    [E.577403] (A Song of Love) A Goddess and Her Child
    [E.564131] Is It Wrong to Go Searching for Herbs on a Deserted Island?
  [S.18963] Season 3 (13 Episodes)
    [E.564190] (Wiene) A Dragon Girl
    [E.564208] (Monster) A Single Wing
    [E.564152] (Xenos) Heretics
    [E.564207] (Yearning) A Far-off Dream
    [E.564176] (Ikelos Familia) The King of Calamity
    [E.564126] (Knossos) A Man-made Labyrinth
    [E.564175] (Dix Perdix) A Dream of Beasts
    [E.564127] (Bell Cranel) The Fool
    [E.564128] (Stigma) Downfall
    [E.564125] (Invisible) Breakthrough
    [E.564130] (Ultra Soul) Showdown
    [E.564129] (Argonaut) Return of the Hero
    [E.537344] Is It Wrong to Try to Find a Hot Spring in Orario? -Bath God Forever-
  [S.18961] Season 4 (23 Episodes)
    [E.537310] Play Back | Reminisce
    [E.537311] Prelude | Night Before Departure
    [E.537336] The Great Falls | The Great Falls
    [E.537341] Parasite | Viscum Album
    [E.537339] Mermaid | The Girl of Water City
    [E.537356] Argo Vesta | Heroic Slash of Holy Flame
    [E.537363] Rabbit's Foot | Rabbit's Foot
    [E.537360] Cassandra Ilion | Dream Seer
    [E.537355] Mirabilis | Chaos
    [E.537365] Lambton | Ill Omen
    [E.537362] Juggernaut | The Destroyer
    [E.537343] Endless | Brutal
    [E.537342] Amphisbaena | A Song of Despair
    [E.537357] Morgue | Victim
    [E.537358] Daphne Lauros | Friend
    [E.537359] Ignis | Flame
    [E.590028] Welf Crozzo | Shikou
    [E.590029] White Palace | White Labyrinth
    [E.590030] Desperate | Dungeon Do-or-Die Time
    [E.590032] Colosseum | Arena
    [E.590035] Astrea Familia | Heroic Death
    [E.590034] Daydream | A Sweet Lie
    [E.590033] Luvia | Starry Flower
  [S.26756] Season 5 (13 Episodes)
    [E.694195] Syr
    [E.694194] (Master) Training
    [E.694199] Coming 2024-10-17T13:00:00 UTC
    [E.694190] Coming 2024-10-24T13:00:00 UTC
    [E.694187] Coming 2024-10-31T13:00:00 UTC
    [E.694197] Coming 2024-11-07T13:00:00 UTC
    [E.694188] Coming 2024-11-14T13:00:00 UTC
    [E.694193] Coming 2024-11-21T13:00:00 UTC
    [E.694189] Coming 2024-11-28T13:00:00 UTC
    [E.694198] Coming 2024-12-05T13:00:00 UTC
    [E.694196] Coming 2024-12-12T13:00:00 UTC
    [E.694191] Coming 2024-12-19T13:00:00 UTC
    [E.694192] Coming 2024-12-26T13:00:00 UTC
[DEBUG] Got resolve options: {"id":"1040","q":0,"e":",1,2,3,4,5,6,7,8,9,10,11,12,13","dubLang":["jpn"],"dlsubs":["en"],"fileName":"${showTitle}\\S${season}\\S${season}_E${episode} - ${title}","dlVideoOnce":false,"all":false,"but":false,"noaudio":false,"novids":false,"simul":false}
[Z.1040] Is It Wrong to Try to Pick Up Girls in a Dungeon? (6 Seasons)

Additional Information

Issue: Unusual Download Order for Multi-Season Title

Description: When downloading a title with multiple seasons (five in this case), I've noticed that the download process should follow the expected order of completing one season before moving to the next. Instead, it downloads the first episode of each season, then the second episode, and continues in this pattern. This results in the downloads proceeding in a round-robin fashion across all seasons.

Expected Behavior: The download should complete all episodes of a season sequentially before proceeding to the next season.

Actual Behavior: Episodes are downloaded in a sequence that starts with the first episode from each season, followed by the second episode from each season, and so on.

Question: Is this the intended behaviour for the download process, or is it a service limitation? If not, could this be addressed in a future update?

Jaynator495 commented 3 weeks ago

This does seem like a bug, and a rather odd one at that... If I had to guess, I also only see 1-13 in your options, so it seems like all of the episodes are numbered 1-13, rather than how it was before where the numbers were increasing. I might have to renumber episodes similar to how it's done for crunchy for this exact reason, so the episodes can actually be differentiated by the downloader

quamt commented 3 weeks ago

Thank you for looking into this. I've also noticed that if a season has more than 13 episodes, the downloader gets stuck in a loop and only processes up to 13. It continuously overwrites the same episodes instead of moving on to download the remaining episodes. As a result, only 13 episodes are available, even if there are more in the season.

For further testing, is there any configuration option that can be added to prevent re-downloading episodes that have already been downloaded? This would help avoid overwriting existing files during testing.

I'm testing it now with the "download all but" option

quamt commented 2 weeks ago

The download all but works to allow to download the rest of the episodes, except when the new season, just started and is at the beginning, example S5 E3 just released. It would overwrite all E3.