In smplayer 0.8.5 a problem with opensubtitles.org was fixed. It failed sometimes to find subtitles. Now I noticed that the problem has come back. It wasn’t able to find subtitles for some videos, while subdownloader could find them.
I tried to find out the problem. I realized that subdownloader was actually searching for subtitles for several videos at the same time (all video files in the directory). I removed all files, leaving only one video. Now subdownloader failed too! It couldn’t find any subtitle for the video. I added back one video to the directory and now subdownloader could find subtitles for both videos.
Is it a bug in opensubtitles.org? I think it is. Opensubtitles allows to search for subtitles for several videos with one query. If the query has only one search it can fail and returns no subtitles, if the query has 2 or more searches then it correctly returns subtitles for all videos.
So I added a workaround for the problem in smplayer. Now smplayer performs 2 searchs in the query (the same search is duplicated). And this really seems to fix the problem, now smplayer finds subtitles where previously couldn’t find anything.
The fix is in smplayer svn r5532.