POSTBUCKET - where random posts in unrelated topics go

Any questions? Need some help?
Post Reply
ironcity1861
Posts: 3
Joined: 08 Aug 2016, 18:23

Re: [SNAP] Grant access to /media

Post by ironcity1861 »

only 25 minutes after a reinstall I realized this is why it wasn't working!
b0ssem
Posts: 17
Joined: 20 Mar 2017, 07:56

Re: Q&A for n00bs

Post by b0ssem »

Hey guys,

I have been using Filebot for some time now but only drag and drop style. So now im moving on to the automated worlds. Please bear with me.

I have started off gently by creating a .bat-file that gets run atomatically when my files get extracted by another software im using. So when the extraction is complete is calls the .bat-script and executes the line below.

This is what i have started out with

Code: Select all

filebot -script fn:amc --output "N:\Done" --action copy -non-strict "N:\TV-IN" --log-file amc.log --def skipExtract=y --def excludeList=amc.txt
Kinda simple, nothing fancy. But there is a few things here that im wondering over.

1. Can I define the script to use any of my presets I have made in Filebot? Some of my swedish TV-Shows get named in english. I want them in Swedish. At the moment i have 2 presets. TV and Movie.

2. Is it possible to make the script to copy the files directly to N:\Done\TV Shows. Instead of how its doing now N:\Done\Tv Shows\ Tvshowname\Season13\

I think that will be good for now.

Thanks in advanced!
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Q&A for n00bs

Post by rednoah »

1.
Yes, you can set custom formats and language preferences via command-line options.

2.
I think you're talking about a custom format that might look something like this:

Code: Select all

N:\Done\{plex.name}
:idea: Please read the FAQ and How to Request Help.
b0ssem
Posts: 17
Joined: 20 Mar 2017, 07:56

Re: Q&A for n00bs

Post by b0ssem »

rednoah wrote: 05 Oct 2017, 20:10 1.
Yes, you can set custom formats and language preferences via command-line options.

2.
I think you're talking about a custom format that might look something like this:

Code: Select all

N:\Done\{plex.name}
Thanks for you fast reply!

I will check up on the custom formats and language.

Regarding the custom formats, I did a little test and edited my line as you proposed.

Code: Select all

filebot -script fn:amc --output "N:\Done\{plex.name}" --action copy -non-strict "N:\TV-IN" --log-file amc.log --def skipExtract=y --def excludeList=amc.txt
But i got this error when running
Illegal usage: output folder must exist and must be a directory: N:\Done\{plex.name}
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Q&A for n00bs

Post by rednoah »

1.
--output and --format have distinctively different meanings and functions.

e.g.

Code: Select all

-rename --output N:\Done --format {plex.name}
@see https://www.filebot.net/cli.html


2.
Since you're using the amc script, you'll want to read Change how files will be organized and renamed because you'll need to pass in a custom format for each media type via the --def <type>Format options.
:idea: Please read the FAQ and How to Request Help.
dadelayer
Posts: 5
Joined: 06 Oct 2017, 06:18

Re: Batch Rename any type of file

Post by dadelayer »

Thanks!. I tested it out using the example and it worked fine. However, when I use it with my XML file (I converted the JSON > XML), it says my format is not correct.
I use the same format and code as the example
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Batch Rename any type of file

Post by rednoah »

The example here is very specific. You can learn from it, but you can't copy-and-paste and expect it to work in your case. ;)

If you start by learning how to parse JSON, then you're on the right track:
http://docs.groovy-lang.org/latest/html ... urper.html

:idea: You can hire me though, but you'd need to write down exactly what you need, with examples and example data.
:idea: Please read the FAQ and How to Request Help.
dadelayer
Posts: 5
Joined: 06 Oct 2017, 06:18

Re: Batch Rename any type of file

Post by dadelayer »

Well, I wanted to try it in XML since I wanted to use your example, but not coming up with anything.

Code: Select all

def fnn = fn
xml = new XmlSlurper().parse(folder+'/mov.xml')
xml.'**'.find { it.name() == 'scid' && it.text() == fnn}*.parent()*.title*.text()
that should return the title but it's not working as its supposed to. I don't have the money to hire :\ it seems expensive :(
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Batch Rename any type of file

Post by rednoah »

Just debug step by step. Does it parse? Is the first element what you think it should be?

You can prototype and debug these things in the Format Editor in minutes. Just try things and narrow down which exact piece of code isn't working as expected. ;)
:idea: Please read the FAQ and How to Request Help.
brunorene
Posts: 5
Joined: 21 Oct 2017, 18:57

Re: [SNAP] Grant access to /media

Post by brunorene »

I have a NAS mounted using cifs and Im not able to access the files on it... Is that possible?

Im using

/etc/fstab with the config

Code: Select all

//192.168.1.14/nas /media/nas cifs uid=user,gid=user,iocharset=utf8,file_mode=0660,dir_mode=0770,username=username,password=password 0 0
I have already tried --devmode
and

Code: Select all

sudo snap connect filebot:removable-media
sudo snap connect filebot:network
sudo snap connect filebot:network-bind
Regards
Delmano
Posts: 1
Joined: 14 Oct 2017, 10:27

Re: Batch Rename any type of file

Post by Delmano »

This is so useful. Thanks for the tutorial Noah, helps newbies like me a lot.
yodaspowart
Posts: 16
Joined: 02 Jun 2017, 01:04

Re: How about sharing our format expressions?

Post by yodaspowart »

Have a basic script that uses the groovy setup for 4K content going into its own folder for Movies 4K & TV Shows 4K based on 2160p in file name else it goes to regular folders:

Code: Select all

#!/bin/bash

export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_CTYPE="en_US.UTF-8"

TORRENT_PATH="$TR_TORRENT_DIR/$TR_TORRENT_NAME"
TORRENT_NAME="$TR_TORRENT_NAME"
TORRENT_LABEL="N/A"

# Subtitle language
SUBLANG=en
SKIP_EXTRACT=n
MUSIC=y

filebot -script /opt/filebot/scripts/amc.groovy \
    --output "$HOME/media" \
    -non-strict --encoding utf8 --log all --log-file amc-transmission.log --action copy --conflict override \
    --def artwork=false ut_kind=multi "ut_dir=$TORRENT_PATH" "ut_title=$TORRENT_NAME" subtitles=$SUBLANG \
    --def "movieFormat={fn =~ /2160p/ ? 'Movies 4K' : 'Movies'}/{n} ({y})/{n} {hd} {vc} {vf} ({y}){' CD'+pi}{'.'+lang}" \
    --def "seriesFormat={fn =~ /2160p/ ? 'TV Shows 4K' : 'TV Shows'}/{n}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {hd} - {vc} - {vf} - {t.replaceAll(/[\`´''ʻ]/, /'/).replaceAll(/[!?.]+$/).replacePart(', Part \$1')}{'.'+lang}" \
    extractFolder="$HOME/files/_extracted" music=$MUSIC skipExtract=$SKIP_EXTRACT &
Thinking of expanding this to Movies 3D, just need to figure out how to do an "OR".
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How about sharing our format expressions?

Post by rednoah »

Assuming that "3D" is part of the filename, this should do:

Code: Select all

{fn =~ /3D|2160p/ ? 'Movies 4K' : 'Movies'}
:idea: Please read the FAQ and How to Request Help.
yodaspowart
Posts: 16
Joined: 02 Jun 2017, 01:04

Re: How about sharing our format expressions?

Post by yodaspowart »

Thanks.
This is useful to know that the "OR" can be used like that if i needed to trigger variants for the Folder Movies 4K or Movies 3D.

Was thinking the "OR" could be used like:

IF filename has 3D it goes to folder named "Movies 3D" (1920x1080P)
IF filename has 2160p it goes to folder named "Movies 4K" (3840x2160P)
ELSE it goes to folder named "Movies" (< 1920x1080P)

Would it be this work?

Code: Select all

--def "movieFormat={fn =~ /2160p|4K|4k|UHD/ ? 'Movies 4K' : 'Movies'}{fn =~ /3D|3d|3dhsbs|H-SBS|3dhou|H-OU/ ? 'Movies 3D' : 'Movies'}/{n} ({y})/{n} {hd} {vc} {vf} ({y}){' CD'+pi}{'.'+lang}" \
Thanks rednoah
pyropunk2006
Posts: 1
Joined: 14 Dec 2017, 16:48

Re: [SNAP] Grant access to /media

Post by pyropunk2006 »

Any idea how to get filebot to see mounted devices? Its on automount if that makes a difference.
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [SNAP] Grant access to /media

Post by rednoah »

It should work out of the box. What exactly isn't working?
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How about sharing our format expressions?

Post by rednoah »

More like this:

Code: Select all

fn =~ /2160p/ ? 'Movies 4K' : fn =~ /3D/ ? 'Movies 3D' : 'Movies'
You can nest ternary expressions and have lots of if-then-else that way.
:idea: Please read the FAQ and How to Request Help.
yodaspowart
Posts: 16
Joined: 02 Jun 2017, 01:04

Re: How about sharing our format expressions?

Post by yodaspowart »

Thanks rednoah, this perfect for me!

My new script:

Code: Select all

#!/bin/bash

export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_CTYPE="en_US.UTF-8"

TORRENT_PATH="$TR_TORRENT_DIR/$TR_TORRENT_NAME"
TORRENT_NAME="$TR_TORRENT_NAME"
TORRENT_LABEL="N/A"

# Subtitle language
SUBLANG=en
SKIP_EXTRACT=n
MUSIC=y

filebot -script /opt/filebot/scripts/amc.groovy \
    --output "$HOME/media" \
	-non-strict --encoding utf8 --log all --log-file amc-transmission.log --action copy --conflict override \
	--def artwork=false ut_kind=multi "ut_dir=$TORRENT_PATH" "ut_title=$TORRENT_NAME" subtitles=$SUBLANG \
    --def "movieFormat={fn =~ /2160p|4K|4k|UHD/ ? 'Movies 4K' : fn =~ /3D|3d|3dhsbs|H-SBS|3dhou|H-OU/ ? 'Movies 3D' : 'Movies'}/{n} ({y})/{n} {hd} {vc} {vf} ({y}){' CD'+pi}{'.'+lang}" \
    --def "seriesFormat={fn =~ /2160p|4K|4k|UHD/ ? 'TV Shows 4K' : 'TV Shows'}/{n}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {hd} - {vc} - {vf} - {t.replaceAll(/[\`´‘’ʻ]/, /'/).replaceAll(/[!?.]+$/).replacePart(', Part \$1')}{'.'+lang}" \
	extractFolder="$HOME/files/_extracted" music=$MUSIC skipExtract=$SKIP_EXTRACT &
LouisF
Posts: 1
Joined: 29 Nov 2017, 19:46

Re: Exclude Blacklist & Series-Mappings

Post by LouisF »

Hi rednoah, thanks for the awesome work.

A new series by Amazon is not in tvdb, "Jean-Claude Van Johnson" : http://www.imdb.com/title/tt6682754/

Am I at the correct place to request this ? Thanks a lot,
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude Blacklist & Series-Mappings

Post by rednoah »

You can go to TheTVDB if you want to add or edit series entries:
https://www.thetvdb.com/

This thread is for adding abbreviations that are not in TheTVDB.
:idea: Please read the FAQ and How to Request Help.
jebbe
Posts: 8
Joined: 25 Dec 2017, 04:54

Re: How about sharing our format expressions?

Post by jebbe »

I am absolutely no expert when it comes doing this, but am slowly learning and not trying to over complicate it for myself.

I mainly use FileBot for movies and nothing else. I've essentially used bits from already posted and kind of made it work for my own needs.

Code: Select all

W:\Movies ({vf})\{genre}\{primarytitle} ({y}){' ['+fn.replaceAll(/(?i)directors|theatrical|ultimate/,'$0 Cut').matchAll(/UNRATED|REMASTERED|EXTENDED|UNCUT|DIRECTORS.CUT|THEATRICAL.CUT|ULTIMATE.CUT|SPECIAL.EDITION/).join('][').upperInitial().lowerTrail()+']'} [{vf}] [{ac}{fn.match("-HD.MA.")+af}]/{primarytitle} ({y}) {vc}{" (CD$pi)"}{' '+lang}
This is what I currently have and is fine but I have all of my movies stored between two different drives labeled Y and W. I saw the snippet of code to tell Filebot to essentially use whichever drive has more free space to decide where to store said movies.

Code: Select all

{['C:', 'D:', 'E:'].collect{ (it+'/TV/'+n) as File }.sort{ a, b -> a.exists() <=> b.exists() ?: a.diskSpace <=> b.diskSpace }.last()}/{episode}
I've tried to make this work with my current set up but it comes out weird. I've changed the TV part to movies and what I had for movies but it doesn't seem to work right.

Code: Select all

{['Y:', 'W:'].collect{ (it+'/Movies ({vf})/'+n) as File }.sort{ a, b -> a.exists() <=> b.exists() ?: a.diskSpace <=> b.diskSpace }.last()}/{episode}\{genre}\{primarytitle} ({y}){' ['+fn.replaceAll(/(?i)directors|theatrical|ultimate/,'$0 Cut').matchAll(/UNRATED|REMASTERED|EXTENDED|UNCUT|DIRECTORS.CUT|THEATRICAL.CUT|ULTIMATE.CUT|SPECIAL.EDITION/).join('][').upperInitial().lowerTrail()+']'} [{vf}] [{ac}{fn.match("-HD.MA.")+af}]/{primarytitle} ({y}) {vc}{" (CD$pi)"}{' '+lang}
I attempted something like this, but it puts the ({vf}) as part of the movies folder title instead of using the command for the video size and it looks like that snippet has stuff for tv shows.

Anyone mind correcting me on this? I'd appreciate any help I can get to make this right. I also am curious about the drive size code, does it only scan the drives on the initial scan of the movie titles and move them into the same folder or does it take into account each movie as it fills up the drive?
jebbe
Posts: 8
Joined: 25 Dec 2017, 04:54

Re: How about sharing our format expressions?

Post by jebbe »

Literally after sharing this, I tinkered with it a bit more and discovered this.

Code: Select all

{['Y:', 'W:'].collect{ (it+'/Movies') as File }.sort{ a, b -> a.exists() <=> b.exists() ?: a.diskSpace <=> b.diskSpace }.last()} ({vf})\{genre}\{primarytitle} ({y}){' ['+fn.replaceAll(/(?i)directors|theatrical|ultimate/,'$0 Cut').matchAll(/UNRATED|REMASTERED|EXTENDED|UNCUT|DIRECTORS.CUT|THEATRICAL.CUT|ULTIMATE.CUT|SPECIAL.EDITION/).join('][').upperInitial().lowerTrail()+']'} [{vf}] [{ac}{fn.match("-HD.MA.")+af}]/{primarytitle} ({y}) {vc}{" (CD$pi)"}{' '+lang}
It seems to be working correctly as of right now. Does this look right?
Hercules40
Posts: 33
Joined: 15 Jun 2017, 00:46

Re: How about sharing our format expressions?

Post by Hercules40 »

I need some help. There are many titles that have question marks in them "?". How do I get the "?" removed from the title?

For example, Anime:

Code: Select all

G:\My Videos\Anime\{n.replace(':',' -').replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, " -").replaceTrailingBrackets()}\{'Season '+s}\{n.replace(':',' -').replaceTrailingBrackets()} - {s+'x'}{e.pad(2)} - {t.replace(':',' -').replaceAll(/[!?.*]+$/).replaceAll(/[`´‘’ʻ]/, "'").lowerTrail().replacePart(', Part $1')}
ButI can't get it to work for:

"World End: What do you do at the end of the world? Are you busy? Will you save us?"

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

Re: How about sharing our format expressions?

Post by rednoah »

e.g. replace ? with nothing:

Code: Select all

t.replace('?', '')
:idea: Please read the FAQ and How to Request Help.
Hercules40
Posts: 33
Joined: 15 Jun 2017, 00:46

Re: How about sharing our format expressions?

Post by Hercules40 »

Yeah, I get that. And of course, instead of the title "t", I need to change the name "n". So, I tried this expression, but can anyone tell me why it doesn't work?

Code: Select all

\Anime\{n.replace(':',' -').replace('?','').replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, " -").replaceTrailingBrackets()}\{'Season '+s}\{n.replace(':',' -').replaceTrailingBrackets()} - {s+'x'}{e.pad(2)} - {t.replace(':',' -').replace('?','').replaceAll(/[!?.*]+$/).replaceAll(/[`´‘’ʻ]/, "'").lowerTrail().replacePart(', Part $1')}
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How about sharing our format expressions?

Post by rednoah »

It works. Why would you think that it doesn't work? What results do you get?

Test Case:

Code: Select all

{'Is this a test?'.replace('?', '')}
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: How about sharing our format expressions?

Post by kim »

Look at your output:
/Anime/World End - What Do You Do at the End of the World Are You Busy Will You Save Us/Season 1/World End - What Do You Do at the End of the World? Are You Busy? Will You Save Us? - 1x12 - The Happiest Girl in the World
this is easier to see like so
/Anime/ = folder
World End - What Do You Do at the End of the World Are You Busy Will You Save Us = n (folder)
/
Season 1 = folder
/
World End - What Do You Do at the End of the World? Are You Busy? Will You Save Us? = n (filename)
-
1x12 = s00e00 / sxe.pad(2)
-
The Happiest Girl in the World = t
for every n (folder or filename) of t you need to remove/replace e.g. '?' from the full path, you see ?

Code: Select all

{n.replace(':',' -').replaceAll(/[?]/).replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, " -").replaceTrailingBrackets()}\{'Season '+s}\{n.replace(':',' -').replaceAll(/[?]/).replaceTrailingBrackets()} - {sxe.pad(2)} - {t.replace(':',' -').replace('?','').replaceAll(/[!?.*]+$/).replaceAll(/[`´‘’ʻ]/, "'").lowerTrail().replacePart(', Part $1')}

https://www.thetvdb.com/?tab=episode&se ... 3518&lid=7

btw:

Code: Select all

.replaceAll(/[!?.]+$/)
this only removes e.g. ? if this is the last char in n e.g.
before
World End - What Do You Do at the End of the World? Are You Busy? Will You Save Us?
after
World End - What Do You Do at the End of the World? Are You Busy? Will You Save Us
https://regexr.com/
oneguynick
Posts: 7
Joined: 06 Jan 2018, 13:45

Re: Metadata and Extended Attributes

Post by oneguynick »

Code: Select all

filebot -rename *.mp4 --db TVDB -non-strict
Illegal Argument: java.nio.file.InvalidPathException: Illegal char <*> at index 0: *.mp4 (*.mp4)
Failed to read xattr: InvalidPathException: Illegal char <*> at index 0: *.mp4
Failed to read xattr: InvalidPathException: Illegal char <*> at index 0: *.mp4
Failed to read xattr: InvalidPathException: Illegal char <*> at index 0: *.mp4
Failed to read xattr: InvalidPathException: Illegal char <*> at index 0: *.mp4
^C

Example filename: Penoza - S01E02 - Unpleasant Surprises HDTV-720p.mkv
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Metadata and Extended Attributes

Post 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
:idea: Please read the FAQ and How to Request Help.
oneguynick
Posts: 7
Joined: 06 Jan 2018, 13:45

Re: Metadata and Extended Attributes

Post 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?
oneguynick
Posts: 7
Joined: 06 Jan 2018, 13:45

Re: Metadata and Extended Attributes

Post 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
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Metadata and Extended Attributes

Post 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.
:idea: Please read the FAQ and How to Request Help.
brunorene
Posts: 5
Joined: 21 Oct 2017, 18:57

Re: [SNAP] Grant access to /media

Post by brunorene »

All folders outside my home directory are greyed out and I cannot select them in order to process their contents
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [SNAP] Grant access to /media

Post by rednoah »

SNAP package are confined to your files by default, and /media if you snap connect filebot:removable-media.

:arrow: Please provide screenshots and the absolute paths of some of the files that don't work.

:arrow: The SNAP developers are probably the best source for advice in this case.
:idea: Please read the FAQ and How to Request Help.
yhm28
Posts: 32
Joined: 24 Jan 2018, 07:20

Re: Batch Rename any type of file

Post 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?
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Batch Rename any type of file

Post by rednoah »

No, but for reoccurring tasks I recommend making a Preset. Presets can be called via the number keys or numpad keys.
:idea: Please read the FAQ and How to Request Help.
SHJordan
Posts: 13
Joined: 05 May 2015, 11:03

Re: Fetch Artwork and Nfo for TV Shows

Post 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?
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: How about sharing your CLI scripts?

Post 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
darkvinill
Posts: 15
Joined: 23 Feb 2018, 23:35

Re: Fetch subtitles for all files

Post 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 ?
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How about sharing your CLI scripts?

Post 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.
:idea: Please read the FAQ and How to Request Help.
crisavec
Posts: 1
Joined: 16 Mar 2018, 01:37

Re: FileBot for Windows 7 and Windows Server

Post 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.
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: FileBot for Windows 7 and Windows Server

Post 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.
:idea: Please read the FAQ and How to Request Help.
ooga123459
Posts: 1
Joined: 29 Mar 2018, 15:15

Re: Batch Rename any type of file

Post by ooga123459 »

This is great! Exactly what I was looking for, thanks much :)
raymond
Posts: 9
Joined: 04 Apr 2018, 06:46

Re: [Mac] brew cask install filebot

Post 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
DarfNader
Posts: 48
Joined: 08 Apr 2018, 12:46

Re: Presets

Post by DarfNader »

So what does "Do select files" and "Use orignal files" selection actually do differently? I think I missed that explanation.
DarfNader
Posts: 48
Joined: 08 Apr 2018, 12:46

Re: Presets

Post 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.
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Presets

Post 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.
:idea: Please read the FAQ and How to Request Help.
cheaters
Posts: 226
Joined: 09 Oct 2016, 02:01

Re: [Mac] brew cask install filebot

Post by cheaters »

: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.
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Mac] brew cask install filebot

Post by rednoah »

No. Not if you follow the instructions above:

Code: Select all

brew cask install filebot --force --appdir=~/Applications
:idea: Please read the FAQ and How to Request Help.
RafaelSantos
Posts: 3
Joined: 12 Aug 2016, 14:40

Re: [Mac] brew cask install filebot

Post 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.
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Mac] brew cask install filebot

Post 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
:idea: Please read the FAQ and How to Request Help.
jp4500
Posts: 33
Joined: 23 Aug 2015, 01:55

Re: [Mac] brew cask install filebot

Post 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)
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Mac] brew cask install filebot

Post 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.
:idea: Please read the FAQ and How to Request Help.
Manalo
Posts: 1
Joined: 14 May 2018, 10:12

Re: Discord / Slack / IRC Channel

Post 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.
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Discord / Slack / IRC Channel

Post 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.
:idea: Please read the FAQ and How to Request Help.
james
Posts: 1
Joined: 30 May 2018, 04:14

Re: [Anime] Convert Absolute to SxE numbers

Post by james »

I registered specifically to thank you for this. Thank you!
User avatar
DarkVodka34
Posts: 13
Joined: 22 May 2018, 15:56

Re: [GUIDE] How to install FileBot on Debian Linux

Post by DarkVodka34 »

root@Media-Server:~/Downloads# sudo dpkg -i filebot.deb
dpkg-deb: error: `filebot.deb' is not a debian format archive
dpkg: error processing filebot.deb (--install):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
filebot.deb

Any ideas why?
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [GUIDE] How to install FileBot on Debian Linux

Post by rednoah »

This thread is outdated. The links above have not existed for a long time, so you have probably downloaded an HTML error page. You can use cat *.deb to check.

You can download the most recent deb package from the SF.net download section.
:idea: Please read the FAQ and How to Request Help.
rico
Posts: 4
Joined: 20 Jul 2018, 03:19

macOS cli license

Post by rico »

I installed from the Apple App Store and the GUI works fine.

I'm trying to get the cli working, but am having trouble getting it registered. I run

Code: Select all

filebot --license *.psm
and what appears to be the same GUI interface pops up and proclaims, as does the command line,

Code: Select all

License Error: UNREGISTERED
I've searched for this `psm` file, but haven't located it. Please help!
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Mac] brew cask install filebot

Post by rednoah »

TL;DR If you want to use the CLI, then you will need to ask Apple to refund your purchase ASAP, and purchase an FileBot cross-platform license instead.


1.
The Mac App Store does not support / allow command-line tools:
viewtopic.php?f=12&t=5983

:!: The MAS version does not have a CLI.


2.
You seem to have installed [BETA] FileBot 4.8.2 (with support for all platforms with cross-platform license system) which is completely different and licensed separately from the Mac App Store version.

:!: This version requires a license file and is completely separate from the Mac App Store. You will not be able to use your MAS purchase to unlock the non-MAS version of FileBot.
:idea: Please read the FAQ and How to Request Help.
rico
Posts: 4
Joined: 20 Jul 2018, 03:19

Re: [Mac] brew cask install filebot

Post by rico »

Thank you for your response. I'll do as you suggest.
rico
Posts: 4
Joined: 20 Jul 2018, 03:19

Re: [Mac] brew cask install filebot

Post by rico »

The return went fine, but how do I purchase the CLI/cross-platform license? I installed it via homebrew per this thread.
rico
Posts: 4
Joined: 20 Jul 2018, 03:19

Re: [Mac] brew cask install filebot

Post by rico »

I found the link in another thread:
https://www.filebot.net/purchase.html#spk.

It works, now!
eury
Posts: 1
Joined: 21 Jul 2018, 17:51

Re: Installing FileBot on QNAP NAS

Post by eury »

Hi,
I installed Filebot but it doesn't open. What needs to be done ?
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Installing FileBot on QNAP NAS

Post by rednoah »

:?: What do you expect to happen when you click Open?

:idea: The FileBot package will install the filebot command-line tool. You have to login via SSH to run commands.

Image
:idea: Please read the FAQ and How to Request Help.
hansooloo
Posts: 30
Joined: 06 Feb 2016, 14:58

Re: Conditional Structures (if-then-else)

Post by hansooloo »

How can I actually write an if-then-else?

e.g.,
IF movie is part of a collection
name it `collection/plex`
ELSE
name it `plex`

If I use this

Code: Select all

{if (collection != null) {collection/plex} else {plex}}
I get this

Code: Select all

ExpressionException: No signature of method: java.lang.String.div() is applicable for argument types: (File) values: [Movies/The Purge (2013)/The Purge (2013)]
Possible solutions: div(java.lang.String), is(java.lang.Object), wait(), trim(), size(), find()
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Conditional Structures (if-then-else)

Post by rednoah »

1.
If you just want to add the collection in front of the plex path, then you don't need if-then-else:

Code: Select all

{collection+'/'}{plex}
If you want a default value if collection is undefined, the I'd write something like this:

Code: Select all

{any{collection}{'No Collection'}/{plex}
You can't check if collection == null because of theThe Unwind-on-Undefined Behaviour, meaning collection is never null, it's either not null, or it crashes the {expression}.


2.
However, the error message you posted is completely unrelated to if-then-else and just tells us that we can't use the / operator between a String object and a File object.
:idea: Please read the FAQ and How to Request Help.
brocagel
Posts: 2
Joined: 26 Jul 2018, 17:29

Re: FileBot on the Mac App Store

Post by brocagel »

I bought filebot on mac appstore, 29EUR.... to discover now that some features are missing like subtitle management, and that I need to buy new licence ; I just try to find on your download page another way to donwload app except Mac or Windows store ; sounds impossible or at least non obvious
I feel...defrauded clearly

will for sure inform others on both stores
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: FileBot on the Mac App Store

Post by rednoah »

1.
You can ask Apple / Microsoft for a refund if you're not happy with the product. Not much I can do if Apple decided not not allow subtitle tools some 2 years ago. The Windows Store version is fully featured.

2.
FileBot 4.8.2 (early access, in beta, not officially released yet) requires a license for the rename feature only. If you use it just for OpenSubtitles, then that'll work even without purchasing a license. The FileBot Subtitles for Mac is still available, but deprecated.
:idea: Please read the FAQ and How to Request Help.
brocagel
Posts: 2
Joined: 26 Jul 2018, 17:29

Re: FileBot on the Mac App Store

Post by brocagel »

Hi, thanks for the answer - product is ok anyway ; regarding subtitles I found FlixTools... magic
Regards
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: FileBot on the Mac App Store

Post by rednoah »

For subtitles, I do recommend purchasing FlixTools, as it's made by the creators of OpenSubtitles, and thus supports the site as well as the app.
:idea: Please read the FAQ and How to Request Help.
otr
Posts: 11
Joined: 06 Aug 2018, 20:37

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

Post by otr »

I would like to ask for help with this. I'll put this in a way so that it may help others in the future as well.
My setup: DS218play, jDownloader headless + my.jdownloaderorg as GUI + filebot.

This is a screen capture of the GUI that I have. I fail to enter the scripts (e.g. https://github.com/filebot/plugins/blob ... inished.js) via c&p (plus modifying path) into that window. I get an error (failed to set new value).

Image

My question: Is that even the right way? Or do I need to follow the headless path that you describe above?
In that case,
- where do I put that script?
- can you provide the second script as JSON as well please? The provided one only works for "ON_PACKAGE_FINISHED", but not for ArchiveExtracted.

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

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

Post by rednoah »

I've never used the JD WebUI. It looks very basic. I guess it's just a simple interface so you can write the org.jdownloader.extensions.eventscripter.EventScripterExtension.scripts.json configuration file.

You can try to just copy the raw JSON:
https://github.com/filebot/plugins/blob ... ripts.json

The easiest way is probably to log in via SSH, find the configuration files, and then write them directly, and restart JD:

Code: Select all

find /volume1 -iname '*EventScripterExtension*'
:idea: You can use the JD desktop app and setup Event Scripter that way, and the just copy the configuration file.
:idea: Please read the FAQ and How to Request Help.
hansooloo
Posts: 30
Joined: 06 Feb 2016, 14:58

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

Post by hansooloo »

Take a look at this shell script I created for my setup where I was running into the exact same issue: https://gist.github.com/HanSooloo/89528 ... 2668b0330e

You _will_ need the `jq` package, which is readily available on both macOS (via brew) or any Linux distribution.
plittlefield
Posts: 101
Joined: 09 Mar 2014, 19:15

Re: Exclude Blacklist & Series-Mappings

Post by plittlefield »

Can you please add "Tangled the Series" mapped to "Rapunzel's Tangled Adventure" ?
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude Blacklist & Series-Mappings

Post by rednoah »

Added.
:idea: Please read the FAQ and How to Request Help.
jbuck79
Posts: 3
Joined: 09 Aug 2018, 23:17

Re: [DEB] Debian package

Post by jbuck79 »

I'm getting the following when updating my sources on Ubuntu 18.04. Anyone else? Is there something I need to do to fix it?

Code: Select all

W: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://get.filebot.net/deb stable InRelease' does not seem to provide it (sources.list entry misspelt?)
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [DEB] Debian package

Post by rednoah »

Sorry, 32-bit Linux (i386) is not supported. You'll need to install 64-bit Linux (amd64 / x86_64) since the Debian package is only available for this architecture. Why are you still using 32-bit Linux? Is there any particular reason?

:idea: The Portable TAR package can work on armv7l / aarch64 / i386 / amd64 so you might want to consider that if you're stuck on 32-bit Linux for some reason.
:idea: Please read the FAQ and How to Request Help.
satori83
Posts: 2
Joined: 16 Aug 2018, 09:53

Re: [FAQ] How do I activate my license?

Post by satori83 »

I purchased the regular mac app, not through store. I have tried double clicking, opening with app, even uninstalling and reinstalling the app but the app will not register. I am guess thats why its not recognizing recent popular movies that just need to be cleaned up a little bit...because the old version I used to use handled the simple plex scheme fine.
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [FAQ] How do I activate my license?

Post by rednoah »

satori83 wrote: 16 Aug 2018, 10:02 I purchased the regular mac app, not through store. I have tried double clicking, opening with app, even uninstalling and reinstalling the app but the app will not register. I am guess thats why its not recognizing recent popular movies that just need to be cleaned up a little bit...because the old version I used to use handled the simple plex scheme fine.
What does "not register" mean? FileBot is crashing on startup? License activation not working? Some other error when you try to process files?

Please share screenshots so I can see what you see:
https://snag.gy/
:idea: Please read the FAQ and How to Request Help.
jbuck79
Posts: 3
Joined: 09 Aug 2018, 23:17

Re: [DEB] Debian package

Post by jbuck79 »

I'm using a 64-bit version of Ubuntu. Here is my output of 'uname -a'.

Code: Select all

Linux fileserver 4.15.0-32-generic #35-Ubuntu SMP Fri Aug 10 17:58:07 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
satori83
Posts: 2
Joined: 16 Aug 2018, 09:53

Re: [FAQ] How do I activate my license?

Post by satori83 »

For some reason when I just went to record what happens, it activated! Good to go now, thanks.
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [DEB] Debian package

Post by rednoah »

Strange. I guess you can ignore the i386 packages warning then as it's not particularly relevant to your amd64 machine.

Maybe setting arch=amd64 will make the warning go away:

Code: Select all

deb [arch=amd64] https://get.filebot.net/deb/ stable main
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [FAQ] How do I activate my license?

Post by rednoah »

Strange. Could have been temporary server-side issues, though I don't see anything odd in the logs. If something doesn't work in the future, and there's an error, message, just make a quick screenshot so we see what's going on and troubleshoot.
:idea: Please read the FAQ and How to Request Help.
otr
Posts: 11
Joined: 06 Aug 2018, 20:37

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

Post by otr »

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.
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post by rednoah »

1.
filebot should work just fine instead of /var/packages/filebot/target/filebot.sh but should you need an absolute path for some reason, then /usr/local/bin/filebot is recommended.


2.
-non-strict is generally used in all my examples, since strict mode tends to be too strict for what people use the amc script for usually.


3.
--log-file /path/to/log is recommended so you know exactly where the FileBot log is. This option will make sure that logs are written to both console and file.
:idea: Please read the FAQ and How to Request Help.
jbuck79
Posts: 3
Joined: 09 Aug 2018, 23:17

Re: [DEB] Debian package

Post by jbuck79 »

That seems to have resolved it. Thanks.
lordCONAN
Posts: 11
Joined: 23 Sep 2012, 07:15

Re: Exclude Blacklist & Series-Mappings

Post by lordCONAN »

Hey, it's been a long time since my last post ...

Could you please map survivor.au to Australian Survivor, the auto-detect sets it to american survivor by default ...
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude Blacklist & Series-Mappings

Post by rednoah »

Sure. Can you please post an example file path for testing?
:idea: Please read the FAQ and How to Request Help.
lordCONAN
Posts: 11
Joined: 23 Sep 2012, 07:15

Re: Exclude Blacklist & Series-Mappings

Post by lordCONAN »

Here's a sample filename

Code: Select all

survivor.au.s05e09.hdtv.x264-fqm.mkv
And this is the current output from it

Code: Select all

Parameter: ut_title = Survivor.AU.S05E09.HDTV.x264-FQM
Parameter: ut_kind = multi
Parameter: ut_file = 
Parameter: ut_dir = D:\Completed\tv shows\Survivor.AU.S05E09.HDTV.x264-FQM
Read archive [survivor.au.s05e09.hdtv.x264-fqm.rar] and extract to [D:\Completed\tv shows\Survivor.AU.S05E09.HDTV.x264-FQM\survivor.au.s05e09.hdtv.x264-fqm\Survivor.AU.S05E09.HDTV.x264-FQM]
Extracting files [D:\Completed\tv shows\Survivor.AU.S05E09.HDTV.x264-FQM\survivor.au.s05e09.hdtv.x264-fqm\Survivor.AU.S05E09.HDTV.x264-FQM\survivor.au.s05e09.hdtv.x264-fqm.mkv]
Input: D:\Completed\tv shows\Survivor.AU.S05E09.HDTV.x264-FQM\survivor.au.s05e09.hdtv.x264-fqm\Survivor.AU.S05E09.HDTV.x264-FQM\survivor.au.s05e09.hdtv.x264-fqm.mkv
Group: [tvs:survivor] => [survivor.au.s05e09.hdtv.x264-fqm.mkv]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: D:\Completed\tv shows\Survivor.AU.S05E09.HDTV.x264-FQM\survivor.au.s05e09.hdtv.x264-fqm\Survivor.AU.S05E09.HDTV.x264-FQM\survivor.au.s05e09.hdtv.x264-fqm.mkv
Rename episodes using [TheTVDB]
Auto-detected query: [Survivor, survivor au]
Fetching episode data for [Survivor]
Fetching episode data for [#Survivor]
Fetching episode data for [Survivor (UK)]
Fetching episode data for [Survivor (BG)]
Fetching episode data for [Survivor (TR)]
Fetching episode data for [Survivor (GR)]
[COPY] From [D:\Completed\tv shows\Survivor.AU.S05E09.HDTV.x264-FQM\survivor.au.s05e09.hdtv.x264-fqm\Survivor.AU.S05E09.HDTV.x264-FQM\survivor.au.s05e09.hdtv.x264-fqm.mkv] to [F:\TV Shows\Survivor\Survivor Season 05\Survivor S05E09 - Desperate Measures.mkv]
Processed 1 files
Thanks
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude Blacklist & Series-Mappings

Post by rednoah »

It seems Australian Survivor (2002) has already been added as alias name upstream on TheTVDB.

Works for me right out of the box:

Code: Select all

Input: …/Survivor.AU.S05E09.HDTV.x264-FQM.mkv.mp4
Group: [tvs:survivor au] => [Survivor.AU.S05E09.HDTV.x264-FQM.mkv.mp4]
Rename episodes using [TheTVDB]
Auto-detected query: [Survivor AU]
Fetching episode data for [Australian Survivor]
…
[TEST] from […/Survivor.AU.S05E09.HDTV.x264-FQM.mkv.mp4] to […/TV Shows/Australian Survivor/Season 05/Australian Survivor - S05E09 - Episode 9.mp4]
…
:idea: Please read the FAQ and How to Request Help.
lordCONAN
Posts: 11
Joined: 23 Sep 2012, 07:15

Re: Exclude Blacklist & Series-Mappings

Post by lordCONAN »

Fixed it. It was totally my fault, I had 2 versions of filebot installed, an old one that was still being picked up as the default version, and the new windows store version, uninstalling the old version fixed everything for me. Sorry for time spent testing. Feel free to delete these posts to help keep this thread clean.
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude Blacklist & Series-Mappings

Post by rednoah »

No worries. Let me know if you run into any other issues. Just make sure to include sample file paths so I can run my own tests.
:idea: Please read the FAQ and How to Request Help.
dpullen87
Posts: 1
Joined: 29 Aug 2018, 14:06

Re: How about sharing our format expressions?

Post by dpullen87 »

Hi DevXen,

I'd really appreciate it if you could send me your music script for MusicBrainz

Many Thanks,
User avatar
RobEh
Posts: 4
Joined: 02 Sep 2018, 15:26

Re: Presets

Post by RobEh »

I am wondering how to add a leading 0 to the season using 1x01 naming format to come out as 01x01? Simply adding a 0 in front of the expression will not work as season 10 would show as season 010.


EDIT:
I found it on my own :? :

Code: Select all

{s.pad(2)}x{e.pad(2)}
Regards,
ZeroDown
Posts: 2
Joined: 05 Sep 2018, 18:24

Re: [FAQ] How do I activate my license?

Post by ZeroDown »

I think my license was blocked by outlook. Is there anyway to resend it to a gmail account?
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [FAQ] How do I activate my license?

Post by rednoah »

Possibly. Please PM me your name / email.
:idea: Please read the FAQ and How to Request Help.
angryunibrow
Posts: 2
Joined: 05 Sep 2018, 20:04

Re: [FAQ] How do I activate my license?

Post by angryunibrow »

How long does it take to receive the emails?
I purchased through PayPal and have yet to receive any emails regarding my license.

Nevermind, I see and have replied in the other thread reagrding the slow license issue rollout.
exper2123
Posts: 2
Joined: 05 Sep 2018, 22:10

Re: [FAQ] How do I activate my license?

Post by exper2123 »

Good evening, first of all, congratulations for this superb program which has greatly facilitated my daily life.
however I have a problem, I bought filebot on the microsoft store under windows 10 (directly activated after installation) on March 28th and I would like to install filebot also on my mac (macosx), but apart from a microsoft email with the invoice of my purchase, I have no trace of any email with a license.
Could you do something, please?

Thank you in advance

Translated with www.DeepL.com/Translator
User avatar
rednoah
The Source
Posts: 24636
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [FAQ] How do I activate my license?

Post by rednoah »

Everything is up and running again:
https://new.paddle.com/

Please let me know if you still haven't received your license.
:idea: Please read the FAQ and How to Request Help.
Post Reply