[Feature Request] Drop folders into "Episodes" panel

All your suggestions, requests and ideas for future development
Post Reply
TheGrudge
Posts: 7
Joined: 25 May 2014, 09:07

[Feature Request] Drop folders into "Episodes" panel

Post by TheGrudge »

Hi,

it would be nice if you can search for a TV show in the episodes panel and when the search result is displayed, drop a folder into the panel to mark all episodes that are already in that folder.

Or even search automatically for the show if the folder is dropped into the panel, e.g. dropping the folder "The Walking Dead" would automatically search for the episodes and mark all those episodes, that are in the folder already.

I use the episodes panel for organizing my tv shows, and right now I copy&paste the information into an OpenOffice spreadsheet and mark all the episodes that I have manually. But whenever the episodes list changes, I need to merge it with the spreadsheet. This isn't too bad, but an automated workflow would be even better. :D
User avatar
rednoah
The Source
Posts: 23934
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Feature Request] Drop folders into "Episodes" panel

Post by rednoah »

If you have renamed your files with FileBot and xattr enabled then Analyze => Attributes will give you all the information you could possibly need and generating an index of all your stuff will only take seconds:
Image

What it doesn't do is check for missing episodes, but there's a (rather untested) script for that here:
https://github.com/filebot/scripts/blob ... iss.groovy


Whatever it is your doing is probably a waste of time though, and even if more automated I don't quite see the point.
:idea: Please read the FAQ and How to Request Help.
TheGrudge
Posts: 7
Joined: 25 May 2014, 09:07

Re: [Feature Request] Drop folders into "Episodes" panel

Post by TheGrudge »

I want to have an overview of all my tv shows and see what episodes are still missing. I'll try the script, maybe it is already doing what I want to achieve :-)
TheGrudge
Posts: 7
Joined: 25 May 2014, 09:07

Re: [Feature Request] Drop folders into "Episodes" panel

Post by TheGrudge »

Ok I'm fairly new to Groovy and I don't quite understand the miss.groovy script.
I managed to activate xattr for my filesystem (ext4) and renamed some files with filebot. Now I can see the extended attributes in the files. By the way I don't have the "Attributes" tab in the Analyse panel, but this isn't that important right now.

If I run the miss.groovy script, I get an error in line 9, where the any command is located. In the script the any function gets two closures / collections as a parameter? Am I right? If so, this doesn't seem to be valid, at least on my computer. I get an compile error. If I remove the second closure, it compiles, but still the script isn't working, because now in the shows list there are only boolean values, in my case true.

Later in the script this list is iterated, but it seems to await a list, that has "tvdb" or "anidb" as the first value, and the show name as a second value.
But this isn't the case here, I only get a list that looks like this: [true,true,true]. Maybe because I modified the any command before in the script.

Do I need a special groovy version that handles this kind of error command? And how does any work here? I always thought any must be called on a collection?

Sorry for the stupid questions, but I never used groovy before.
TheGrudge
Posts: 7
Joined: 25 May 2014, 09:07

Re: [Feature Request] Drop folders into "Episodes" panel

Post by TheGrudge »

Also "log.finest" isn't working, so I commented it. I guess it is just for debugging anyways...
TheGrudge
Posts: 7
Joined: 25 May 2014, 09:07

Re: [Feature Request] Drop folders into "Episodes" panel

Post by TheGrudge »

Doesn't any work like this?
[1,2,3].any{it==4}
I really don't understand the any statement in the script... :-(
TheGrudge
Posts: 7
Joined: 25 May 2014, 09:07

Re: [Feature Request] Drop folders into "Episodes" panel

Post by TheGrudge »

I tried looking in the filebot code, but I am not able to find all groovy functions. Is there an overview of all functions, because the list on the webpage seems to be too short. Maybe some JavaDoc?
TheGrudge
Posts: 7
Joined: 25 May 2014, 09:07

Re: [Feature Request] Drop folders into "Episodes" panel

Post by TheGrudge »

Ok, after completely removing filebot and installing it again it seems to work, I guess my package manager did something wrong on the last update...
User avatar
rednoah
The Source
Posts: 23934
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Feature Request] Drop folders into "Episodes" panel

Post by rednoah »

The scripts require FileBot 4.1 RC4.

Collection.any(Closure) is part of the Groovy JDK

But any(Closure...) is provided by FileBot, kinda like tryQuietly(Closure), and is defined in ExpressionFormatFunctions.java
:idea: Please read the FAQ and How to Request Help.
Post Reply