EpisodeFile

Mark McDowall edited this page May 17, 2018 · 5 revisions

GET

Summary

Returns all episode files for the given series

Parameters

Required:

seriesId (int)

Returns JsonArray
[
    {
        "seriesId": 1,
        "seasonNumber": 1,
        "path": "C:\\Test\\Breaking Bad\\Season 01\\Breaking Bad - S01E01 - Pilot [Bluray 720p].mkv",
        "size": 2183157756,
        "dateAdded": "2013-05-29T10:42:05.1335301Z",
        "sceneName": "",
        "quality": {
            "quality": {
                "id": 1,
                "name": "Bluray 720p"
            },
            "proper": false
        },
        "id": 1
    }
]

GET/{id}

Summary

Returns the episode file with the matching id

Parameters

Required:

id (int)

Returns
{
    "seriesId": 1,
    "seasonNumber": 1,
    "path": "C:\\Test\\Breaking Bad\\Season 01\\Breaking Bad - S01E01 - Pilot [Bluray 720p].mkv",
    "size": 2183157756,
    "dateAdded": "2013-05-29T10:42:05.1335301Z",
    "sceneName": "",
    "quality": {
        "quality": {
            "id": 1,
            "name": "Bluray 720p"
        },
        "proper": false
    },
    "id": 1
}

DELETE/{id}

Summary

Delete the given episode file

Parameters

Required:

id (int)

Returns
{}

PUT/{id}

Summary

Updates the quality of the episode file and returns the episode file

Parameters

Required:

id (int) (in URL)

JSON body with quality. For example:

{ 
  "quality": {
    "quality": {
      "id": 8
    },
    "revision": {
      "version": 1,
      "real": 0
    }
  },
}
Returns
{
    "seriesId": 1,
    "seasonNumber": 1,
    "path": "C:\\Test\\Breaking Bad\\Season 01\\Breaking Bad - S01E01 - Pilot [Bluray 720p].mkv",
    "size": 2183157756,
    "dateAdded": "2013-05-29T10:42:05.1335301Z",
    "sceneName": "",
    "quality": {
        "quality": {
            "id": 1,
            "name": "Bluray 720p"
        },
        "proper": false
    },
    "id": 1
}
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.