Search found 23 matches

by Pat
19 Nov 2014, 17:29
Forum: Scripting and Automation
Topic: getMissingSubtitles() CLI arguments behaviour
Replies: 3
Views: 3213

Re: getMissingSubtitles() CLI arguments behaviour

Improved it following your suggestions. // filebot -script myscript.groovy [--action test] [-non-strict] [-unixfs] <path> // Get format from file String format = new File('myscript.format').text // Iterate through media folders args.eachMediaFolder { dir -> // Whitelist media types def inputV = dir ...
by Pat
19 Nov 2014, 12:58
Forum: Scripting and Automation
Topic: getMissingSubtitles() CLI arguments behaviour
Replies: 3
Views: 3213

getMissingSubtitles() CLI arguments behaviour

This is my simplified groovy script // Read format from file String format = new File('myscript.format').text // Rename only videos and subtitles rename(file: args.getFiles{ it.isVideo() || it.isSubtitle() },format: format) // Get missing subtitles and rename only the new ones subs ...
by Pat
19 Nov 2014, 00:01
Forum: Feature Requests and Bug Reports
Topic: Support for multiple subtitles in the same language
Replies: 27
Views: 24253

Re: Support for multiple subtitles in the same language

Your suggested x.after[lang.ISO3, lang.ISO2, lang.name, lang].join('|') to find the text after *or before) the matched language string does not work reliably. If LANG matched and "English" in English-SHD, the above code will not find SHD but "lish.SHD" I may find a solution where English, Eng and En ...
by Pat
14 Nov 2014, 13:43
Forum: Feature Requests and Bug Reports
Topic: Cancel button for the Matching pop up window
Replies: 7
Views: 4548

Re: Cancel button for the Matching pop up window

Is there a button? there? :-O
Even if it was much bigger.
Maybe adding a label.
by Pat
14 Nov 2014, 12:13
Forum: Feature Requests and Bug Reports
Topic: Cancel button for the Matching pop up window
Replies: 7
Views: 4548

Re: Cancel button for the Matching pop up window

You want me to click one thousand times? :) Here I forced a wrong matching of many files by clicking on the wrong DB. FileBot can therefore not match the titles properly, and will offer this pop up for every single file loaded on the left pane, in this case, hundreds of times. A CANCEL/ABORT/QUIT ...
by Pat
14 Nov 2014, 11:31
Forum: Feature Requests and Bug Reports
Topic: Cancel button for the Matching pop up window
Replies: 7
Views: 4548

Cancel button for the Matching pop up window

If the matching for X reason goes wrong (wrong directory, wrong DB, bad file naming) and you had loaded hundreds of movies, series or other files, FileBot will cycle through and ask you for each file, SELECT or IGNORE one of the proposals. If you know it is all wrong, you want to break out, not to ...
by Pat
14 Nov 2014, 00:19
Forum: Feature Requests and Bug Reports
Topic: Support for multiple subtitles in the same language
Replies: 27
Views: 24253

Re: Support for multiple subtitles in the same language

OK, I am done with my script, it seems to be working very well, testing from the CLI speeded things up The script became large, so I wrote it in many lines and added comments. 1. Would it be a good idea to have a button next to the GUI format field to expand it into many lines? 2. Is there a ...
by Pat
13 Nov 2014, 04:56
Forum: Feature Requests and Bug Reports
Topic: Support for multiple subtitles in the same language
Replies: 27
Views: 24253

Re: Support for multiple subtitles in the same language

There seems to be an escaping problem. The original files had no [] in the file names, and all worked as expected. But when I apply the same conversion to the new file names (now with brakets) it fails This is the testing code: {'This is fn: '+fn+' XXX This is media.FileName: '+media.FileName+' XXX ...
by Pat
12 Nov 2014, 11:13
Forum: Feature Requests and Bug Reports
Topic: Support for multiple subtitles in the same language
Replies: 27
Views: 24253

Re: Support for multiple subtitles in the same language

How about this one? {fn.after(media.FileName).after([lang.ISO3, lang.ISO2, lang.name].join('|'))} Well, yes. But why to test against many possible conversions to see if I succeed matching the string when we already have it? My heuristics on top of yours. FileBot could simply tell me with 100 ...
by Pat
11 Nov 2014, 23:29
Forum: Feature Requests and Bug Reports
Topic: Support for multiple subtitles in the same language
Replies: 27
Views: 24253

Re: Support for multiple subtitles in the same language

We are getting closer, {fn.after(media.FileName)} is a great step forward :) Now If I would only know your matched language string without needing to reverse engineer your heuristics... I could then cleanly find all compliant language modifiers after it with {fn.after(media.FileName).after(lang ...
by Pat
11 Nov 2014, 22:12
Forum: Feature Requests and Bug Reports
Topic: Support for multiple subtitles in the same language
Replies: 27
Views: 24253

Re: Support for multiple subtitles in the same language

oh, I missed your second post. It came hours later when I was already
composing my [deleted] reply.

Yes, the media object solves many things, I did not know it existed.
It exposes a lot of useful things, media.filename above all! :)

I will edit my reply to reflect this new insight and post again.
by Pat
11 Nov 2014, 14:07
Forum: Feature Requests and Bug Reports
Topic: Support for multiple subtitles in the same language
Replies: 27
Views: 24253

Re: Support for multiple subtitles in the same language

1.FileBot does not know the "base name", though for your particular cases you have all the information you need via {n} and {y} so the "base name" would be {"$n $y"} Particular cases are simple, but we want generic solutions. Before renaming, our "just acquired" files do not follow necessarily any ...
by Pat
11 Nov 2014, 08:44
Forum: Feature Requests and Bug Reports
Topic: Support for multiple subtitles in the same language
Replies: 27
Views: 24253

Re: Support for multiple subtitles in the same language

I have the following terrible file names "Back to the Future.1985 ID13 - el-Greek.srt" "Back to the Future.1985 ID14 - el-Greek.srt" "Back to the Future.1985.eng hi.srt" Request 1) For further manipulation of fn, it would be very useful to have a binding holding the base name, ie fn.bname="Back to ...
by Pat
10 Nov 2014, 12:04
Forum: Feature Requests and Bug Reports
Topic: Support for multiple subtitles in the same language
Replies: 27
Views: 24253

Re: Support for multiple subtitles in the same language

Thanks, I will evaluate if I'll convert all my (mostly) two letter codes (as per http://digitalcinemanamingconvention.com/, not always ISO compliant, ie: LAS for Latin American Spanish) taken from within containers into ISO3 I also found out that en-gb is not only "locale" but also "language" as per ...
by Pat
09 Nov 2014, 21:51
Forum: Feature Requests and Bug Reports
Topic: Support for multiple subtitles in the same language
Replies: 27
Views: 24253

Re: Support for multiple subtitles in the same language

Well, this is great! I have tried so many java methods to convert it... Now I see lang is an object with several properties holding all the needed info. The choice I wanted, but how could I have known if you weren't to tell me or if I would not have thought of testing lang.properties? Is it ...
by Pat
09 Nov 2014, 16:01
Forum: Feature Requests and Bug Reports
Topic: Support for multiple subtitles in the same language
Replies: 27
Views: 24253

Re: Support for multiple subtitles in the same language

{lang} works, pity you force users into 3 letter code instead of giving the choice. The libraries are limited. I tried using "eng".someJavaMethodes() but none of the methodes I tried was defined. Without access to the libraries the the lang biding uses I cannot match language codes embedded in the ...
by Pat
09 Nov 2014, 15:44
Forum: Feature Requests and Bug Reports
Topic: Feature request: Fonts in different sizes.
Replies: 3
Views: 3173

Re: Feature request: Fonts in different sizes.

I think there is no scaling. Just fix font size. It is not bigger and blur, it is just too small. (too small for a 1920x1080 display, if I change resolution to 1366x768 then the size is OK) FileBot_4.5.2.jar (same or almost identical was with 4.5.0) > java -version openjdk version "1.8.0_40" OpenJDK ...
by Pat
09 Nov 2014, 15:36
Forum: Feature Requests and Bug Reports
Topic: Support for multiple subtitles in the same language
Replies: 27
Views: 24253

Re: Support for multiple subtitles in the same language

In addition I may add that I also include the language if the audio and text streams have it encoded. That results in funny things like: <filename> [2ch AAC.en.it] [mp4s.en.it.sp].mp4 <filename> [2ch AAC.en.it] [mp4s.en.it.sp].eng.srt Yes, internally it is always two letter codes, and externally it ...
by Pat
09 Nov 2014, 14:40
Forum: Feature Requests and Bug Reports
Topic: Support for multiple subtitles in the same language
Replies: 27
Views: 24253

Re: Support for multiple subtitles in the same language

I guess you are addressing the "description" issue with that answer. As long as the language issue is solved, then a user regex would be trivial if you do not see a viable way for a reliable binging. Then let me go back to the same language different country subtitles. I just found you had said a ...
by Pat
09 Nov 2014, 13:13
Forum: Feature Requests and Bug Reports
Topic: Feature request: Fonts in different sizes.
Replies: 3
Views: 3173

Feature request: Fonts in different sizes.

My monitor is a full HD TV 60" 1920x1080. I run my desktop at 224dpi Applications adapt automatically to a readable size, but FileBot is unredable (too small) unless I get 1m closer It would be great if FileBot would have dynamic fonts, or some manual setting to change the size either through the ...
by Pat
09 Nov 2014, 09:30
Forum: Feature Requests and Bug Reports
Topic: Support for multiple subtitles in the same language
Replies: 27
Views: 24253

Support for multiple subtitles in the same language

I use {'.'+lang} which is working pretty well detecting my subtitle files (and ignoring anything else) but it is limited to one "unique" language per video. Sometimes there are multiple subtitles for the same language, ie: for the hearing impaired, for short parts with foreign language, of for ...
by Pat
07 Nov 2014, 17:38
Forum: Help and Support
Topic: hasProperty() is always FALSE
Replies: 2
Views: 2223

Re: hasProperty() is always FALSE

Not being my field, I thought for hours about a workaround, nothing I tried worked. You made my day, thanks! {n} - {s00e00.lower()} - {t} [{vf}.{vc}.{ac}.{ any{af+'('+audios.language.join(" ")+")"}{(audios.size()>1) ? audios.size()+"x"+af : af}}{any{'.Sub('+texts.language.join(".")+")"}{(texts.size ...
by Pat
07 Nov 2014, 16:26
Forum: Help and Support
Topic: hasProperty() is always FALSE
Replies: 2
Views: 2223

hasProperty() is always FALSE

I am trying to rename my videos with language information, or show the audio streams count when no language info is available. This is imposible, hasPropertiy() is broken as this example shows: { (audio.hasProperty("language")) ? "YES" : "NO " + audio.language } if defined (ie: language=ru), it ...