forked from e621ng/e621ng
iqdb fixes
This commit is contained in:
parent
91a0917477
commit
0adfc79087
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user