XaF / TraktForVLC

Automatically trakt.tv what you're watching on VLC
300 stars 49 forks source link

helper: commands: resolve: fix hash match when multiple entries are returned #97

Closed XaF closed 6 years ago

XaF commented 6 years ago

When multiple entries are returned by the OpenSubtitles API, we first check for episodes and then movies. However, nothing guarantees that both of those will have data in them. We thus need to first compute the list of matching returned medias of the right type, and then, if any matches, determine the closest.

Fixes #96

Signed-off-by: Raphaël Beamonte raphael.beamonte@gmail.com