projects
/
booh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
67063e1
)
*** empty log message ***
author
gc
<gc>
Sun, 16 Mar 2008 22:50:18 +0000
(22:50 +0000)
committer
gc
<gc>
Sun, 16 Mar 2008 22:50:18 +0000
(22:50 +0000)
bin/booh-classifier
patch
|
blob
|
history
diff --git
a/bin/booh-classifier
b/bin/booh-classifier
index ee7ca7b0cb28e065ce080502edfac24c8e71132a..fd4aafe75902bccb2da1f9c4ca7f69b5a0c4e5c9 100644
(file)
--- a/
bin/booh-classifier
+++ b/
bin/booh-classifier
@@
-366,12
+366,12
@@
class Entry
def get_beautified_name
if type == 'image'
size = get_image_size(path)
def get_beautified_name
if type == 'image'
size = get_image_size(path)
- return _("%s (%sx%s, %s KB)") % [
File.basename(@path)
.gsub(/\.[^.]+$/, ''),
+ return _("%s (%sx%s, %s KB)") % [
@path[$workingdir.length + 1 .. -1]
.gsub(/\.[^.]+$/, ''),
size[:x],
size[:y],
commify(file_size(path)/1024)]
else
size[:x],
size[:y],
commify(file_size(path)/1024)]
else
- return _("%s (video - %s KB)") % [
File.basename(@path)
.gsub(/\.[^.]+$/, ''),
+ return _("%s (video - %s KB)") % [
@path[$workingdir.length + 1 .. -1]
.gsub(/\.[^.]+$/, ''),
commify(file_size(path)/1024)]
end
end
commify(file_size(path)/1024)]
end
end