pulling files that have NOT been modified

Advertisement

alvintc
Joined:
Posts:
5
Location:
UK

pulling files that have NOT been modified

BIG EDIT:
My workflow is:
1. Torrent finishes and moves to folder on seedbox
2. Torrent client runs filebot to copy the files & organise
3. WinSCP to get & delete the copied file

issues:
1. How do I avoid pulling files that have not yet completed #2
2. Can I combine the "already downloaded" with the pull/ delete option:
echo on
# Connect
open ftp://Connect stuff/ -rawsettings ProxyPort=0

# Download Films newer than 1 day then delete
cd /media/Films
Echo Getting files...
get -delete * "E:\Films-E\"

# Disconnect
close
# Exit WinSCP
exit
Last edited by alvintc on 2020-01-19 23:46; edited 2 times in total

Reply with quote

Advertisement

alvintc
Joined:
Posts:
5
Location:
UK

OK, so I found the install bit... that looks to be doing what I need (I'll need to restructure the folders on the seedbox to a single root)

This leads the remaining question:
How can I call filebot at the end?
Alternatively if I can download to a temporary directory that'll work as well

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,262
Location:
Prague, Czechia

Re: Move files from seedbox to local then call filebot

I'm not sure I understand what are you doing.
Did you wrote some script yet? Can you show us?

Reply with quote

Guest

Yep... explaining is not my strong suit!

I've used the script for "Remember downloaded files"

I've now got a couple of batch files that do the calling - basically the content of the files is:
powershell.exe -ExecutionPolicy Bypass -File "C:\Users\Mark\AppData\Roaming\WinSCP\Extensions\DownloadNewFiles.WinSCPextension.ps1" -sessionUrl "ftp://FTPDETAILS" -localPath "J:\Syncd\M0vies" -remotePath "/Completed/Films-Radarr/" -listPath "I:\SeedboxAuto\AlreadyDownloadedRadarr.txt"

What I'd really like to do is call my filebot script when this completes:
filebot.exe -script fn:amc --output "I:\FilebotOut" --action move -non-strict "J:\Syncd\M0vies" --log-file amc.log --conflict auto --def minFileSize=220000 minLengthMS=120000 m0vieFormat="J:/Films-J/{n} ({y})/{plex.name} {vf}" subtitles=en clean=y

The other question I have is if I set the WinSCP as a service, what happens if it's still downloading a file and the service restarts?

Reply with quote

alvintc
Joined:
Posts:
5
Location:
UK

OK, this seems quite tricky AND I'm wasting local bandwidth dragging over crap...

So I'm now running FB in the seedbox. This gives me clean files/ folders to download, as they're copies of the actual torrents I still need to delete them.

My script now looks like:
echo on
# Connect
open ftp://Connect stuff/ -rawsettings ProxyPort=0
 
# Download Films newer than 1 day then delete
cd /media/Films
Echo Getting files...
get -delete * "E:\Films-E\"
 
# Disconnect
close
# Exit WinSCP
exit

The problem I appear to be running into is that I can end up trying to copy & delete a file that is still being processed in the seedbox (e.g. a 20GB film could still be copying from the torrent to the filebot folder etc.)

Is there a way to only pick up files/ folders that have NOT been modified in the last X minutes?

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum