FileBot TV Renamer and Subtitle Downloader

  Thread Rating:
  • 4 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
wally007 Offline
Member
Posts: 82
Joined: Sep 2009
Reputation: 0
Post: #21
Well I rip most of my movies myself, so I did not try to run script through anything but TV Shows.

I'm going to give 2.3 a shot. I think its going to work great as according to your description of the new features, 2.3 version will download ANY subtitle that matches my SxEx episode but once it finds hash matched subtitle, it will replace it.

Is script able to determine and try to download subtitle based on SD/HD when its doing search based on file name? ( I think its safe to assume *.AVI = SD , *.MKV = HD )
Above assumes that you're able to determine SD/HD versions on subtitle sites.
(This post was last modified: 2011-11-26 16:05 by wally007.)
find quote
rednoah42 Offline
Member
Posts: 89
Joined: Sep 2011
Reputation: 4
Post: #22
It's mostly determined by SxE, but also filename similarity to some degree. Matching SD/HD doesn't make much sense imho, I can only detect SD/HD from the subtitle name, which in this case would probably exactly match the release name anyway.

In anycase with string similarity matching the name of the selected subtitles should be most similar to the name of the video filename, i.e. out of all the subtitles that match your file by SxE, the one with the most similar filename will be chosen.
find quote
wally007 Offline
Member
Posts: 82
Joined: Sep 2009
Reputation: 0
Post: #23
well video files are usually renamed into generic name like "Dexter - S01E01.avi" for SD version and "Dexter - S01E01.mkv" for HD version. ( For mediacenter consumption ).

No biggie, I think video hash matching will be sufficient.
thanks !!!
find quote
krish_2k4 Offline
Fan
Posts: 578
Joined: Aug 2010
Reputation: 9
Post: #24
edit: nevermind
(This post was last modified: 2011-11-26 19:16 by krish_2k4.)
find quote
rednoah42 Offline
Member
Posts: 89
Joined: Sep 2011
Reputation: 4
Lightbulb  Script: Download Missing Subtitles Post: #25
Try this little script with the latest snapshot (r695), this will just lookup subs for movies that don't have subs yet.

Code:
args.eachMediaFolder { dir ->
    // select videos without subtitles
    def videos = dir.listFiles().findAll{ video ->
        video.isVideo() && !dir.listFiles().find{ sub ->
            sub.isSubtitle() && sub.isDerived(video)
        }
    }
    
    // fetch subtitles by hash only
    getSubtitles(file:videos, strict:true)
}
find quote
wally007 Offline
Member
Posts: 82
Joined: Sep 2009
Reputation: 0
Post: #26
1, I actually like the fact that its rewriting existing subtitle file. Reason is that if first match is based on file name , it has high probability of having sync problems. But if within 1-2 days video hash tagged subs are uploaded. I'll have proper subtitles. = win Smile

2, Tried running 2.3 version but ran into error that does not happen with 2.2 version. I guess 2.2 is only looking for hash tagged file ( which does not exist so nothing gets downloaded ) and 2.3 is trying to get subs matching file name which gives me following error:

Code:
/Users/vladik1/Downloads/FileBot.app/Contents/MacOS/JavaApplicationStub -get-subtitles --lang en --format srt PATH_TO_VIDEO_FILE.MKV

and I get response

Code:
Looking up subtitles by filehash via OpenSubtitles
Looking up subtitles by filehash via Sublight
IllegalArgumentException: Unable to auto-select query: []
Failure (?_?)
(This post was last modified: 2011-11-27 11:58 by wally007.)
find quote
rednoah42 Offline
Member
Posts: 89
Joined: Sep 2011
Reputation: 4
Post: #27
wally007 Wrote:1, I actually like the fact that its rewriting existing subtitle file. Reason is that if first match is based on file name , it has high probability of having sync problems. But if within 1-2 days video hash tagged subs are uploaded. I'll have proper subtitles. = win Smile

2, Tried running 2.3 version but ran into error that does not happen with 2.2 version. I guess 2.2 is only looking for hash tagged file ( which does not exist so nothing gets downloaded ) and 2.3 is trying to get subs matching file name which gives me following error: ...


1. r695 will only lookup subtitles via hash by default. The new filename matching has to be enabled via -non-strict cmdline flag.

2. Are u using r695? I did fix that already, but the first version may still have had that problem.
find quote
wally007 Offline
Member
Posts: 82
Joined: Sep 2009
Reputation: 0
Post: #28
I'm using

Code:
FileBot_2.3.app.tar.gz    25-Nov-2011 05:12     14M

http://rednoah.users.sourceforge.net/tes...app.tar.gz
find quote
rednoah42 Offline
Member
Posts: 89
Joined: Sep 2011
Reputation: 4
Post: #29
Sorry, didn't bundle the new revisions. Just download the .jar file (r700) and replace the one in your app bundle [FileBot.app/Contents/Resources/Java/FileBot.jar].
find quote
wally007 Offline
Member
Posts: 82
Joined: Sep 2009
Reputation: 0
Post: #30
Still getting same error even with r700 FileBot.jar (13.9mb)

Code:
/Users/vladik1/Downloads/FileBot.app/Contents/MacOS/JavaApplicationStub -get-subtitles --lang en --format srt -non-strict /Volumes/Volume15TB/mpg_foreign2/\!Movies\!/Defendor\ \(2009\)/Defendor.mkv
Looking up subtitles by filehash via OpenSubtitles
Looking up subtitles by filehash via Sublight
IllegalArgumentException: Unable to auto-select query: []
Failure (?_?)

I ripped this video file myself, so i'm sure it does not have hash tagged subs available but both sites do have multiple Defendor subs.

rednoah42 Wrote:Sorry, didn't bundle the new revisions. Just download the .jar file (r700) and replace the one in your app bundle [FileBot.app/Contents/Resources/Java/FileBot.jar].
(This post was last modified: 2011-11-28 01:05 by wally007.)
find quote
Post Reply