HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: -near option
Author: Monty
Date: 12/03/2001 15:19
 
I did have a limit but near items (like gif and jpg's) 
should still be gotten.  As a temporary (and a quick 
fix) I just changed the source to:

    if (liens[ptr]->depth <= 1) {
      if(opt->nearlink && (endswith(fil,".gif")
                          || endswith(fil,".jpg")
                          || endswith(fil,".png")
                          )
      {
         forbidden_url=0;    // interdire récupération 
du lien
         if ((opt->debug>1) && (opt->log!=NULL)) {
           fspc(opt->log,"debug"); fprintf(opt-
>log,"file from too far level (BUT NOT) ignored at %
s : %s"LF,adr,fil);
           test_flush;
         }
      } else {
         forbidden_url=1;    // interdire récupération 
du lien
         if ((opt->debug>1) && (opt->log!=NULL)) {
           fspc(opt->log,"debug"); fprintf(opt-
>log,"file from too far level ignored at %s : %
s"LF,adr,fil);
           test_flush;
      }
    }




Sorry about my ignorance but will we see english 
comments sometime soon.  It's hard to follow the code 
with french comments.  I just feel that a lot more 
people around the world will be able to follow the 
source code if english comments were used.
 
Reply Create subthread


All articles

Subject Author Date
-near option

12/01/2001 21:51
Re: -near option

12/01/2001 22:23
Re: -near option

12/02/2001 09:41
Re: -near option

12/03/2001 15:19
Re: -near option

12/06/2001 12:29
Re: -near option

12/08/2002 14:30
Re: -near option

10/17/2005 12:34




0

Created with FORUM 2.0.11