Show info about filename (correct filename, old filename, suggested filename) at /episode endpoint

Hey there,
I think that there should be some info added at the /episode endpoint of the api:

{
  "seriesId": 36,
  "episodeFileId": 9964,
  "seasonNumber": 4,
  "episodeNumber": 13,
  "title": "Do No Harm",
  "airDate": "2021-05-05",
  "airDateUtc": "2021-05-06T01:00:00Z",
  "overview": "Bravo is tasked with bringing a defecting Boko Haram lieutenant into U.S. custody, but the mission goes sideways when the target gets attacked. Sonny drops the ball as Bravo’s rep on the USS Keating, and the entire team pays the price.",
  "episodeFile": {
    "seriesId": 36,
    "seasonNumber": 4,
    "relativePath": "Season 4/SEAL Team - S04E13 - Do No Harm.mkv",
    "path": "/home/cas/plex-media/series/SEAL Team/Season 4/SEAL Team - S04E13 - Do No Harm.mkv",
    "size": 190263297,
    "dateAdded": "2021-05-06T06:20:16.929384Z",
    "sceneName": "Seal.Team.S04E13.720p.WEB.x265-MiNX[eztv.re]",
    "quality": {
      "quality": {
        "id": 5,
        "name": "WEBDL-720p",
        "source": "web",
        "resolution": 720
      },
      "revision": {
        "version": 1,
        "real": 0,
        "isRepack": false
      }
    },
    "language": {
      "id": 1,
      "name": "English"
    },
    "mediaInfo": {
      "audioChannels": 2,
      "audioCodec": "AAC",
      "videoCodec": "x265"
    },
    "originalFilePath": "Seal.Team.S04E13.720p.WEB.x265-MiNX[eztv.re].mkv",
    "qualityCutoffNotMet": true,
    "id": 9964
  },
  "hasFile": true,
  "monitored": true,
  "absoluteEpisodeNumber": 77,
  "unverifiedSceneNumbering": false,
  "id": 6686
}

I think there should be info about the following:
When you (in the web ui) click the preview rename option for a series, you get to see the files with “wrong” naming and the suggested new name. That should also be shown in the api output:

{
  "seriesId": 36,
  "episodeFileId": 9964,
  "seasonNumber": 4,
  "episodeNumber": 13,
  "title": "Do No Harm",
  "airDate": "2021-05-05",
  "airDateUtc": "2021-05-06T01:00:00Z",
  "overview": "Bravo is tasked with bringing a defecting Boko Haram lieutenant into U.S. custody, but the mission goes sideways when the target gets attacked. Sonny drops the ball as Bravo’s rep on the USS Keating, and the entire team pays the price.",
  "episodeFile": {
    "seriesId": 36,
    "seasonNumber": 4,
    "relativePath": "Season 4/SEAL Team - S04E13 - Do No Harm.mkv",
    "path": "/home/cas/plex-media/series/SEAL Team/Season 4/SEAL Team - S04E13 - Do No Harm.mkv",
    "size": 190263297,
    "dateAdded": "2021-05-06T06:20:16.929384Z",
    "sceneName": "Seal.Team.S04E13.720p.WEB.x265-MiNX[eztv.re]",
    "naming": {
      "correctFileName": false,
      "currentFileName": "SEAL Team - S04E13 - Do No Harm.mkv",
      "suggestedFileName": "SEAL Team Season 04 Episode 13 - Do No Harm [1080p].mkv"
    },
    "quality": {
      "quality": {
        "id": 5,
        "name": "WEBDL-720p",
        "source": "web",
        "resolution": 720
      },
      "revision": {
        "version": 1,
        "real": 0,
        "isRepack": false
      }
    },
    "language": {
      "id": 1,
      "name": "English"
    },
    "mediaInfo": {
      "audioChannels": 2,
      "audioCodec": "AAC",
      "videoCodec": "x265"
    },
    "originalFilePath": "Seal.Team.S04E13.720p.WEB.x265-MiNX[eztv.re].mkv",
    "qualityCutoffNotMet": true,
    "id": 9964
  },
  "hasFile": true,
  "monitored": true,
  "absoluteEpisodeNumber": 77,
  "unverifiedSceneNumbering": false,
  "id": 6686
}

So I suggest adding the naming object seen in the second code-block.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.