Search found 18 matches

by gcs8
09 Apr 2024, 13:47
Forum: Scripting and Automation
Topic: Rename folders only for HAMA by [anidb-###]
Replies: 28
Views: 1501

Re: Rename folders only for HAMA by [anidb-###]

Doing the [anidb-###] bit with AoM scripting could be pretty useful to the AoM user community. Maybe add that bit to the docs for the next guy? https://wiki.anidb.net/AniDB_O%27Matic_-_Documentation:_Local_file_renaming As soon as I am done debugging it. I keep finding oddness and I am the hellen k...
by gcs8
08 Apr 2024, 01:36
Forum: Scripting and Automation
Topic: Rename folders only for HAMA by [anidb-###]
Replies: 28
Views: 1501

Re: Rename folders only for HAMA by [anidb-###]

update cuz bad at math V3
by gcs8
07 Apr 2024, 14:28
Forum: Scripting and Automation
Topic: Rename folders only for HAMA by [anidb-###]
Replies: 28
Views: 1501

Re: Rename folders only for HAMA by [anidb-###]

v2 of AoM renaming to fix some path length issues and yoink out ~ // Anime title set('atitle', at('en')) if(length(atitle)=0, set('atitle', at('x-jat'))) if(length(atitle)=0, set('atitle', A.Name)) set('atitle', replace(atitle, '\', ' ')) if(start(atitle, '.'), set('atitle', copy(atitle, 2, length(a...
by gcs8
06 Apr 2024, 22:04
Forum: Scripting and Automation
Topic: Rename folders only for HAMA by [anidb-###]
Replies: 28
Views: 1501

Re: Rename folders only for HAMA by [anidb-###]

ok, sweet, now I have two ways to do this. I had to modify yours a touch to play nice with HAMA + ASS. { def xml = xml('https://raw.githubusercontent.com/Anime-Lists/anime-lists/master/anime-list-full.xml') def aid = xml.anime.find{ it.name == n }.'@anidbid' n + ' [anidb-' + aid + ']' } https://cdn....
by gcs8
06 Apr 2024, 21:58
Forum: Scripting and Automation
Topic: Rename folders only for HAMA by [anidb-###]
Replies: 28
Views: 1501

Re: Rename folders only for HAMA by [anidb-###]

Oh, cool, let me try that, I picked a fight with AoM and made this work also. // Anime title set('atitle', at('en')) if(length(atitle)=0, set('atitle', at('x-jat'))) if(length(atitle)=0, set('atitle', A.Name)) set('atitle', replace(atitle, '\', ' ')) if(start(atitle, '.'), set('atitle', copy(atitle,...
by gcs8
06 Apr 2024, 19:38
Forum: Scripting and Automation
Topic: Rename folders only for HAMA by [anidb-###]
Replies: 28
Views: 1501

Re: Rename folders only for HAMA by [anidb-###]

So, am I looking for something like this for dynamic?

Format: Select all

{
	def name = '{n}'
	def xml = xml('https://raw.githubusercontent.com/Anime-Lists/anime-lists/master/anime-list-full.xml')
	xml.anime.find{ it.name == name }.'@anidbid'
	name + ' {anidb-' + '@anidbid' + '}'
}
by gcs8
06 Apr 2024, 19:04
Forum: Scripting and Automation
Topic: Rename folders only for HAMA by [anidb-###]
Replies: 28
Views: 1501

Re: Rename folders only for HAMA by [anidb-###]

So, you could reference this like HAMA does to get the title > ID mapping for FileBot. https://github.com/Anime-Lists/anime-lists/blob/master/anime-list-full.xml This it's just in this format. <anime anidbid="2656" tvdbid="79755" defaulttvdbseason="1"> <name>Afro Samura...
by gcs8
06 Apr 2024, 18:30
Forum: Scripting and Automation
Topic: Rename folders only for HAMA by [anidb-###]
Replies: 28
Views: 1501

Re: Rename folders only for HAMA by [anidb-###]

Well, I use AoM to match everything by hash and add the extra stuff I want from there, so I don't want to touch the files, I only want to have it tag the folders for me with the AniDB series/index/database ID of the series. :?: Why not have AoM generate file paths with AniDB ID? :?: How can FileBot...
by gcs8
06 Apr 2024, 18:13
Forum: Scripting and Automation
Topic: Rename folders only for HAMA by [anidb-###]
Replies: 28
Views: 1501

Re: Rename folders only for HAMA by [anidb-###]

At that point you can just use T:/{plex.id} as format to name / organize files correctly at once. ☑ Import companion files will take care of moving along the *.jpg files as well. Well, I use AoM to match everything by hash and add the extra stuff I want from there, so I don't want to touch the file...
by gcs8
06 Apr 2024, 17:53
Forum: Scripting and Automation
Topic: Rename folders only for HAMA by [anidb-###]
Replies: 28
Views: 1501

Re: Rename folders only for HAMA by [anidb-###]

ok, let me try and go RTFM, back in a bit.
by gcs8
06 Apr 2024, 17:49
Forum: Scripting and Automation
Topic: Rename folders only for HAMA by [anidb-###]
Replies: 28
Views: 1501

Re: Rename folders only for HAMA by [anidb-###]

whoops, sorry, wrong tab.

Screenshot
by gcs8
06 Apr 2024, 17:47
Forum: Scripting and Automation
Topic: Rename folders only for HAMA by [anidb-###]
Replies: 28
Views: 1501

Re: Rename folders only for HAMA by [anidb-###]

huh, I am not getting that -_- PS T:\Anime\Afro Samurai> filebot -script fn:xattr *.mkv No xattr metadata found Done ?(?????)? PS T:\Anime\Afro Samurai> https://cdn.discordapp.com/attachments/1211948207769260032/1226226759364509706/image.png?ex=6623ffa9&is=66118aa9&hm=246ea7493dbffa8d10410fb...
by gcs8
06 Apr 2024, 17:37
Forum: Scripting and Automation
Topic: Rename folders only for HAMA by [anidb-###]
Replies: 28
Views: 1501

Re: Rename folders only for HAMA by [anidb-###]

This is what I get, maybe I am smooth brain? PS T:\Anime\Afro Samurai> filebot -script fn:xattr '.\Afro Samurai - 1 - Revenge [no group](F20769C4).mkv' Initialize new disk cache: C:\Users\gcs8\AppData\Roaming\FileBot\cache\1 T:\Anime\Afro Samurai\Afro Samurai - 1 - Revenge [no group](F20769C4).mkv n...
by gcs8
06 Apr 2024, 17:30
Forum: Scripting and Automation
Topic: Rename folders only for HAMA by [anidb-###]
Replies: 28
Views: 1501

Re: Rename folders only for HAMA by [anidb-###]

and this one from ctrl + shift [Undefined Variable: java.lang.NullPointerException: Cannot get property 'name' on null object at org.codehaus.groovy.runtime.NullObject::getProperty in org.codehaus.groovy.vmplugin.v8.IndyInterface::fromCache in __script_c53674449a35e89de3895960ea27328d::run] Afro Sam...
by gcs8
06 Apr 2024, 17:27
Forum: Scripting and Automation
Topic: Rename folders only for HAMA by [anidb-###]
Replies: 28
Views: 1501

Re: Rename folders only for HAMA by [anidb-###]

huh, maybe it just hates me then? This is what I get. [Undefined Variable: java.lang.NullPointerException: Cannot get property 'name' on null object at org.codehaus.groovy.runtime.NullObject::getProperty in org.codehaus.groovy.vmplugin.v8.IndyInterface::fromCache in __script_c53674449a35e89de3895960...
by gcs8
06 Apr 2024, 17:11
Forum: Scripting and Automation
Topic: Rename folders only for HAMA by [anidb-###]
Replies: 28
Views: 1501

Re: Rename folders only for HAMA by [anidb-###]

I guess you could try and see what happens? Keep us posted! If the files at hand already have xattr metadata based on AniDB episode information, then you can easily rewrite the file paths, rename folders, etc based on locally known information. If it's TheMovieDB / TheTVDB episode information, then...
by gcs8
06 Apr 2024, 15:23
Forum: Scripting and Automation
Topic: Rename folders only for HAMA by [anidb-###]
Replies: 28
Views: 1501

Rename folders only for HAMA by [anidb-###]

Hey party peeps, I did look around, but maybe I did a bad job looking, is there a way I can do something similar to the below but for anidb? { def series = files.metadata.series.find() series.name + ' {tmdb-' + series.getExternalId('TheMovieDB') + '}' } Taken from here https://www.filebot.net/forums...