group getting lost

Support for macOS users
Post Reply
mpegman
Posts: 17
Joined: 11 Feb 2023, 13:38

group getting lost

Post by mpegman »

Hi,

I rename a file multiple times using filebot. however somehow the group info seems to get lost, although it is available in the original filename
somehow this worked with an earlier version of my script.



Image

Code: Select all

Manual Import/Lost (2004) {imdb-tt0411008}/Season 01/Lost (2004) - S01E01 - Pilot 1 - (2004-09-22) [Audio - EAC3 5.1 ] [Video - WEBDL-1080p 8 bit h264 [EN]] - [SLIGNOME].mkv	{"@type":"Episode","seriesName":"Lost","season":1,"episode":1,"title":"Pilot (1)","absolute":1,"airdate":{"year":2004,"month":9,"day":22},"id":127131,"seriesInfo":{"database":"TheTVDB","order":"Airdate","language":"nl-NL","type":"TV Series","id":73739,"name":"Lost","aliasNames":["Lost: Missing Pieces","Perdidos","Perdus","ロスト","Zagubieni","LOST: Zagubieni","LOST: Naufragiaţii","Kayıp","Dingę","Izgubljeni","Lost - Eltűntek","Lost : Les disparus","LOST檔案","Mất Tích","Naufragiații","Nezvestní","Pazudušie","Ztraceni","Загублені","Изгубени","Изгубљени","Остаться в живых","迷失","로스트"],"certification":"TV-14","startDate":{"year":2004,"month":9,"day":22},"genres":["Action","Adventure","Drama","Fantasy","Mystery","Science Fiction","Thriller"],"network":"ABC (US)","rating":9.1,"runtime":44,"status":"Ended"}}
Manual Import/Do, Re & Mi {tvdb-368208}/Season 01/Do, Re & Mi - S01E02 - Rain Rain You Can Stay (2021-09-17) [Amazon Prime Video] [1080p WEB EAC3 5.1ch ] [AVC] [NLKIDS].mkv	{"@type":"Episode","seriesName":"Do, Re & Mi","season":1,"episode":2,"title":"Rain Rain You Can Stay","airdate":{"year":2021,"month":9,"day":17},"id":8666931,"seriesInfo":{"database":"TheTVDB","order":"Airdate","language":"nl-NL","type":"TV Series","id":368208,"name":"Do, Re & Mi","aliasNames":["Do, Re and Mi","Do, Re und Mi"],"certification":"TV-G","startDate":{"year":2021,"month":9,"day":16},"genres":["Adventure","Animation","Children","Comedy","Family","Musical"],"network":"Amazon Prime Video","rating":0.0,"runtime":11,"status":"Continuing"}}
Why did it work in earlier renames? Is it again a case of the group name not being available in the filebot repository?

Code: Select all

FileBot 4.9.7 (r9130)
JNA Native: 6.1.2
MediaInfo: 21.09
Tools: fpcalc/1.5.1 7zz/21.06
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2022-08-15 (r836)
Groovy: 3.0.9
JRE: OpenJDK Runtime Environment 17.0.2
JVM: OpenJDK 64-Bit Server VM
CPU/MEM: 10 Core / 4.3 GB Max Memory / 795 MB Used Memory
OS: Mac OS X (x86_64)
HW: Darwin xyz.localdomain 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:38:37 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6000 x86_64
DATA: /Users/xyz/Library/Containers/net.filebot.FileBot/Data/Library/Application Support/User Data
Package: MAS
License: Mac App Store License
User avatar
rednoah
The Source
Posts: 22854
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: group getting lost

Post by rednoah »

mpegman wrote: 03 Mar 2023, 19:07 Why did it work in earlier renames? Is it again a case of the group name not being available in the filebot repository?
{group} likely did not work in earlier renames for this specific group name.


:idea: If the group name is not on the list, then it won't work:
viewtopic.php?t=4


:arrow: In this case, you may prefer to just match the [xyz] at the ending of the filename, instead of relying on the {group} which cannot make this kind of assumption about the naming pattern at hand:

Code: Select all

{ fn.match(/\[([^\[\]]+)\]+/) }
:idea: Please read the FAQ and How to Request Help.
mpegman
Posts: 17
Joined: 11 Feb 2023, 13:38

Re: group getting lost

Post by mpegman »

thank you rednoah !
Post Reply