-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
IINA incorrectly reports "No subtitles found" using Open Subtitles #3907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
AnalysisThe problematic code is the following line from let IMDB = (bestGuess?["IDMovieIMDB"] as? String) ?? "" That line is expecting Open Subtitles to return a result of this form: <name>BestGuess</name>
<value>
<struct>
<member>
<name>IDMovieIMDB</name>
<value>
<string>0080339</string>
</value>
</member> In the case at hand Open Subtitles is returning this: <name>BestGuess</name>
<value>
<struct>
<member>
<name>IDMovieIMDB</name>
<value>
<int>3032476</int>
</value>
</member> So the cast to FixingThere are issues with merge conflicts in this area with the plugin system, so I will be holding off creating a pull request until the plugin system has been merged. The fix not hard. Maybe something like: guard let bestGuess = try self.findPath(["data", filename, "BestGuess"], in: response) as? [String: Any], let imdbEntry = bestGuess["IDMovieIMDB"] else {
resolver.fulfill("")
return
}
if let IMDB = imdbEntry as? Int {
resolver.fulfill(String(IMDB))
return
}
let IMDB = imdbEntry as? String ?? ""
resolver.fulfill(IMDB) |
Added label to indicate fix has been merged into develop. Re-opening since this is still a problem in IINA 1.3.0, the latest release. This way any users planning on reporting this problem will hopefully find this open issue and not enter a duplicate. |
Fixed in IINA 1.3.1. |
System and IINA version:
Expected behavior:
If subtitles can be found by hand using Open Subtitle's web site then IINA will be able to find the subtitles.
Actual behavior:
For a video file named
Better.Call.Saul.S04E03.1080p.BluRay.x265-RARBG.mp4
using Open Subtitles IINA reportsNo subtitles found
. Searching Open Subtitles by hand using the textBetter.Call.Saul.S04E03.1080p.BluRay.x265-RARBG
, Open Subtitles adjusts the search string to bebetter call saul s04e03
and finds the correct subtitle file.Steps to reproduce:
Better.Call.Saul.S04E03.1080p.BluRay.x265-RARBG.mp4
Find Online Subtitles...
under theSubtitles
menuNo subtitles found
is displayedThis is an IINA issue.
How often does this happen?
Everytime.
The text was updated successfully, but these errors were encountered: