Separate TV/TV Movies and TV Shows/Talk Shows into folders

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
User avatar
Wolfie
Posts: 128
Joined: 27 Oct 2015, 02:59

Separate TV/TV Movies and TV Shows/Talk Shows into folders

Post by Wolfie »

Just started using it and I couldn't find what I was looking for in the main post for the amc.groovy script, so here are my questions..

Main item I need help with is this.. From time to time I'll elect to download a Talk Show and I keep those in a completely different area than regular TV shows (likewise with TV movies, where they aren't typically part of a show but they aren't typical movies neither). So is there a way to have the script detect the difference and properly place the content in the right areas?

Also, for talk shows, is it possible to have it sorted not only by year (season) but also by month? Here are the structures I prefer to use..

TV: X:\Media\TV\<title> (<year>)\season <#>\file
Movies: X:\Media\Movies\<title> (year)\file
TV Movies (save as movies but in "TV Movies")
Talk Shows: Y:\TalkShows\<show title>\<year>\<month>\file

Also, preferred but not completely necessary is for the month, instead of only a two digit number, to also have the name of the month after (so "01 - January" for example). As long as it's a two digit month, that's the primary want, the month name is optional.

So summarizing.. Any way to have it detect special items (talk shows, tv movies) to put into different areas and for talk shows, possible to branch off based on month?
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC help

Post by rednoah »

Anything is possible, you just have to pass your own format. Though, that'll require you to express what you want as format expression.

@see viewtopic.php?f=5&t=2


The question you'll need to ask yourself:

1. How is a "Talk Show" different from a "TV Show" and what metadata/parameters can I use to make that distinction?

2. How is a "TV Movie" different from a "Movie" and what metadata/parameters can I use to make that distinction?


So it's all quite possible, but there's no out-of-the-box support for any of that.
:idea: Please read the FAQ and How to Request Help.
User avatar
Wolfie
Posts: 128
Joined: 27 Oct 2015, 02:59

Re: AMC help

Post by Wolfie »

rednoah wrote:1. How is a "Talk Show" different from a "TV Show" and what metadata/parameters can I use to make that distinction?

2. How is a "TV Movie" different from a "Movie" and what metadata/parameters can I use to make that distinction?
What meta data are you usually able to pull? If you can pull genres, TheTVDB has 'talk show' attached to it. If something is a movie (let's say a movie is over 60 minutes for arguments sake) but originally aired on TV, then that's a TV movie, though I'm not sure if that information is made available. I'm quite new to the filebot/amc.groovy thing so this is all very new to me, so please be forgiving if something is "punching me in the face" obvious but I don't notice it.

Push come to shove though, if I could use labels to control the actions then that would work too.

For the topic you linked to, is that something to change within FileBot or something to change within the amc script?
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Separate TV/TV Movies and TV Shows/Talk Shows into folde

Post by rednoah »

1.
You do not need to modify filebot/amc. You just need to pass in your own format expressions, i.e. you change the command-line options in the filebot command-line call.

Learn how Format Expressions work:
http://www.filebot.net/naming.html

I recommend using the Format Editor, and only paste your format into the command-line once you have it figured out.

Image


2.
You have {genres} which will give you all the genres. You have {minutes} which will give you the media duration based on MediaInfo, but there's movie runtime / episode runtime in the metadata as well.

I don't see "originally aired on TV" kind of metadata in TheMovieDB:
http://pastebin.com/5TpS0jgx

I recommend labels though, for the sake of simplicity. You can access whatever you pass in as --def ut_label via the {label} binding in the format.


3.
Use Google to learn some command-line (how to pass arguments) and Groovy (conditions, operators, blocks) basics.
:idea: Please read the FAQ and How to Request Help.
User avatar
Wolfie
Posts: 128
Joined: 27 Oct 2015, 02:59

Re: Separate TV/TV Movies and TV Shows/Talk Shows into folde

Post by Wolfie »

How do you get that meta data in that (JSON?) format? If it's not publicly available, then could you show me the output for this? http://www.imdb.com/xml/title/tt2545440/reference
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Separate TV/TV Movies and TV Shows/Talk Shows into folde

Post by rednoah »

1.
Does the format matter? You see what information is sent back, so all that information should be available for use in your format expression.

2.
FileBot does not use IMDb.

3.
Just look at all the examples, try them, see how they work. Then experiment with expressing your own logic.
:idea: Please read the FAQ and How to Request Help.
User avatar
Wolfie
Posts: 128
Joined: 27 Oct 2015, 02:59

Re: Separate TV/TV Movies and TV Shows/Talk Shows into folde

Post by Wolfie »

rednoah wrote:1.
Does the format matter? You see what information is sent back, so all that information should be available for use in your format expression.

2.
FileBot does not use IMDb.

3.
Just look at all the examples, try them, see how they work. Then experiment with expressing your own logic.
1. Was just wondering. Wanted to see if different types of information would be returned which could distinguish between the three.

2. I realized that shortly after I posted that.

3. I'm assuming that I still wouldn't need to modify amc.groovy at all (locally of course)?


I'm still quite a noob to this so please don't pull your hair out in frustration but.... is there a way (such as a optional customizable config file) where someone could specify the naming structure they want to use without having to pass it via command line each time? If not then perhaps such a feature could be added and then additional video types could be added (when a label is used, look for a type by the same name and use it if it exists, for example). Would certainly provide extreme flexibility for this wonderful script.
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Separate TV/TV Movies and TV Shows/Talk Shows into folde

Post by rednoah »

1.
You do understand that you're pretty much asking for what alias does?
http://www.techradar.com/how-to/computi ... ds-1305638

2.
Besides, why don't you just load your arguments from your own config file yourself?
viewtopic.php?f=4&t=1041#p9794
:idea: Please read the FAQ and How to Request Help.
User avatar
Wolfie
Posts: 128
Joined: 27 Oct 2015, 02:59

Re: Separate TV/TV Movies and TV Shows/Talk Shows into folde

Post by Wolfie »

rednoah wrote:1.
Does the format matter? You see what information is sent back, so all that information should be available for use in your format expression.
Revenue and budget aren't available (not that I can see anyways). I noticed that TV movies don't have a revenue (at least the few I looked at), so that could be a way to determine if it's a theatrical release or 'other' (TV movie, direct to video?, etc).

Still learning the logic and such of naming strings, though I'm a bit lost on how to use an alias to determine how the script behaves.
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Separate TV/TV Movies and TV Shows/Talk Shows into folde

Post by rednoah »

r3278 makes budget, revenue and popularity fields accessible:

Code: Select all

{ny} {info.budget} {info.revenue} {info.popularity} {info.budget == 0 && info.revenue == 0 ? 'TV Movie' : 'Theatrical  Movie'}
:idea: Please read the FAQ and How to Request Help.
User avatar
Wolfie
Posts: 128
Joined: 27 Oct 2015, 02:59

Re: Separate TV/TV Movies and TV Shows/Talk Shows into folde

Post by Wolfie »

rednoah wrote:r3278 makes budget, revenue and popularity fields accessible:

Code: Select all

{ny} {info.budget} {info.revenue} {info.popularity} {info.budget == 0 && info.revenue == 0 ? 'TV Movie' : 'Theatrical  Movie'}
Superb. Though I wish the type of release was part of the info supplied (theatrical, direct to video, TV, whatever else). But that's not something you have control over so just have to make due with this. Just hope I don't run into examples that make it a bust. Thanks.
Post Reply