bdunogier / subber

Web application that subtitles downloaded episodes in the background
MIT License
2 stars 1 forks source link

Change SubtitleIndex to be mapped to an Episode #26

Open bdunogier opened 9 years ago

bdunogier commented 9 years ago

A SubtitleIndex is really applied to an episode (show+season+episode number), not to a Release. EpisodeSubtitleIndex ?. A Release could be matched against an EpisodeSubtitleIndex in order to get the ReleaseSubtitleIndex for this Release, with incompatible/compatible subitltes.

Sorting could be taken care of once and for all when the EpisodeSubtitleIndex is created, since we can sort by preference regardless of the compatibility.

This means that the EpisodeIndex doesn't know about compatibility. The ReleaseIndex does.