iqdb fixes

This commit is contained in:
r888888888 2014-03-24 15:10:20 -07:00
parent 91a0917477
commit 0adfc79087
3 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ module Iqdb
def add(post)
hex = post.id.to_s(16)
process do |io|
io.puts "add 0 #{hex} :#{post.preview_file_path}"
io.puts "add 0 #{hex}:#{post.preview_file_path}"
io.puts "quit"
end
end

View File

@ -6,7 +6,7 @@ module Iqdb
if File.exists?(post.preview_file_path)
puts post.id
hex = post.id.to_s(16)
io.puts "add 0 #{hex} :#{post.preview_file_path}"
io.puts "add 0 #{hex}:#{post.preview_file_path}"
end
end
io.puts "quit"

View File

@ -30,7 +30,7 @@ module Iqdb
def add(post)
request do
hex = post.id.to_s(16)
socket.puts "add 0 #{hex} :#{post.preview_file_path}"
socket.puts "add 0 #{hex}:#{post.preview_file_path}"
end
end