mirror of
https://github.com/simon987/sist2.git
synced 2025-04-18 01:36:42 +00:00
Update scripting.md
This commit is contained in:
parent
046edea0e2
commit
f249992798
@ -111,16 +111,6 @@ if (ctx._source.path != "") {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Set the name of the last folder (`/path/to/<studio>/file.mp4`) to `studio.<studio>` tag
|
|
||||||
```Java
|
|
||||||
ArrayList tags = ctx._source.tag = new ArrayList();
|
|
||||||
|
|
||||||
if (ctx._source.path != "") {
|
|
||||||
String[] names = ctx._source.path.splitOnToken('/');
|
|
||||||
tags.add("studio." + names[names.length-1]);
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
Parse `EXIF:F Number` tag
|
Parse `EXIF:F Number` tag
|
||||||
```Java
|
```Java
|
||||||
if (ctx._source?.exif_fnumber != null) {
|
if (ctx._source?.exif_fnumber != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user