aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Import file data (not meta-data)  (Read 3181 times)

asamule

  • Approved Newbie
  • *
  • Karma: 2
  • Offline Offline
  • Posts: 45
Import file data (not meta-data)
« on: August 17, 2008, 09:04:35 AM »

I would like to request an option to import data from any arbitrary file into an existing download.

The option would not be available until hashes have been acquired for the file. But after that you can right click on the file and choose import - this would read in the file and locate any completed parts and slipstream them into the file (i.e. merge any currently completed parts with any completed parts from the other file).

And if it could use AICH for detecting completed (or assumed completed) parts that would really be wonderful.

BTW: Is it possible request hashes for a file from a peer without waiting in line to download actual data for the file?

If it wasn't obvious, this feature is to be able to take over a partial torrent download, and attempt it in aMule. (Well a file from any source actually.)
Logged

lfroen

  • Guest
Re: Import file data (not meta-data)
« Reply #1 on: August 18, 2008, 03:58:48 PM »

Well, it couldn't be any source, since amule have to figure out somehow which data is available and which is not. I have no idea where torrent save this info. Isn't it application-specific?
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Import file data (not meta-data)
« Reply #2 on: August 18, 2008, 06:44:32 PM »

The torrent file has the same "format" as the part file (none...). The idea is to simply rehash it (possibly using AICH) and see what's already there. Torrents tend to blink out of existence suddenly, usually at 95% completion.  :P
One idea was to full stop the download, replace the part file with the torrent file, rehash it and then resume it.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

asamule

  • Approved Newbie
  • *
  • Karma: 2
  • Offline Offline
  • Posts: 45
Re: Import file data (not meta-data)
« Reply #3 on: August 22, 2008, 10:27:53 PM »

Well, it couldn't be any source, since amule have to figure out somehow which data is available and which is not. I have no idea where torrent save this info. Isn't it application-specific?
aMule has already downloaded hashes for the file. Use the ed2k hashes to check the file.

.torrents don't save the data anywhere - if they have it, the file has it, if not then not. Simply reading the file and checking hashes (either ed2k ones, or torrent ones) will tell you.
Logged