I kindly wish amulecmd to have "verbose" mode in giving Results (maybe in other commands too, like "Show DL", "Show UL", "Show Servers").
What I imagine is detailed Results list format (maybe "Results detailed" , "Results -v" ... ?),
with all internal information about found result, like "ed2k" key, comment... etc.
Maybe it might look like:
$ amulecmd -c "Results detailed"
Results-found: R
Result-id: 0
Filesize: ..... bytes
Filename-0: first known filenamename for such ed2k sum
Filename-1: second known filenamename for such ed2k sum...
...
Filename-n: nth known filenamename for such ed2k sum
ed2k-simple: ed2k:// ....
ed2k-with-hosts: ed2k:// ...
...
Server-0: ip:port of first hosting serwer gound
....
etc.
[empty line]
Result-id: 1
.....
[empty line]
Result-id: R-1
....
I don't know what data are available internally, so I am only making guesses. I hope example makes it quite understandable.
Purpose:
I'd like to make wrapper around amulecmd, that will make some processing for results searches. Like: archiving, statistics about file availbility (trends in popularity of given files, to show which files to download before they disappear... maybe archiving search results in sqlite3 database?), look for files on ma HDD with simmilar filenames, to suggest "Hey, you have file with simmilar silename, do you want to download it" ... etc.
I wondered about other feature request, some simple C/C++ api, that I could wrap with
http://www.swig.org/ to make amulelib accesible thought not only C/C++ but also other programming languages. But I guessed that it might be bigger effort, and maybe not worth , while there is amulecmd, which can be extended in nice way, to make it a reusable "bridge" for other utilities. How do you think?