ShokoAnime / ShokoServer

Repository for Shoko Server.
https://shokoanime.com/
MIT License
412 stars 74 forks source link

Filter: "Has Missing Episodes" Returning Some Results Without Missing Episodes #1152

Closed natyusha closed 3 months ago

natyusha commented 4 months ago

VERSION INFORMATION

Server Version: Latest Daily

Desktop Version: N/A

LOG FILE

Running /api/v3/Filter/2 returns:

{
  "IDs": {
    "ID": 2
  },
  "IsLocked": false,
  "IsDirectory": false,
  "IsHidden": false,
  "ApplyAtSeriesLevel": false,
  "Name": "Missing Episodes",
  "Size": 7
}

Truncated response from running /api/v3/Filter/2/Series (the first result only)

{
  "Total": 23,
  "List": [
    {
      "IDs": {
        "ParentGroup": 28229,
        "TopLevelGroup": 28229,
        "AniDB": 11690,
        "TvDB": [
          303730
        ],
        "TMDB": [],
        "MAL": [
          31790
        ],
        "TraktTv": [],
        "AniList": [],
        "ID": 4188
      },
      "HasCustomName": false,
.
.
.
.
      ],
      "Sizes": {
        "Hidden": 0,
        "FileSources": {
          "Unknown": 12,
          "Other": 0,
          "TV": 0,
          "DVD": 0,
          "BluRay": 0,
          "Web": 0,
          "VHS": 0,
          "VCD": 0,
          "LaserDisc": 0,
          "Camera": 0
        },
        "Local": {
          "Unknown": 0,
          "Episodes": 12,
          "Specials": 0,
          "Credits": 0,
          "Trailers": 0,
          "Parodies": 0,
          "Others": 0
        },
        "Watched": {
          "Unknown": 0,
          "Episodes": 0,
          "Specials": 0,
          "Credits": 0,
          "Trailers": 0,
          "Parodies": 0,
          "Others": 0
        },
        "Missing": {
          "Episodes": 0,
          "Specials": 0
        },
        "Total": {
          "Unknown": 0,
          "Episodes": 12,
          "Specials": 0,
          "Credits": 13,
          "Trailers": 0,
          "Parodies": 0,
          "Others": 0
        }
      },
      "Created": "2023-04-29T15:40:05.8678381Z",
      "Updated": "2024-07-13T22:14:56.8266272Z",
      "Name": "Active Raid: Kidou Kyoushuushitsu Dai Hachi Gakari",
      "Size": 12
    },

DESCRIPTION

For a few weeks now the "Has Missing Episodes" filter has been returning nonsensical results which include several series that are not missing any episodes. These series are mixed in with series that actually are missing episodes making it easy to miss the issue. Checking the series or parent groups separately from the filter shows no missing episodes for said series. Some brief discussion from discord.

STEPS TO REPRODUCE

Click the filter button in the collection tab of the WebUI and apply the "Has Missing Episodes" or "Has Missing Episodes (Collecting)" filter. Observe that there may be series present that are not missing any episodes.

natyusha commented 3 months ago

Resolved (soon) thanks Ter and team