Sorting TV Shows and Anime into separate folders

Any questions? Need some help?
Post Reply
Lenaxia
Posts: 2
Joined: 12 Oct 2013, 22:18

Sorting TV Shows and Anime into separate folders

Post by Lenaxia »

Hey folks.

I keep my anime and TV shows in separate media libraries for plex. Is there any way I can have it auto sort shows into different folders?

In short, if it exists in anidb.net it should move it to my anime media library. If not it will go to my TV library.

I keep my anime/non-anime movies in a single library so I'll just have it run a movie sort beforehand unless there is a way I can detect if a file is specifically a movie?

Any ideas guys?
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Sorting TV Shows and Anime into separate folders

Post by rednoah »

Nope, that'd be very error prone, very difficult to do well, and used by only a small minority of users.

If you wanna write your own script you're welcome to give this a try and see what logic you'd come up with for this problem. If you need tvshow names and anime names you can use filebot internals.

You can start with this:

Code: Select all

import net.sourceforge.filebot.media.*

def anime_names = new ReleaseInfo().getTheTVDBIndex().name
def ttvdb_names = new ReleaseInfo().getAnidbIndex().name

println anime_names[0..3]
println anime_names.size()
println ttvdb_names[0..3]
println ttvdb_names.size()

PS: What AMC is doing to filter out some Anime at least is by checking audio language and subtitle language. It's a safe guess that an .mkv with Japanese audio and ASS subtitles is an anime, with .avi files that won't work of course.
:idea: Please read the FAQ and How to Request Help.
Post Reply