added size_bytes
[cloudstore.git] / torrent / rtorrent-dump.pl
index f8207f4..c8b7406 100755 (executable)
@@ -13,10 +13,10 @@ while (<DATA>) {
        chomp;
        next if /^#/;
        my ($name,$fmt) = split(/\t+/,$_,2);
-       $sfmt .= $fmt . '|';
+       $sfmt .= $fmt . ' ';
        push @keys, $name;
 }
-$sfmt =~ s/\|$/\n/;
+$sfmt =~ s/\s+$/\n/;
 
 # arrayref and error (standard version)
 my ($tlist, $error)=$h->torrents_list;
@@ -31,4 +31,5 @@ __DATA__
 #hash                  %-40s
 percent                        %5s
 status                 %-11s
+size_bytes             %12d
 base_filename  %s