El mié 23 ene 2013 17:03:21 CET, Justin Piszcz escribió:


On Wed, Jan 23, 2013 at 8:49 AM, J1 Simón <si...@j1s.es
<mailto:si...@j1s.es>> wrote:

I have defined the next setting in rc file:
set mirror:exclude-regex
\"^.+\.part$|^.+\.url$|^.+\.__JPG$|^.+\.jpg$|^.+\.jpeg$|^.+\__.JPEG$|^.+\.png$|^.+\.PNG$|^.+__\.txt$|^.+\.TXT$|^.+\.nfo$|^.+__\.NFO$\"
But when I download something lftp downloads jpg, txt, etc...
lftp 4.4.0 compiled on Ubuntu 12.10 64 bits


Hi,

You need to escape the pipes in between regexes, e.g.:

set mirror:exclude-regex "regex1\|regex2"


I don't think so.
I have defined in rc file the next settings:
set mirror:exclude-regex "^.+\.part$|^.+\.url$";
alias exclude-regex "set mirror:exclude-regex \"^.+\.part$|^.+\.url$\"";
alias bd "cd /torrent-descargas/BD; lcd /dunehd/Descargando; exclude-regex;";
alias dvd "cd /torrent-descargas/DVD; lcd /dunehd/Descargando; exclude-regex;";
alias mkv "cd /torrent-descargas/mkv; lcd /dunehd/Descargando; exclude-regex;";
alias test "cd /torrent-descargas/test; lcd /dunehd/test; set mirror:exclude-regex \"^.+\.part$|^.+\.url$|^.+\.JPG$|^.+\.jpg$|^.+\.jpeg$|^.+\.JPEG$|^.+\.png$|^.+\.PNG$|^.+\.txt$|^.+\.TXT$|^.+\.nfo$|^.+\.NFO$\"";
I do a mirror of a test folder with sample files: prueba.JPG  prueba.avi  prueba.jpg  prueba.nfo  prueba.part  prueba.txt  prueba.url
It works correctly. It downloads all but prueba.part and prueba.url
I do a mirror using the "test" alias and it works correctly too. It downloads only prueba.avi
I think the problem is when I use several queue downloading several folders with different alias. I have to do more tests.

_______________________________________________
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

Reply via email to