POSTBUCKET - where random posts in unrelated topics go

Any questions? Need some help?
User avatar
rednoah
The Source
Posts: 19435
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [DEB] Debian package

Post by rednoah »

spetrillo wrote: 22 Apr 2020, 23:38 Stupid question...and maybe I am missing it...but how do we install the license?
License Activation is generally self-explanatory, so don't worry about it until FileBot prompts you with instructions:
https://www.filebot.net/activate.html

spetrillo wrote: 22 Apr 2020, 23:40 Second...if I use the script to do the install I am seeing a 32 bit JVM installed. I thought it would install the 64 bit version?
Logs? Screenshots?

The FileBot package depends on the OpenJDK package, which almost certainly installs the latest 64-bit OpenJDK 11 at this point in time, unless you're running a 32-bit OS.
:idea: Please read the FAQ and How to Request Help.
AbedlaPaille
Posts: 101
Joined: 12 Apr 2020, 04:02

Re: Conditional Structures (if-then-else)

Post by AbedlaPaille »

kim wrote: 19 Sep 2018, 00:32 well if I try this (in GUI)

Code: Select all

\\gaia-prime\Movies\{any{'Movie Collections/'+az+'/'+collection+'/'+ny+'/'+ny}{az+'/'+ny+'/'+ny}} [{vf}]{subt}
I get output
e.g. \\gaia-prime/Movies/D/Demolition Man (1993)/Demolition Man (1993) [720p]
or \\gaia-prime/Movies/Movie Collections/A/Avatar Collection/Avatar (2009)/Avatar (2009) [720p]

try

Code: Select all

\\gaia-prime\Movies\{any{collection ? ('Movie Collections/'+az+'/'+collection+'/'+ny+'/'+ny) : 'collection found but something is wrong'} {az+'/'+ny+'/'+ny} {'WTF'} }
only if I write {az+'/'+ny+'/'+ny} wrong like so {az'/'+ny+'/'+ny} I get the
"but when you use it on a movie that isn't in one, it only adds the vf and subt part... the file name and path disappear..."

btw: there is a better way to write it

Code: Select all

\\gaia-prime\Movies\{any{'Movie Collections/'+az+'/'+collection}{az}}/{ny}/{ny} [{vf}]{subt}
or

Code: Select all

\\gaia-prime\Movies\{def altDir = ('Movie Collections/'+az+'/'); any{altDir+collection}{az}}/{ny}/{ny} [{vf}]{subt}
Very interesting this! Is it possible to insert conditional trails within the paths? Like a vf.match in the directory name, can't seem to adapt my normal expression. Even when i got the syntax right it crashed paths for movies that didn't match vf

Code: Select all

{any{'[Collections]/'+collection+'/'+'('+y+')'+' '+n}{ny+' ['+vf.match(/720[pP]|1080[pP]/)+']'+'/'+ny}}
I don't know how to play around Primary title and n either, usually use something like this:

Code: Select all

info.OriginalLanguage =~ /en/ ? primaryTitle : n
kim
Power User
Posts: 1097
Joined: 15 May 2014, 16:17

Re: Conditional Structures (if-then-else)

Post by kim »

Code: Select all

{ any{n}{ny}{'no match'} }
AbedlaPaille
Posts: 101
Joined: 12 Apr 2020, 04:02

Re: Conditional Structures (if-then-else)

Post by AbedlaPaille »

Didn't get that sorry, bit of a noob. How do you suggest i write info.OriginalLanguage =~ /en/ ? primaryTitle : n if it's within a {any{'/'/' }{'/'/' }} path? Most syntax i tried don't seem to be working. And what am i missing when it comes to displaying potential attributes on folders like i do with my normal scheme?
User avatar
rednoah
The Source
Posts: 19435
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Conditional Structures (if-then-else)

Post by rednoah »

e.g. Here's what you asked for specifically:

Code: Select all

{any{info.OriginalLanguage =~ /en/ ? primaryTitle : n}{'No Name'}}

e.g. Here's how you'd work with potential attributes:

Code: Select all

{allOf{vc}{vf}{source}{group}.joining('-', '[', ']')}
:idea: Please read the FAQ and How to Request Help.
GeorgeAl
Posts: 13
Joined: 17 Apr 2020, 17:43

Re: [JDownloader] Setup for Windows, Linux and Mac OS X

Post by GeorgeAl »

Hello, I have purchased the file bot (2nd year at row), and I could like to know if you plan to make any guide with examples for noobs like me?
I do not have the time to learn to program now, as a matter of fact, I do not care at all. I only want something that works, for that I paid.
User avatar
rednoah
The Source
Posts: 19435
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [JDownloader] Setup for Windows, Linux and Mac OS X

Post by rednoah »

GeorgeAl wrote: 03 May 2020, 16:41 Hello, I have purchased the file bot (2nd year at row), and I could like to know if you plan to make any guide with examples for noobs like me?
I do not have the time to learn to program now, as a matter of fact, I do not care at all. I only want something that works, for that I paid.
Sorry, this guide is already as simple as possible. You may petition the JDownloader developers to make it easier, perhaps even add 1st party integration for FileBot post-processing.

That being said, I'd just stick the FileBot Desktop Application if you're looking for something easy and straight-forward. Presets are great for adding a degree of automation.
:idea: Please read the FAQ and How to Request Help.
GeorgeAl
Posts: 13
Joined: 17 Apr 2020, 17:43

Re: [JDownloader] Setup for Windows, Linux and Mac OS X

Post by GeorgeAl »

Unfortunately, all useful guides at the JDownloader forum are at german.
User avatar
rednoah
The Source
Posts: 19435
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [JDownloader] Setup for Windows, Linux and Mac OS X

Post by rednoah »

GeorgeAl wrote: 03 May 2020, 17:35 Unfortunately, all useful guides at the JDownloader forum are at german.
It's not a language issue. JDownloader is just difficult to work with, compared to uT and qBT where it's just a matter of copy & paste.
:idea: Please read the FAQ and How to Request Help.
GeorgeAl
Posts: 13
Joined: 17 Apr 2020, 17:43

Re: [JDownloader] Setup for Windows, Linux and Mac OS X

Post by GeorgeAl »

Yes, you are right. The AMC script works with qtorrent, but I want to make it work with jdownloader 2 but no hope.
AbedlaPaille
Posts: 101
Joined: 12 Apr 2020, 04:02

Re: MediaInfo Inspector

Post by AbedlaPaille »

What's the best way to work with files lacking mediainfo, for example audio languages?

I was thinking i might be able to modify the mediainfo audio language directly with the mediainfo program you linked, seems i can only visualize it though.
AbedlaPaille
Posts: 101
Joined: 12 Apr 2020, 04:02

Re: Conditional Structures (if-then-else)

Post by AbedlaPaille »

Often find myself in cases where i could use either {any} or { x ? x : y } pretty much interchangeably. In those cases is there a better option ? Like one less hungry in computing power ?
User avatar
rednoah
The Source
Posts: 19435
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Conditional Structures (if-then-else)

Post by rednoah »

I'd use the one that is more readable. They're not interchangeable though, because the ternary operator does not catch exceptions, and because it does less, I'd expect it to be faster, but definitely not noticeably faster in human time scales.
:idea: Please read the FAQ and How to Request Help.
AbedlaPaille
Posts: 101
Joined: 12 Apr 2020, 04:02

Re: Conditional Structures (if-then-else)

Post by AbedlaPaille »

Cheers. So the complex format i posted earlier is pretty sound and i wouldn't be able to optimize its speed much more, correct?

For reference viewtopic.php?f=5&t=11862
User avatar
rednoah
The Source
Posts: 19435
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Conditional Structures (if-then-else)

Post by rednoah »

AbedlaPaille wrote: 27 May 2020, 15:06 So the complex format i posted earlier is pretty sound and i wouldn't be able to optimize its speed much more, correct?
I'm sure it's possible to optimize speed, and the first step would to profile each part, to see which one is slower than expected. As with everything, the 20 / 80 principle applies, 20% of your code will be responsible for 80% of run time, so it's integral to find out what those 20% are first.
:idea: Please read the FAQ and How to Request Help.
AbedlaPaille
Posts: 101
Joined: 12 Apr 2020, 04:02

Re: Conditional Structures (if-then-else)

Post by AbedlaPaille »

Thanks for the pointers !
nomadicleo
Posts: 2
Joined: 27 Jun 2020, 14:52

Re: Conditional Structures (if-then-else)

Post by nomadicleo »

Hi,

Could someone please help me with a conditional statement for (certification). My original preset is:

Code: Select all

{n.replaceAll(/[:|]/, " - ")} ({y})\{n.replaceAll(/[:|]/, " - ")} ({y}) {vf} - {certification}
When it does not find a certification, it simply appends the hyphen at the end of the name but I would like it to only add the hyphen when there is a certification found.
User avatar
rednoah
The Source
Posts: 19435
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Conditional Structures (if-then-else)

Post by rednoah »

nomadicleo wrote: 27 Jun 2020, 14:57 When it does not find a certification, it simply appends the hyphen at the end of the name but I would like it to only add the hyphen when there is a certification found.
e.g.

Code: Select all

{" - " + certification}
:arrow: viewtopic.php?t=1895
:idea: Please read the FAQ and How to Request Help.
nomadicleo
Posts: 2
Joined: 27 Jun 2020, 14:52

Re: Conditional Structures (if-then-else)

Post by nomadicleo »

Thank you, @rednoah!! Worked perfectly.
aryanprincesanty
Posts: 2
Joined: 24 Mar 2020, 05:32

Re: Conditional Structures (if-then-else)

Post by aryanprincesanty »

FileBot might not find all the groups for the TV shows I have. How do I make a format such that when {group} exists - it should be added, if not - it should be blank.

My current format is:

Code: Select all

{ny}/Season 0{s}/{ny} - {s00e00} - {t} [{vf} {source} {vc} {if (bitdepth == 10) '10-bit'} {ac} {channels} {if (group != null) {group} else ""}]

What changes should I apply to have my files look like this:
no group:

Code: Select all

Brooklyn Nine-Nine - S02E01 - Undercover [480p x264 8-bit AAC 2.0]
xyz group:

Code: Select all

Brooklyn Nine-Nine - S02E02 - Chocolate Milk [480p x264 8-bit AAC 2.0 XYZ]
User avatar
rednoah
The Source
Posts: 19435
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Conditional Structures (if-then-else)

Post by rednoah »

aryanprincesanty wrote: 28 Jun 2020, 18:09 How do I make a format such that when {group} exists - it should be added, if not - it should be blank.
That is default. You're probably asking about the preceding blank though, so that you don't end up with a superfluous blank if {group} is undefined.

e.g.

Code: Select all

{" " + group}

Code: Select all

{" " + ac}{" " + channels}{" " + group}
:arrow: viewtopic.php?t=1895



Note the conceptual similarity to previously asked questions:
rednoah wrote: 27 Jun 2020, 15:10
nomadicleo wrote: 27 Jun 2020, 14:57 When it does not find a certification, it simply appends the hyphen at the end of the name but I would like it to only add the hyphen when there is a certification found.
e.g.

Code: Select all

{" - " + certification}
:arrow: viewtopic.php?t=1895
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1097
Joined: 15 May 2014, 16:17

Re: Conditional Structures (if-then-else)

Post by kim »

Code: Select all

{ny}{'/Season ' + s.pad(2)}{'/' + ny}{' - ' + s00e00}{' - ' + t}{allOf{vf}{source}{vc}{bitdepth == 10 ? ' 10-bit' : ''}{ac}{channels}{group}.joining(' ', ' [', ']')}
glad148
Posts: 1
Joined: 05 Jul 2020, 07:46

Re: [JDownloader] Setup for Windows, Linux and Mac OS X

Post by glad148 »

otr wrote: 17 Aug 2018, 12:10 Hi,

sorry for being silent for a bit, I have been on a short trip. In the meantime, my setup is now working and I wanted to report back my specifics, so that others may benefit, but also so that I can learn in case I have missed something important.

This is what is working for me:

1. jDownloader Event Scripter calls this script

Code: Select all

[{"eventTrigger":"ON_PACKAGE_FINISHED", "enabled":true, "name":"FileBot", "script":"var amcFile = '/volume1/Downloads/jdtofilebotv2.sh';var path = '/volume1/Downloads/'; callAsync(function() {}, amcFile, path);", "eventTriggerSettings":{}, "id":123654}]
For people that were new to this, just like me:
- The above is the exact "text" that you can see in the jDownloader UI. Compare this screenshot: https://snag.gy/kYHCEN.jpg
- id:123654 is a random number I thought of. The way I understand it this is the ID the process runs under and I would be able to find it under this ID, if I had to look for it.

2. the jdtofilebotv2.sh script that is called above

Code: Select all

#!/bin/sh
export JAVA_OPTS="-Xmx256m"
/var/packages/filebot/target/filebot.sh -script 'fn:amc' /volume1/Downloads --output /volume1/Media/ --conflict auto --lang en --def 'clean=y' 'skipExtract=y'  'excludeList=.excludes'
I would be happy to get comments on this, especially since people later might look at this and assume that I did smart things (I did not - I just figured out what works for me somehow).
One issue I have is that I still do not find the filebot log file created by this setup.

Hello, I am a little lost would it be possible to give me the procedure that you followed from a to z because I can not find the configuration files of eventscripter did you use an alternative method Thank's
User avatar
rednoah
The Source
Posts: 19435
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [IRC] Discord Support Channel

Post by rednoah »

The FileBot Forums is Wikipedia. The FileBot Discord is Twitter. Each have strengths and weaknesses. Neither replaces the other. Both run in your browser no need to install anything. ;)
:idea: Please read the FAQ and How to Request Help.
Brax
Posts: 7
Joined: 31 Mar 2018, 09:58

Re: Conditional Structures (if-then-else)

Post by Brax »

Hi RedNoah and Happy New Year !

Thanks to your help i'm using and arguments file to dispatch my files according to their characteristics in various drives/folders like this :
2160P HDR --> B:\2160P HDR10\
2160P non HDR --> B:\2160P\
720P --> B:\720P\
DVDRIP --> H:\DVDRIPS\
1080P --> S:\1080P\

I use the following arguments file

Code: Select all

ut_label=Movies
movieFormat={hd.replaceAll("UHD", replacement = "B:/2160P").replaceAll("SD", replacement = "H:/DVDRIPS").replaceAll("HD", replacement =  vf.replaceAll("720p", replacement = "B:/720P").replaceAll("1080p", replacement = "S:/1080P"))} {hdr}/{collection.ascii()}/{ny.ascii().upperInitial()} [{imdbid}]/{ny.ascii().upperInitial()} [{imdbid}] {if (hd =~ /HD/) vf} {hdr}
seriesFormat="E:/TV Shows/{n}/{n}.{s00e00}.{t}"
animeFormat="E:/Anime/{n}/{n}.{s00e00}.{t}"

I now have to separate 1080P Files according to them belonging or not to a collection like follows :
2160P HDR --> B:\2160P HDR10\
2160P non HDR --> B:\2160P\
720P --> B:\720P\
DVDRIP --> H:\DVDRIPS\
1080P and part of a collection --> S:\1080P - Sagas\
1080P and not part of a collection --> I:\1080P\

I tried without success modifying my arguments file like follows :

Code: Select all

ut_label=Movies
movieFormat={hd.replaceAll("UHD", replacement = "B:/2160P").replaceAll("SD", replacement = "H:/DVDRIPS").replaceAll("HD", replacement =  vf.replaceAll("720p", replacement = "B:/720P").replaceAll("1080p", {any{collection}.replaceall{"S:/Sagas - 1080P"}{"I:/1080P"}}))} {hdr}/{collection.ascii()}/{ny.ascii().upperInitial()} [{imdbid}]/{ny.ascii().upperInitial()} [{imdbid}] {if (hd =~ /HD/) vf} {hdr}
seriesFormat="E:/TV Shows/{n}/{n}.{s00e00}.{t}"
animeFormat="E:/Anime/{n}/{n}.{s00e00}.{t}"

Could you please help me ?

Many thanks
Post Reply