Jump to content

'targets' key in resume.dat


Thermopyle

Recommended Posts

It looks like the 'targets' key in resume.dat is used for the Relocate feature. This key works like this as far as I can tell:

[*] Not present on multi file torrents that haven't been relocated

[*] Present on single file torrents

[*] Present on multi file torrents with files that have been relocated

Does anyone know how to map from the files listed in 'targets' to the appropriate file in the .torrent['info']['files'] key?

For example, based upon resume.dat I'm trying to locate where utorrent is currently seeding a file from. For .torrent['info']['files'] = filename.avi, resume.dat[.torrent]['targets'] may have "C:\relocated\newfilename.avi".

This is easy if it's just a single-file torrent. However, if it's a multi-file torrent...how do I determine the correct mapping from ['files'] to ['targets']? Filesize is one idea, but it's possible to have two different files with the same size.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...