Add episode number to EpisodeFile

Any chance you can add episode number to EpisodeFile? It would make it alot easier (i have to loop every episode to get the quality of the file atm.)

[
{
“seriesId”: 1,
“seasonNumber”: 1,
“episodeNumberPLX”: 9999999,
“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
}
]

We don’t store the episode number in the DB because it can be one or more, so no, we can’t.

What are you trying to do exactly? Drone pulls down the episodes and episodefiles and joins them in the UI by episode file id.

I want to add what type quality each downloaded episodes has to https://github.com/styxit/HTPC-Manager/pull/297

Ah, i think i get it now, you match episodefileid in EpisodeFile against episodefileid in the Episode. :smiley:

Cool! Yeah, thats exactly how we do it.