Refresh only xattrs and/or access xattr writing method from groovy
Posted: 04 Jan 2020, 21:00
Hello there!
Is the algorithm that writes xattrs to the file available as a method for groovy scripting? Or do I have to replicate it? I've searched everywhere including the docs but I can't find any definitive answer.
I simply want to refresh/refetch the extended attributes. From the internet, that is. So for example, a show was still running earlier but has now ended with no more seasons to come. Replace {'status': 'running'} with {'status': 'ended'}. Or, for example, I fetched metadata from TheMovieDB::TV but then I want fetch the metadata provided by TheTVDB (although this second example scenario is less important).
Just like fn:artwork.tvdb but only metadata such as xattrs and nfos. No artwork och file naming.
Is this possible without replicating it from scratch in groovy? For example, if in the future filebot includes some other xattr which I then have to hard code it in my groovy script. That would be rather annoying.
By the way, I have some programming skills but I have never used groovy before so bare with me. But I'm prepared for the learning curve.
Is the algorithm that writes xattrs to the file available as a method for groovy scripting? Or do I have to replicate it? I've searched everywhere including the docs but I can't find any definitive answer.
I simply want to refresh/refetch the extended attributes. From the internet, that is. So for example, a show was still running earlier but has now ended with no more seasons to come. Replace {'status': 'running'} with {'status': 'ended'}. Or, for example, I fetched metadata from TheMovieDB::TV but then I want fetch the metadata provided by TheTVDB (although this second example scenario is less important).
Just like fn:artwork.tvdb but only metadata such as xattrs and nfos. No artwork och file naming.
Is this possible without replicating it from scratch in groovy? For example, if in the future filebot includes some other xattr which I then have to hard code it in my groovy script. That would be rather annoying.
By the way, I have some programming skills but I have never used groovy before so bare with me. But I'm prepared for the learning curve.