Skip writing out torrent if already exists

4 views
Skip to first unread message

lovedaddy

unread,
Nov 8, 2008, 4:12:24 PM11/8/08
to rssdler
Hey all, is there the functionality to skip downloading or writing a
torrent file if the file its about to download already exists.

Example, got a config file with...

[thread1]
download1 = this_series1
download2 = this_series2
download3 = this_series3

[thread2]
download1 = this_series1
download2 = this_series2
download3 = this_series3

I've got what I want to download in both threads, incase one of the
sites doesn't have it. However, if I set noClobber to true it creates
a .1.torrent file if both threads had the torrent. (and as it goes
into my watched folder it gets quite messy), but as I read it, if I
set noClobber to false it will overwrite the .torrent from the second
site if they both have it.

Is there a way to just skip the download if the file already exists?
Or is there a better solution. I was looking in the class findNewFile
to possibly hack something in, but seemed a bit nasty to do an
os.exist or whatever and then dump the file.

Thanks in advance.
Reply all
Reply to author
Forward
0 new messages