FileBot TV Renamer and Subtitle Downloader

  Thread Rating:
  • 4 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
rednoah42 Offline
Senior Member
Posts: 109
Joined: Sep 2011
Reputation: 4
Post: #61
Capt.Insano Wrote:a) Rename a file while COPYING (rather than moving) it so it leaves the original in place for seeding?
Here's a script that'll first copy files and then move:
http://filebot.sourceforge.net/forums/vi...4&t=5#p511

No plans for symlinks though. Doesn't work on Windows anyway and requires Java 7 which excludes MacOS. Though it might work if you first create all the symlinks in a temporary folder keeping the original name and then rename/move the symlinks.

Capt.Insano Wrote:I know this can be achieved by SortTV which I currently use, but I would love to try FileBot!!
There's a script that's trying to clone SortTV here:
http://filebot.sourceforge.net/forums/vi...=4&t=5#p52

(looks a bit complex 'cause it's trying to ignore handling partially downloaded multi-volume rars)


PS: these scripts might require a newer beta revision:
http://sourceforge.net/projects/filebot/...ebot/HEAD/
(This post was last modified: 2012-03-07 06:22 by rednoah42.)
find quote
rednoah42 Offline
Senior Member
Posts: 109
Joined: Sep 2011
Reputation: 4
Post: #62
I'll add an option for that with next release to make things work easily right out of the box: --action move|copy|symlink|test
find quote
rednoah42 Offline
Senior Member
Posts: 109
Joined: Sep 2011
Reputation: 4
Lightbulb  --action move|copy|symlink|hardlink|test
Post: #63
Capt.Insano Wrote:b) Move the File, Renaming it as needed and place a Symlink to the Moved/Renamed file with the original file name in the original file location so that seeding can still go on?
Added another argument for that. You'll need Java 7 for symlink/hardlink:
Code:
--action move|copy|symlink|hardlink|test

Check out that latest build here:
http://sourceforge.net/projects/filebot/...ebot/HEAD/
(This post was last modified: 2012-03-07 17:31 by rednoah42.)
find quote
Capt.Insano Offline
Member
Posts: 78
Joined: Mar 2010
Reputation: 0
Location: Dublin, Ireland
Post: #64
rednoah42 Wrote:Added another argument for that. You'll need Java 7 for symlink/hardlink:
Code:
--action move|copy|symlink|hardlink|test

Check out that latest build here:
http://sourceforge.net/projects/filebot/...ebot/HEAD/

Amazing!! I'll try it out tomorrow, away from my set-up today!!

Thanks a Million!

[Image: watched-fanart.jpg]
find quote
Jobu279 Offline
Junior Member
Posts: 7
Joined: Mar 2012
Reputation: 0
Post: #65
Hi Rednoah - thanks for your help so far. I will maybe look at groovy but for now I have build a batch file which checks a folder for new files and then runs.

What I run is:

filebot -get-missing-subtitles --lang de E:\ServerFolders\Downloads

filebot -get-missing-subtitles --lang en E:\ServerFolders\Downloads

filebot -rename E:\ServerFolders\Downloads --format "E:/ServerFolders/Series/{n}/{n.space('.')}.{s00e00}.{t.space('.')}.{vf}" -non-strict

Of couse I have some unmatched episodes still enjoying life in the Downloads folder - however when using the non-strict on the rename cli it moves a bunch of episodes - but also some it shouldn't (only based on matching S01E13 info). If I remove the non-strict it will not match/move the files at all Sad Can I do something about this? Otherwise I will have to search for missing episodes with wrong names... And that is going to suck donkey ass Smile

rednoah42 Wrote:By default FileBot will only fetch "perfectly matched" subtitles from OpenSubtitles and Sublight via hashlookup. OpenSubtitles can be unstable at times.

TIP: Set -non-strict flag to enable name matching when looking up subtitles (e.g. matching SxE pattern, very similar in name, etc).


Heard about that site, but do they have a public API? Now if they also support hash-lookup I will definitely add support.


Yes, absolutely! But as soon as you need an if-then or for-loop to get your stuff done. Then you will LOVE to learn Groovy. Personally, I just can't be bothered with cmd scripts, and I'd hate to help people out with that.

Groovy is just nice to work with and Windows/Linux/Mac people get a common platform to collaborate and share scripts for automation. Doesn't even have to be about renaming/subtitles, can be anything that makes sense. I myself use filebot -script BuildData.groovy to update the shared movie/series index.


That will work in strict mode. Run once forcing --db tvdb and then --db themoviedb. But you need S00E00, 1x01, etc in episode names and {name} {year} for movies. Don't set -non-strict in a movies/episodes mixed setting!

There a script that'll try to make it work without SxE for episodes and without (year) for movies:
http://filebot.sourceforge.net/forums/vi...4&t=5#p512
find quote
Jobu279 Offline
Junior Member
Posts: 7
Joined: Mar 2012
Reputation: 0
Post: #66
Btw one extra question: in my download folder I have loads of other files e.g. rar files which are not unpacked and so on... I know filebot can unpack them, but I dont need that. Will Filebot only look at MKV and AVI files or will they rename my rar and par files as well?
find quote
rednoah42 Offline
Senior Member
Posts: 109
Joined: Sep 2011
Reputation: 4
Star   
Post: #67
Just rename each file individually. That way you can keep it in strict mode and still process multiple shows.

As for extracting archives you'll need a newer revision. Install r934 and it should work.


Like this:
Code:
def dir = "E:/ServerFolders/Downloads" as File

// extract files from archives and delete archives afterwards
extract(folder:dir) && dir.listFiles{ it =~ /rar$/ }*.delete()

getMissingSubtitles(folder:dir, lang:'de', strict:false)
getMissingSubtitles(folder:dir, lang:'en', strict:false)

// rename each file individually in strict mode
dir.listFiles().each {
    rename(file:it, db:'thetvdb', format:"E:/ServerFolders/Series/{n}/{n.space('.')}.{s00e00}.{t.space('.')}.{vf}", strict:true)
}
(This post was last modified: 2012-03-09 09:17 by rednoah42.)
find quote
rednoah42 Offline
Senior Member
Posts: 109
Joined: Sep 2011
Reputation: 4
Lightbulb  FileBot 2.6
Post: #68
FileBot 2.6 is out! Get it here!

This release integrates 7zip right out of the box so you can extract files from pretty much any kind of archive. New cmdline options for linking/copying files instead of moving and how to handle existing files. Also quite a few little enhancements to movie/series auto-detection and episode matching.

New features:
+ 7-Zip native integration for extracting files from archives
--> supports 7-Zip, Zip, Rar, Tar, Split, Lzma, Iso, HFS, GZip, Cpio, BZip2, Z, Arj, Chm, Lhz, Cab, Nsis, Deb, Rpm, Udf
+ Improved movie/episode auto-detection and matching
+ New CLI -rename option for how to organize files into a new folder structure: --action move|copy|keeplink|symlink|hardlink|test
--> linking requires Java 7
+ New CLI -rename option for how to handle existing files: --conflict override|skip|fail
+ New CLI -extract action and extract() scripting function
+ Various improvements for the FileBot/Groovy Scripting Environment

Noteworty new scripts:
* Sample Script: extract rars, fetch subtitles, move episode files one by one
* Sort out TV Download Folder
* Sort out Tivo Recordings
find quote
wally007 Offline
Member
Posts: 95
Joined: Sep 2009
Reputation: 0
Post: #69
Hi,
new 2.6 version introduced weird behavior with my commands. With previous version i used to run

/Users/Admin/Downloads/FileBot.app/Contents/MacOS/JavaApplicationStub -get-subtitles --lang en --format srt "$1"
(where "$1" is the filename (episode) I'm targeting )
and it would get subtitles ONLY for the file (episode) I targeted.

With version 2.6, it tries to get subtitles for all files (episodes) within the Season folder. Is there any way to restrict it to JUST one file ?
I dont want to use -missing subtitles argument due to another script (sometimes) replacing SD version with HD. I restrict filebot to run on NEWLY added file for 2 days, 6 hours apart.
(This post was last modified: 2012-03-16 21:29 by wally007.)
find quote
rednoah42 Offline
Senior Member
Posts: 109
Joined: Sep 2011
Reputation: 4
Post: #70
(2012-03-16 21:27)wally007 Wrote:  Hi,
new 2.6 version introduced weird behavior with my commands. With previous version i used to run

/Users/Admin/Downloads/FileBot.app/Contents/MacOS/JavaApplicationStub -get-subtitles --lang en --format srt "$1"
(where "$1" is the filename (episode) I'm targeting )
and it would get subtitles ONLY for the file (episode) I targeted.

With version 2.6, it tries to get subtitles for all files (episodes) within the Season folder. Is there any way to restrict it to JUST one file ?
I dont want to use -missing subtitles argument due to another script (sometimes) replacing SD version with HD. I restrict filebot to run on NEWLY added file for 2 days, 6 hours apart.
I checked with 2.6 and it does work without a problem for single files. So it worked with that same cmdline before? I can only guess something is going wrong with the cmdline call.
find quote
rednoah42 Offline
Senior Member
Posts: 109
Joined: Sep 2011
Reputation: 4
Post: #71
Could use some help with testing multi-episode support.

Forum:
http://filebot.sourceforge.net/forums/vi...&t=89#p590

Download:
http://sourceforge.net/projects/filebot/...ebot/HEAD/
find quote
rednoah42 Offline
Senior Member
Posts: 109
Joined: Sep 2011
Reputation: 4
Post: #72
FileBot 2.61 is out! Get it here!

This minor update adds support for multi-episode files and some cmdline features.

New features:
+ Support multi-episode files
+ -get-missing-subtitles per language
+ --filter option to customize episode matching
find quote
skweezer Offline
Member
Posts: 83
Joined: May 2011
Reputation: 0
Post: #73
The software looks very good from the video.
Going to grab it now. Thank you for this. Will save loads and loads of time.
find quote
rednoah42 Offline
Senior Member
Posts: 109
Joined: Sep 2011
Reputation: 4
Post: #74
FileBot 2.62 is out! Get it here!

This minor update brings lots of enhancements for cmdline scripting and lots general improvements suggested in the forums.

New features:
* Lots of bugfixes and improvments that came up in the forums
* Various improvements for headless cmdline mode
* Scripting: pass variables via -Xname=value arguments
* Scripting: more -script input options besides File/URL:
=> stdin via -script "system:in"
=> pass inline via -script "script:expression"
=> easily call shared script via "fn:name"


ĀµTorrent Integration:
There's a new example script for processing completed downloads using ĀµTorrents "Run this program when torrent finishes" feature. The script will extract archives, handle movies/tvshows, fetch subtitles, copy-rename files, fetch artwork/nfo files and finally make xbmc rescan the video library.

Best of all, it'll take less then a minute to set all that up:
http://filebot.sourceforge.net/forums/vi...4&t=5#p802
find quote
rednoah42 Offline
Senior Member
Posts: 109
Joined: Sep 2011
Reputation: 4
Post: #75
New ipkg/ARM package for embedded linux devices like Synology NAS.

Install via ipkg:
Code:
ipkg install "http://sourceforge.net/projects/filebot/files/filebot/FileBot_2.62/filebot_2.62_arm.ipk"
find quote
Post Reply