Episodes are stored in different properties in general and specific History methods.

Issue #113 resolved
Toco Toucan created an issue

Steps to reproduce:

  1. Call general history method: /2.1/history/<username>

  2. Call anime specific history method: /2.1/anime/history/<anime id>

Actual result:

General history method stores episodes in item.episodes property. Anime specific method stores episodes in item.watched_episodes property.

Expected result:

All history methods store progress the same way.

Comments (3)

  1. Ratan Dhawtal

    Yes, the generic method should return watched_episodes. It looks like I made a mistake while writing the code.

    @motokochan what should we do? use episodes and watched_episodes for compatibility?

  2. Michael Johnson

    We should use watched_episodes on both calls as that's the correct property for that type of data. I'm not opposed to changing the returned data and breaking with the old as it's an obvious bug. I'll handle the fix tomorrow night if it's not done before then.

  3. Log in to comment