- Make Filebot run on Ubuntu machine all the time and watch Sabnzbd's completed folder. (probably not part of script, but necessary for 24/7 folder watching)
Watch for folders starting with "The.Daily.Show" or "Jimmy.Kimmel"
Take video file inside folder, rename it according to tvdb, and move it to Popcorn Hour Daily Show folder.
Delete original folder once processed and moved.
Help me create a script for certain show?
Help me create a script for certain show?
I may be asking too much. Apologies if so. I know nothing about scripting, so I wonder if I spell out every step, minus details like the names of folders, if someone would help me make a script:
Re: Help me create a script for certain show?
If anyone has time, here's thing to get started on this:
Watch folders/files:
http://filebot.sourceforge.net/forums/v ... ?f=4&t=188
Rename and force series:
http://filebot.sourceforge.net/forums/v ... ?f=4&t=158
Should be pretty easy to DIY if you know your way around Groovy but since I have limited time to work on this project lately I only write scripts for people that contribute to filebot in one way or another.
Watch folders/files:
http://filebot.sourceforge.net/forums/v ... ?f=4&t=188
Rename and force series:
http://filebot.sourceforge.net/forums/v ... ?f=4&t=158
Should be pretty easy to DIY if you know your way around Groovy but since I have limited time to work on this project lately I only write scripts for people that contribute to filebot in one way or another.
Re: Help me create a script for certain show?
That all makes sense! I'll try to figure out myself and donate. I'm really in awe of how clean and effective this program is right out of the box.
Re: Help me create a script for certain show?
Donation sent and thank you!
Re: Help me create a script for certain show?
Here a sample for watching specific files:
Note: If a whole folder with files is moved filebot may not detect new files as it only starts watching for changes after the folder is moved. If that is a problem we can just change to script to poll for changes.
Code: Select all
filebot -script seebelow.groovy "X:/Downloads/"
Code: Select all
args.watch{ changes ->
changes.findAll{ it =~ /(?i)the.daily.show/ }.each{ f ->
rename(file: f, query: 'The Daily Show with Jon Stewart', db: 'TheTVDB', action: 'move', output: 'E:/output', format: 'The Daily Show/The Daily Show - {s00e00} - {t}')
}
}
println 'Waiting for changes'
console.readLine() // keep running and watch for changes
Re: Help me create a script for certain show?
If it's single files that get moved around then watching works fine, but whenever I copy a folder structure it sometimes doesn't pick things up. Seems to be and underlying Java/Windows problem.
A. One option is to use a windows optimized tool for folder watching and then call filebot with scripts like these:
http://filebot.sourceforge.net/forums/v ... =158#p1135
B. Or do polling, kinda like the housekeeping.groovy script does:
A. One option is to use a windows optimized tool for folder watching and then call filebot with scripts like these:
http://filebot.sourceforge.net/forums/v ... =158#p1135
B. Or do polling, kinda like the housekeeping.groovy script does:
Code: Select all
while (true) {
sleep(2 * 1000)
rename(file: args.getFiles{ it =~ /(?i)the.daily.show/ }, query: 'The Daily Show with Jon Stewart', db: 'TheTVDB', action: 'move', output: 'E:/output', format: 'The Daily Show/The Daily Show - {s00e00} - {t}')
}