What type is fs and what value does it have?
That'd be what I ask myself.
Code level debugging via forum message makes no sense. I cannot help you with these kinds of things. You'll need to figure it out yourself. It'd start by doing some basic Groovy tutorials to acquire some basic development and debugging abilities.
fn:artwork.tvdb stopped working
Re: fn:artwork.tvdb stopped working
Please read the FAQ and How to Request Help.
Re: fn:artwork.tvdb stopped working
fs = [filepath+ filename]
fs.getClass() = class java.util.ArrayList
fs.getClass() = class java.util.ArrayList
Re: fn:artwork.tvdb stopped working
How did you come to that conclusion?
Hint: It's not. It's a List object that contains File objects.
The rest is up to you. I'll unsubscribe from this thread now.
EDIT: I see you figured it out. You'll be fine.
Please read the FAQ and How to Request Help.
Re: fn:artwork.tvdb stopped working
probably not the best way to do it, but it works, finally
I spend hours on this
I just don't get why when it worked in GUI + Groovy Pad and not in script ?
I spend hours on this
Code: Select all
if (fs[0].metadata instanceof MultiEpisode){
log.fine "fs[0].metadata: ${fs[0].metadata}"
log.fine "fs[0].metadata: ${fs[0].metadata.episodes.id}"
}
I just don't get why when it worked in GUI + Groovy Pad and not in script ?