Filebot CLI under osx

Support for Mac OS X users and the Mac App Store package
Post Reply
matevisky
Posts: 11
Joined: 06 Jan 2017, 09:14

Filebot CLI under osx

Post by matevisky » 05 May 2017, 20:23

Hi team, qq:
I have been downloaded FB from app store, but i would like to use my cli script. how can i start filebot? from terminal?
should i restart the macbook or do something extra, filebot command is not working at all

thx thx

User avatar
rednoah
The Source
Posts: 13265
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot CLI under osx

Post by rednoah » 06 May 2017, 03:30

My (very excellent) support depends on Windows Store and Mac App Store sales and Patreon support. Paying users, donors and everyone who contributes to FileBot in one way or another will get the very best support.

:idea: Please read the FAQ and How to Request Help.

matevisky
Posts: 11
Joined: 06 Jan 2017, 09:14

Re: Filebot CLI under osx

Post by matevisky » 06 May 2017, 05:30

Great, working like charm, I will not ask refund (even I did buy this on winstore as well lol)

Anyhow, any ide about this error:

Code: Select all

Ignore text language: /Users/cicmori/Media/TV Shows/Vikings/Season 04/Vikings - S04E19 - On the Eve.mkv
Failed to read xattr: JsonIoException: EOF reached before closing '}'
line: 1, col: 564
s","Vikingek","Викинги","הויקינגים","维京传奇","Vikingové","Vikinzi","바이킹스"],"certification":"TV-MA","startDate":{"year":2013,"month":3,"day":3},"genres":["Action","Drama"],"network":"History","rating":8.8,"ratingCount":422,"runtime":45,"status":"Continuing"}
Failed to read xattr: JsonIoException: EOF reached before closing '}'
line: 1, col: 564
OSX, most updated ofc

User avatar
rednoah
The Source
Posts: 13265
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot CLI under osx

Post by rednoah » 06 May 2017, 06:06

This is very strange. It says that the JSON written by FileBot in the past, is no longer valid JSON now that it is read again. Did you modify the xattr?

I'd need the full logs to tell you more.

You can also use the xattr script to see the raw xattr values to check if everything is in order:
viewtopic.php?t=324#p27518
My (very excellent) support depends on Windows Store and Mac App Store sales and Patreon support. Paying users, donors and everyone who contributes to FileBot in one way or another will get the very best support.

:idea: Please read the FAQ and How to Request Help.

matevisky
Posts: 11
Joined: 06 Jan 2017, 09:14

Re: Filebot CLI under osx

Post by matevisky » 06 May 2017, 09:29

I have downloaded via AppStore, should I delete that one and keep only the brew version?
Where can I see the full log... I will check the xattr (it is on my another machine) I will come back to you...

User avatar
rednoah
The Source
Posts: 13265
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot CLI under osx

Post by rednoah » 06 May 2017, 10:10

The brew cask version doesn't include Desktop integration, though you can launch the GUI by calling filebot without arguments. You can have both installed. They are completely independent. The GUI will auto-update, but the brew cask will only be updated on command.

If you get xattr errors for this file:

Code: Select all

/Users/cicmori/Media/TV Shows/Vikings/Season 04/Vikings - S04E19 - On the Eve.mkv
Then I'd try calling the xattr script on this file to see what it says:

Code: Select all

filebot -script fn:xattr "/Users/cicmori/Media/TV Shows/Vikings/Season 04/Vikings - S04E19 - On the Eve.mkv"
It's very strange and shouldn't happen. But isn't it just a warning, so FileBot should just keep doing it's thing even if there's a few warnings here and there. I'd really appreciate the logs though. These strange warnings I've never seen before could indicate a more serious issue.
My (very excellent) support depends on Windows Store and Mac App Store sales and Patreon support. Paying users, donors and everyone who contributes to FileBot in one way or another will get the very best support.

:idea: Please read the FAQ and How to Request Help.

matevisky
Posts: 11
Joined: 06 Jan 2017, 09:14

Re: Filebot CLI under osx

Post by matevisky » 06 May 2017, 11:52

Oke, I have an idea what is wrong, I will upload the logs, if you let me know where it is...
and the answer for the million dollar question is:
I sold my windows machine which was the main media server, now we are using my wife macbook. I did copy lots of file from win 10 ntfs to here so I guess, that is the problem... I guess this is a rare usecase, that's why you have not seen it before...
But will send you the logs, if you let me now where it is.

User avatar
rednoah
The Source
Posts: 13265
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot CLI under osx

Post by rednoah » 06 May 2017, 12:14

That would make sense. If you copy files from an NTFS to an HFS+ file system then there's a good chance rarely used features such as NTFS Alternate Data Streams and Posix Extended Attributes may not be copied over correctly. Especially if you use 3rd party filesystem drivers.
My (very excellent) support depends on Windows Store and Mac App Store sales and Patreon support. Paying users, donors and everyone who contributes to FileBot in one way or another will get the very best support.

:idea: Please read the FAQ and How to Request Help.

matevisky
Posts: 11
Joined: 06 Jan 2017, 09:14

Re: Filebot CLI under osx

Post by matevisky » 06 May 2017, 13:49

yip, how can I fix it, than no logs needed:) Thx for the help anyway!

darkvinill
Posts: 15
Joined: 23 Feb 2018, 23:35

Re: Filebot CLI under osx

Post by darkvinill » 27 Feb 2018, 13:34

I'm having the same problem:

" Failed to read xattr: JsonIoException: EOF reached before closing '}' "

Image

FileBot 4.7.9 (r4984) / Java(TM) SE Runtime Environment 9.0.4 / Mac OS X 10.13.3 (x86_64)

Same happens when using GUI:
Image



Edit: fixed using (terminal).

Code: Select all

xattr -c /path/to/Thor Ragnarok (2017) [1080p] [YTS.AG].mp4

User avatar
rednoah
The Source
Posts: 13265
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot CLI under osx

Post by rednoah » 27 Feb 2018, 18:13

Can you provide a test case to reproduce the problem?

If there's a 3rd party application that corrupts xattr values, then this warning would be expected.
My (very excellent) support depends on Windows Store and Mac App Store sales and Patreon support. Paying users, donors and everyone who contributes to FileBot in one way or another will get the very best support.

:idea: Please read the FAQ and How to Request Help.

underrepresented
Posts: 6
Joined: 15 Nov 2015, 21:38

Re: Filebot CLI under osx

Post by underrepresented » 11 Mar 2018, 19:31

Now that filebot is no longer pkgd with home brew how do we install the cli. I still have 4.7.9 in the home brew dir structure. BTW just bought the apple store app. I figured after 3yrs use of filebot I owe you at least that much. :)

Anyway I notice that filebot -script fn:sysenv outputs completely diff info from terminal than f5 from the app. Which makes sense since the current cli I have installed is 4.7.9,

I use the cli a lot more than I use the app; as its a script I run from transmission and lately its been giving me numerous erroneous naming returns such as Attack of the Southern Fried Zombies (2017).mp4 to The Attack (2012).mp4

User avatar
rednoah
The Source
Posts: 13265
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot CLI under osx

Post by rednoah » 11 Mar 2018, 19:39

The Mac App Store version and the brew cask version of FileBot are completely independent. You can continue to use the older version of FileBot (as installed via brew cask) for your command-line tasks for now. A newer release will be published eventually via brew cask, but there's one particular brew cask pull request that needs to be merged first.
My (very excellent) support depends on Windows Store and Mac App Store sales and Patreon support. Paying users, donors and everyone who contributes to FileBot in one way or another will get the very best support.

:idea: Please read the FAQ and How to Request Help.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest