Page 19 of 34

Re: Metadata and Extended Attributes

Posted: 07 Jan 2018, 13:08
by rednoah
*.mp4 refers to all mp4 files. If you're testing with mkv files then *.mkv will select those.

@see https://mywiki.wooledge.org/glob

Re: Metadata and Extended Attributes

Posted: 08 Jan 2018, 10:36
by oneguynick
My mistake. I forgot they were *.mkv, good catch. With that said I am now testing the same working commands against my samba share with the same issue. Copy locally just isn't an option. Is there a better way to do this? NFS or SFTP or something?

Re: Metadata and Extended Attributes

Posted: 08 Jan 2018, 10:58
by oneguynick
Alright so I took the network share out of the picture for troubleshooting and tried docker:

Code: Select all

docker run -it -v /tv:/volume1 -v /opt/docker/filebot:/data rednoah/filebot -script fn:xattr -r *
docker run -it -v /tv:/volume1 -v /opt/docker/filebot:/data rednoah/filebot -script fn:duplicates -r --action test *
Done ヾ(@⌒ー⌒@)ノ in both cases. I specifically copied a folder of shows to ensure there were exact duplicates.

I had considered that maybe it was the ZFS pool. I verified the pool is enabled for xattr:

Code: Select all

NAME                                                    PROPERTY  VALUE  SOURCE
share                                                   xattr     on     default

Re: Metadata and Extended Attributes

Posted: 08 Jan 2018, 17:03
by rednoah
NFS might work. SFTP probably doesn't preserve attributes, but RSYNC might (with --xattrs option).

If you're using docker with some host folder mounted into the docker, then there's a good chance xattr won't work. I remember filesystem events not working either. Not sure if that's something that can be enabled or if it's just not supported.

:idea: If you care about xattr, then the best solution is usually to process files on the NAS or server where reading/writing xattr usually works out of the box.

:arrow: FileBot generally doesn't require xattr, it just stores some xattr info if possible, but will work just fine without. It's just that the duplicates script requires them to work, so it'll instantly know which file is which movie/episode without having to bother any web services.

Re: Batch Rename any type of file

Posted: 06 Feb 2018, 05:18
by yhm28
rednoah wrote: 13 Oct 2014, 21:47 3. Now that New Names has focus hit F2
Is there any way to remap the shortcut to a different key?

Re: Batch Rename any type of file

Posted: 06 Feb 2018, 08:39
by rednoah
No, but for reoccurring tasks I recommend making a Preset. Presets can be called via the number keys or numpad keys.

Re: Fetch Artwork and Nfo for TV Shows

Posted: 12 Mar 2018, 16:08
by SHJordan
rednoah wrote: 06 Jan 2012, 11:46 Description:
  1. Download artwork for all your TV Shows from TheTVDB. Fetch tvshow nfo, series and season artwork and save files according to XBMC standards.
  2. Disable confirmation dialogs via -non-strict option (on headless machines this is the default).
Usage:

Code: Select all

filebot -script fn:artwork.tvdb /path/to/tvshows/
Options:
--q name to force search query manually instead of auto-detection
--conflict override to fetch artwork from scratch and not just missing artwork
-non-strict to disable user-interaction and run headless

Notes:
  • Episodes are expected to be organized into Show/Season N/Episode XY structure. The TV Show will be auto-detected from files and the folder structure.
i'm trying to write a drag'n'drop bat file for some shows that need to get names with spaces such as "Pop Team Epic"

which regularly would only get TEAM... but i'm failing to get the dragged folder PATH.

Here is what i got so far:

Code: Select all

for %%a in (.) do set currentfolder=%%~na
echo %currentfolder%
filebot -script fn:artwork.tvdb %1 --q '%currentfolder%' 
timeout /t -1
Can you take a look? or give some tips?

Re: How about sharing your CLI scripts?

Posted: 12 Mar 2018, 18:39
by kim
It's not clear what the problem is and you need to give a sample (with full file path) to test with ;)

?

Code: Select all

for %%a in (%1) do echo %%~nxa
for %%a in (%1) do echo %%~na

Re: Fetch subtitles for all files

Posted: 20 Mar 2018, 17:07
by darkvinill
rednoah wrote: 02 Apr 2014, 10:30 Description:
If you want to download subtitles for more than just a single folder then -get-subtitles -r in one batch with many many files can be a bad bad idea. This script will fetch subtitles folder per folder to make fetching large amounts of subtitles more reliable. Files may be included or excluded based on file creation date, last modified date, file size, video length, embedded subtitles, etc

:!: If you call this script repeatedly on the same folders or files then you MUST SET --def maxAgeDays to 30 days or less and call it no more than once per day.

Fetch subtitles for all files that have recently been created:

Code: Select all

filebot -script fn:suball /path/to/media -non-strict --def maxAgeDays=7
Fetch subtitles for all files:
You must not lookup subtitles for all files repeatedly in any kind of automated setup, or you will get banned. If you use the suball script in an automated setup then you MUST SET --def maxAgeDays to 30 days or less.

Code: Select all

filebot -script fn:suball /path/to/media

Files will be ignored and excluded from processing if one of the following conditions holds true:
  • file path matches your --def ignore pattern
  • time passed since file last-modified date is more than --def maxAgeDays
  • time passed since file last-modified date is less than --def minAgeDays
  • file size is less than --def minFileSize
  • video duration is less than --def minLengthMS
  • video file already contains embedded subtitles in a language matching your --def ignoreTextLanguage pattern (by default, if files contain subtitles of any language, no additional subtitles will be downloaded)
Options:
--lang zho set preferred subtitle language (default: eng)
--def maxAgeDays=7 set a max-age for files that will be processed, older files will be ignored
--def minAgeDays=1 set a min-age for files that will be processed, newer files will be ignored (so better subtitles can be downloaded later)
--def minFileSize=0 set a minimum file size, smaller files will be ignored (default: 50 MB)
--def minLengthMS=0 set a minimum video duration, shorter videos will be ignored (default: 10 min)
--def ignore=regex set an ignore pattern for paths that should be ignored
--def ignoreTextLanguage=regex set an ignore pattern for video files that already contain embedded subtitles in certain languages (default: .+)

Ho is this script different from the one that comes with filebot ?

Re: How about sharing your CLI scripts?

Posted: 20 Mar 2018, 17:51
by rednoah
The suball script gives you lots of extra options. It's built on top of simple -get-subtitles calls, by selecting files and making calls as necessary to make processing large batches of files more manageable.

Re: FileBot for Windows 7 and Windows Server

Posted: 24 Mar 2018, 01:23
by crisavec
Hello,
I have in the past contributed atleast 2 donations for filebot, and was wondering how to go about gaining access to the private builds. I am currently still running win7, with no plans to move to win10 until cannon lake desktop chips are stable.

Re: FileBot for Windows 7 and Windows Server

Posted: 24 Mar 2018, 01:47
by rednoah
Please PM me your previous donation details and make me an offer.


EDIT:

2 recent donations that barely cover the price of the Microsoft Store retail version, is not enough for extended support custom builds. These builds are intended for companies or professional users that know the value of software and don't blink twice about 2-3 digit EUR software licenses.

Re: Batch Rename any type of file

Posted: 29 Mar 2018, 15:18
by ooga123459
This is great! Exactly what I was looking for, thanks much :)

Re: [Mac] brew cask install filebot

Posted: 05 Apr 2018, 11:21
by raymond
rednoah wrote: 08 Oct 2014, 10:21 3. Install Java:

Code: Select all

brew cask install java
With current version of brew this will install java9. filebot uses java8. I suggest this should now be

Code: Select all

brew cask install java8

Re: Presets

Posted: 15 Apr 2018, 06:35
by DarfNader
So what does "Do select files" and "Use orignal files" selection actually do differently? I think I missed that explanation.

Re: Presets

Posted: 15 Apr 2018, 06:37
by DarfNader
Also, it doesn't look like you can enable "hidden" folders in the file selector in "Input Folder" and "Includes" when trying to set up a preset.

Re: Presets

Posted: 15 Apr 2018, 06:49
by rednoah
Original Files means that you load in your own files via Drag-n-Drop and the the Preset is applied to whatever files you have already loaded into FileBot.

Do select files will give you additional input fields, so you can do things like "Load all *.mkv files from D:/Downloads/Movies and then process them with TheMovieDB" so you don't have to drag the files into FileBot yourself every time.

Hidden files / folders are indeed ignored by default. The Filter option can only be used to Filter out files (e.g. non-mkv files) but it cannot be used to "filter in" files. If you have files in a hidden folder, then you can specify that folder directly, and then load all the non-hidden files within that folder into FileBot.

Re: [Mac] brew cask install filebot

Posted: 22 Apr 2018, 20:55
by jprokos
:idea: Since Apple does not allow command-line tools in the Mac App Store you will need to install the filebot console tools via brew even if you have already bought FileBot from the App Store.
Does installing the FileBot package using brew write over the AppStore Version? I notice it's installing into the Applications folder.

Re: [Mac] brew cask install filebot

Posted: 23 Apr 2018, 06:18
by rednoah
No. Not if you follow the instructions above:

Code: Select all

brew cask install filebot --force --appdir=~/Applications

Re: [Mac] brew cask install filebot

Posted: 04 May 2018, 13:17
by RafaelSantos
Hi, I have the Mac App Store Filebot and would like to install the command line tool, but I don't really want to install brew (I already have MacPorts). Is there any alternative? Is it possible to download the standalone filebot.jar file to run command line applications? Thanks.

Re: [Mac] brew cask install filebot

Posted: 04 May 2018, 13:21
by rednoah
You can make it work manually by reading and understanding the brew cask formula, and then just download / extract / symlink things yourself as necessary:
https://github.com/caskroom/homebrew-ca ... filebot.rb

Re: [Mac] brew cask install filebot

Posted: 16 May 2018, 16:57
by jp4500
Hi,

I installed successfully and ran the test and curious about something I see in the results:

- It says `UPDATE AVAILABLE: FileBot 4.8 (r5280)` but I did get the latest AFAIK. Is there another way to update?

Code: Select all

~/Downloads$ filebot -script fn:sysinfo
FileBot 4.7.9 (r4984)
JNA Native: 5.1.0
MediaInfo: 0.7.93
7-Zip-JBinding: 9.20
Chromaprint: 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2018-03-16 (r516)
Groovy: 2.4.10
JRE: Java(TM) SE Runtime Environment 1.8.0_172
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 1 GB Max Memory / 15 MB Used Memory
OS: Mac OS X (x86_64)
Package: APP
uname: Darwin macbook-air.local 17.4.0 Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64 x86_64

-------------------- UPDATE AVAILABLE: FileBot 4.8 (r5280) ---------------------

Done ヾ(@⌒ー⌒@)ノ
(NOTE: I had to uninstall java 9 and install java 8 to fix some WARNING's that showed up originally)

Re: [Mac] brew cask install filebot

Posted: 16 May 2018, 17:24
by rednoah
There is indeed no update for the CLI, but unfortunately the update notification code doesn't have support for different platforms having different latest revisions.

Re: Discord / Slack / IRC Channel

Posted: 21 May 2018, 14:09
by Manalo
Is the Discord channel more active than the forums at this point? I don't have it yet, but I'll install it if the community has moved there.

Re: Discord / Slack / IRC Channel

Posted: 21 May 2018, 15:01
by rednoah
The forums are the best way to ask for help. Also, because Google will be able to find results from the forums. Discord is just for fun if you want to talk to someone in real time.