{order.airdate.plex.tail} binding not working as intended in cli?

Any questions? Need some help?
Post Reply
DaLeberkasPepi
Posts: 5
Joined: 08 Aug 2017, 17:01

{order.airdate.plex.tail} binding not working as intended in cli?

Post by DaLeberkasPepi »

When i use the {order.airdate.plex.tail} binding in the FileBot Client on Windows i get this:
Image

if i use the same binding on linux (sysinfo below) with the filebot cli i get this:

Code: Select all

root@dead6f3fe506:/# filebot -script fn:amc /media/Downloads/Fertig --output /media/Downloads --log-file /media/Downloads/log.txt  --action move --conflict auto -non-strict -no-xattr --def ignore=XXX --def music=n --def skipExtract=y --def plex=xxx.xxx.xxx.xxx:xxxxxx --def unsorted=y --def clean=y --def pushbullet=xxxxxxxxxxxx --def "seriesFormat=/media/Serien/{plex.tail}" "movieFormat=/media/Filme/{plex.tail}{vf =~ 2160 ? ' - 4K' : ''}" "animeFormat=/media/Anime/{order.airdate.plex.tail} - [E{absolute}]"
Locking /media/Downloads/log.txt
Run script [fn:amc] at [Sun Apr 01 23:20:22 CEST 2018]
Parameter: ignore = XXX
Parameter: music = n
Parameter: skipExtract = y
Parameter: plex = *****
Parameter: unsorted = y
Parameter: clean = y
Parameter: pushbullet = *****
Parameter: seriesFormat = /media/Serien/{plex.tail}
Parameter: movieFormat = /media/Filme/{plex.tail}{vf =~ 2160 ? ' - 4K' : ''}
Parameter: animeFormat = /media/Anime/{order.airdate.plex.tail} - [E{absolute}]
Argument[0]: /media/Downloads/Fertig

----------------------------------- <README> -----------------------------------

Dear Linux user, root,

FileBot currently only officially supports Windows 10 and macOS because these platforms make it easy to sell FileBot via their respective app stores. Unfortunately, selling software on Ubuntu, Debian, Red Hat, SUSE, Synology NAS, QNAP NAS, etc is not as easy and not really worth the effort considering the small number of users willing to support the project. This Patreon is an experiment to see how many users are willing to financially contribute towards freely available donation-supported new releases on these platforms.

Please support FileBot for Linux with a pledge of $1 per release on Patreon:

=> https://www.patreon.com/filebot

If every other Linux user were to pledge a small amount of money to the FileBot project, then you could easily fund the project ten times over. Please financially support the software you use and rely on, be it FileBot or any other tool. It's just polite, and it helps the ecosystem.

Thank you,
The FileBot Team

---------------------------------- </README> -----------------------------------

Input: /media/Downloads/Fertig/Anime/Naruto - 27 - The Chunin Exam Stage 2 - The Forest of Death - [E27].idx
Input: /media/Downloads/Fertig/Anime/Naruto - 27 - The Chunin Exam Stage 2 - The Forest of Death - [E27].mkv
Input: /media/Downloads/Fertig/Anime/Naruto - 27 - The Chunin Exam Stage 2 - The Forest of Death - [E27].sub
Input: /media/Downloads/Fertig/Anime/Naruto - 67 - Late for the Show, but Ready to Go! The Ultimate Secret Technique Is Born- [E67].idx
Input: /media/Downloads/Fertig/Anime/Naruto - 67 - Late for the Show, but Ready to Go! The Ultimate Secret Technique Is Born- [E67].mkv
Input: /media/Downloads/Fertig/Anime/Naruto - 67 - Late for the Show, but Ready to Go! The Ultimate Secret Technique Is Born- [E67].sub
Group: [anime:naruto] => [Naruto - 27 - The Chunin Exam Stage 2 - The Forest of Death - [E27].idx, Naruto - 27 - The Chunin Exam Stage 2 - The Forest of Death - [E27].mkv, Naruto - 27 - The Chunin Exam Stage 2 - The Forest of Death - [E27].sub, Naruto - 67 - Late for the Show, but Ready to Go! The Ultimate Secret Technique Is Born - [E67].idx, Naruto - 67 - Late for the Show, but Ready to Go! The Ultimate Secret Technique Is Born - [E67].mkv, Naruto - 67 - Late for the Show, but Ready to Go! The Ultimate Secret Technique Is Born - [E67].sub]
Rename episodes using [AniDB]
Auto-detected query: [Naruto]
Fetching episode data for [Naruto]
Fetching episode data for [Naruto x UT]
Fetching episode data for [Naruto Shippuuden]
Fetching episode data for [Naruto: The Cross Roads]
Fetching episode data for [Gekijouban Naruto: Dai Koufun! Mikazukijima no Animal Panic Datte ba yo!]
[MOVE] From [/media/Downloads/Fertig/Anime/Naruto - 27 - The Chunin Exam Stage 2 - The Forest of Death - [E27].idx] to [/media/Anime/Naruto/Naruto - 27 - The Chunin Exam Stage 2 - The Forest of Death - [E27].idx]
[MOVE] From [/media/Downloads/Fertig/Anime/Naruto - 67 - Late for the Show, but Ready to Go! The Ultimate Secret Technique Is Born - [E67].idx] to [/media/Anime/Naruto/Naruto - 67 - Late for the Show, but Ready to Go! The Ultimate Secret Technique Is Born - [E67].idx]
[MOVE] From [/media/Downloads/Fertig/Anime/Naruto - 27 - The Chunin Exam Stage 2 - The Forest of Death - [E27].mkv] to [/media/Anime/Naruto/Naruto - 27 - The Chunin Exam Stage 2 - The Forest of Death - [E27].mkv]
[MOVE] From [/media/Downloads/Fertig/Anime/Naruto - 67 - Late for the Show, but Ready to Go! The Ultimate Secret Technique Is Born - [E67].mkv] to [/media/Anime/Naruto/Naruto - 67 - Late for the Show, but Ready to Go! The Ultimate Secret Technique Is Born - [E67].mkv]
[MOVE] From [/media/Downloads/Fertig/Anime/Naruto - 27 - The Chunin Exam Stage 2 - The Forest of Death - [E27].sub] to [/media/Anime/Naruto/Naruto - 27 - The Chunin Exam Stage 2 - The Forest of Death - [E27].sub]
[MOVE] From [/media/Downloads/Fertig/Anime/Naruto - 67 - Late for the Show, but Ready to Go! The Ultimate Secret Technique Is Born - [E67].sub] to [/media/Anime/Naruto/Naruto - 67 - Late for the Show, but Ready to Go! The Ultimate Secret Technique Is Born - [E67].sub]
Processed 6 files
Notify Plex: [host:xxx.xxx.xxx.xxx, token:xxxxxx]
GET: http://xxx.xxx.xxx.xxx:32400/library/sections/all/refresh?X-Plex-Token=xxxxxx
SocketTimeoutException: Read timed out
Sending PushBullet report
Clean clutter files and empty folders
Delete /media/Downloads/Fertig/Anime

----------------------------------- <README> -----------------------------------

Dear Linux user, root,

FileBot currently only officially supports Windows 10 and macOS because these platforms make it easy to sell FileBot via their respective app stores. Unfortunately, selling software on Ubuntu, Debian, Red Hat, SUSE, Synology NAS, QNAP NAS, etc is not as easy and not really worth the effort considering the small number of users willing to support the project. This Patreon is an experiment to see how many users are willing to financially contribute towards freely available donation-supported new releases on these platforms.

Please support FileBot for Linux with a pledge of $1 per release on Patreon:

=> https://www.patreon.com/filebot

If every other Linux user were to pledge a small amount of money to the FileBot project, then you could easily fund the project ten times over. Please financially support the software you use and rely on, be it FileBot or any other tool. It's just polite, and it helps the ecosystem.

Thank you,
The FileBot Team

---------------------------------- </README> -----------------------------------

Done ヾ(@⌒ー⌒@)ノ

Code: Select all

root@dead6f3fe506:/# filebot -script fn:sysinfo
FileBot 4.7.9 (r4984)
JNA Native: 5.1.0
MediaInfo: 0.7.67
7-Zip-JBinding: 9.20
Apr 01, 2018 11:18:42 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
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_161
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 16 Core / 6 GB Max Memory / 30 MB Used Memory
OS: Linux (amd64)
Package: DEB
uname: Linux dead6f3fe506 4.14.31-unRAID #1 SMP PREEMPT Thu Mar 29 10:00:03 PDT 2018 x86_64 x86_64 x86_64 GNU/Linux

------------------- UPDATE AVAILABLE: FileBot 4.7.19 (r5271) -------------------


----------------------------------- <README> -----------------------------------

Dear Linux user, root,

FileBot currently only officially supports Windows 10 and macOS because these platforms make it easy to sell FileBot via their respective app stores. Unfortunately, selling software on Ubuntu, Debian, Red Hat, SUSE, Synology NAS, QNAP NAS, etc is not as easy and not really worth the effort considering the small number of users willing to support the project. This Patreon is an experiment to see how many users are willing to financially contribute towards freely available donation-supported new releases on these platforms.

Please support FileBot for Linux with a pledge of $1 per release on Patreon:

=> https://www.patreon.com/filebot

If every other Linux user were to pledge a small amount of money to the FileBot project, then you could easily fund the project ten times over. Please financially support the software you use and rely on, be it FileBot or any other tool. It's just polite, and it helps the ecosystem.

Thank you,
The FileBot Team

---------------------------------- </README> -----------------------------------

Done ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: {order.airdate.plex.tail} binding not working as intended in cli?

Post by rednoah »

What's the difference?

You're processing Anime files. The GUI screenshot looks like you've selected TheTVDB and thus you get TV Show formatting. The CLI log shows that AniDB is used and thus you get Anime formatting. You can force TV Show mode for Anime if you pass in the appropriate label.

@see viewtopic.php?f=4&t=1508
:idea: Please read the FAQ and How to Request Help.
DaLeberkasPepi
Posts: 5
Joined: 08 Aug 2017, 17:01

Re: {order.airdate.plex.tail} binding not working as intended in cli?

Post by DaLeberkasPepi »

oh i missed that. Thanks!

is there a way around this without changing the script you've talked about in this post?
viewtopic.php?t=694
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: {order.airdate.plex.tail} binding not working as intended in cli?

Post by rednoah »

Yes, you can force TV Show mode for Anime if you pass in the appropriate label.

Code: Select all

--def ut_label=TV
:idea: Please read the FAQ and How to Request Help.
DaLeberkasPepi
Posts: 5
Joined: 08 Aug 2017, 17:01

Re: {order.airdate.plex.tail} binding not working as intended in cli?

Post by DaLeberkasPepi »

but wouldn't that force TVDB also for Movies? Like you mentioned in this post:
rednoah wrote: 26 Apr 2013, 07:03 You can do --def ut_label=TV but then you'd force TVDB even for movie files, which is very bad.

Currently you can only fix that by editing the script, e.g. by modifying forceAnime() function and just returning false.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: {order.airdate.plex.tail} binding not working as intended in cli?

Post by rednoah »

Yes. You can't have Movie/Series/Anime auto-detection and force TV mode for Anime. You'll have to change your setup to force the appropriate category. Unfortunately, there is no option to force TheTVDB for Anime type files.

Note that processing Anime files with TheTVDB may not always work well, because translating Absolute numbers to SxE numbers may not always be straight-forward:
viewtopic.php?f=3&t=2769
:idea: Please read the FAQ and How to Request Help.
Post Reply