The module adds into the DB (bt_torrents_files table) only first file's properties (as I can see). Is it possible to calculate the total size of the files in a torrent?
I'm sorry if this question is stupid or if this question already has an answer - it's hard to me to read all the issues.:)
Comments
Comment #1
bradfordcp commentedIt should be grabbing all of the various file sizes as listed in the torrent file. I am not sure how this is happening, the code for this is located in bt_torrent_insert():
As you can see it first checks to see if this is a single or multi-file torrent. From there it either loops over the files array or pulls the information from the info section. I will look into the issue and try and duplicate. Thanks for the report!
Comment #2
liquixis commented(sorry for my english)
Check "bt_torrents_files" table structure. It must not has "primary key" (for field "nid"). If it has, change it to "index" (because it must be not unique).
Comment #3
liquixis commented