Commit Graph

2 Commits (2910bf499e8571cbb55d55c2882ecc2779079f01)

Author SHA1 Message Date
Palatosino 23da8f77fd Fix magnetToTorrent
magnetToTorrent was broken because torrentFile.files is not indexable (but is iterable).
The only reason to use files[0] is to generate a "baseName" that is finally used to do self.md5(baseName) for the torrent file.

I can iterate to the first element (to emulate files[0]) and get the name, but I think that is useless.

We can remove this and use the magnet. I think that the best will be use the magnet ID information from the magnet link, not all the magnet, to remove optional arguments, but his is acceptable as a fast fix, and much better that the initial approach that can colisitionate with other files that have the same initial file (imagine a README.txt!!!!)
2016-05-08 13:58:59 +02:00
DiMartinoXBMC 106e42279d SkorbaLoader 2016-03-21 19:36:44 +03:00