Error when using the options -s hi
evandrojr opened this issue · comments
-s, --search-by METHODS Ordered list of search methods. h: by movie hash, i: by name on IMDB, n: by name on OSDb, p: by filename on OSDb. e.g -s hi . Default: h
j@fenix ~/p/ruby-osdb> ./bin/getsub -s hi ~/Downloads/
- Search subtitles for zzzzzzzzzzzzzzzzzzz
- Sub already there. To override it use --force
- Search subtitles for zzzzzz
- Sub already there. To override it use --force
- Search subtitles for sample
Something crashed.
Feel free to report the error here: https://github.com/byroot/ruby-osdb/issues
With the following debug informations:
NoMethodError: undefined method map' for "":String: /home/j/p/ruby-osdb/lib/osdb/server.rb:58:in
search_imdb'
/home/j/p/ruby-osdb/lib/osdb/search/imdb.rb:12:in search_subs_for' /home/j/p/ruby-osdb/lib/osdb/subtitle_finder.rb:13:in
block in find_sub_for'
/home/j/p/ruby-osdb/lib/osdb/subtitle_finder.rb:12:in each' /home/j/p/ruby-osdb/lib/osdb/subtitle_finder.rb:12:in
find_sub_for'
./bin/getsub:62:in block in run!' ./bin/getsub:53:in
each'
./bin/getsub:53:in run!' ./bin/getsub:157:in
The problem seems to be the option i (imdb) to be more precise.