byroot/ruby-osdb — pull request #7 by runa (2012-08-23 01:14:58+00:00)
Title: try to match subtitles by name or full text search

dear byroot,
I modified your (great) ruby-osdb to fulffill my needs; I found out that some subs didn't had the bytesize or the hash info, but could be easily matched using the filename, and that's what I did (see a27caec ).

Then, I wrongly used a 2 letter code to specify my preferred lang, so I patched getsub to yell if the lang code is not correct (see 517b9db )

Also, my mediacenter doesn't like .txt subs, so I patched it to choose srt over txt (see 9d71775 )

I hope you like the patches or at least, the ideas behind them.

thanks :)