can I manually add a file done.sha1?

View: New views
2 Messages — Rating Filter:   Alert me  

can I manually add a file done.sha1?

by tweetyhack :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all. just wondering if I can do this: If I have a file already(downloaded from another program), how can I add this file into the gtk-gnutella database so that when gtk-gnutella searches and sees the same file, it will mark it as owned already.  And can gtk-gnutella mark a file as being owned even though it has not really downloaded the file?  I want to be able to right-click on a selection and mark it completed and that would stop(and prompt to delete the current download) but mark the download as completed.

Great work on the program.  I wish I did C but I find the pointers and address stuff confusing. I'll stick with Ruby :)


     

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gtk-gnutella-users mailing list
gtk-gnutella-users@...
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-users

Re: can I manually add a file done.sha1?

by Christian Biere :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Simon Tan wrote:
> Hi all. just wondering if I can do this: If I have a file already(downloaded
> from another program), how can I add this file into the gtk-gnutella database
> so that when gtk-gnutella searches and sees the same file, it will mark it as
> owned already.

The easiest way is to share the files. Depending on the number of files
and their size, it may take some hours to calculate the hashsums, so
that gtk-gnutella can identify search results for files you already own.

The alternative is to edit ~/.gtk-gnutella/done.sha1 while gtk-gnutella
is not running. The file lists each known file, one per line, as SHA-1
in Base32 encoding, followed by two spaces and the filename, whereas the
latter may be arbitrary.

> And can gtk-gnutella mark a file as being owned even though
> it has not really downloaded the file?

No, the only alternative is the manual method as described above.

> I want to be able to right-click on a
> selection and mark it completed and that would stop(and prompt to delete the
> current download) but mark the download as completed.

This is certainly an interesting and worthwhile feature but it's not
implemented.

--
Christian

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gtk-gnutella-users mailing list
gtk-gnutella-users@...
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-users