iqdb fixes
This commit is contained in:
@@ -13,7 +13,7 @@ module Iqdb
|
|||||||
def add(post)
|
def add(post)
|
||||||
hex = post.id.to_s(16)
|
hex = post.id.to_s(16)
|
||||||
process do |io|
|
process do |io|
|
||||||
io.puts "add 0 #{hex} :#{post.preview_file_path}"
|
io.puts "add 0 #{hex}:#{post.preview_file_path}"
|
||||||
io.puts "quit"
|
io.puts "quit"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module Iqdb
|
|||||||
if File.exists?(post.preview_file_path)
|
if File.exists?(post.preview_file_path)
|
||||||
puts post.id
|
puts post.id
|
||||||
hex = post.id.to_s(16)
|
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
|
||||||
end
|
end
|
||||||
io.puts "quit"
|
io.puts "quit"
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ module Iqdb
|
|||||||
def add(post)
|
def add(post)
|
||||||
request do
|
request do
|
||||||
hex = post.id.to_s(16)
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user