Closed (fixed)
Project:
BitTorrent
Version:
6.x-9.0-beta1
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Apr 2009 at 22:27 UTC
Updated:
29 May 2009 at 14:40 UTC
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