From 7f1eb1a708f0ad39190adb7a2e5435f6ec8efc84 Mon Sep 17 00:00:00 2001 From: martin sarsale Date: Wed, 20 Jun 2012 23:29:04 -0300 Subject: [PATCH] moviebytesize should be a string. maybe there's a better place to cast it? --- bin/getsub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/getsub b/bin/getsub index ff5e996..791f09c 100755 --- a/bin/getsub +++ b/bin/getsub @@ -133,7 +133,7 @@ end movies.each do |movie| begin puts "* search subs for: #{movie.path}" - subs = server.search_subtitles(:moviehash => movie.hash, :moviebytesize => movie.size, :sublanguageid => @options[:language]) + subs = server.search_subtitles(:moviehash => movie.hash, :moviebytesize => movie.size.to_s, :sublanguageid => @options[:language]) if subs.any? select_and_download!(subs, movie) else