[Windows/AMC] Change a scraper depending on media type?
[Windows/AMC] Change a scraper depending on media type?
Hi,
The amc script is running great in combination with utorrent. Movies, tv-shows and anime are all detected perfectly. The only thing I have not been able to figure out is how switch getting data/name from TvDB instead of anidb when anime is detected.
It this possible using for example filters?
----Update----
Instead of trying filters I modified a downloaded version of the script. This did the trick.
I couldn't find it in the script boet dus is identify anime movies from normal movies?
The amc script is running great in combination with utorrent. Movies, tv-shows and anime are all detected perfectly. The only thing I have not been able to figure out is how switch getting data/name from TvDB instead of anidb when anime is detected.
It this possible using for example filters?
----Update----
Instead of trying filters I modified a downloaded version of the script. This did the trick.
I couldn't find it in the script boet dus is identify anime movies from normal movies?
Re: [Windows/AMC] Change a scraper depending on media type?
AniDB has Anime Movies stores as Series with usually 1 Episode. Using TheTVDB for anything that's not a Series probably won't work.
Re: [Windows/AMC] Change a scraper depending on media type?
Lets start with giving you the best wishes for 2016!
And Thank you for your reply and help!
----
I am guessing that an japanese movie or anime movie will now go to unsorted. Lets wait untill a download finshes to check that.
Would it be possible to have the script to check for a movies or series once anime has been detected? Anime and japanese movies would go to a fifth format 'Anime mov'

And Thank you for your reply and help!
----
I am guessing that an japanese movie or anime movie will now go to unsorted. Lets wait untill a download finshes to check that.
Would it be possible to have the script to check for a movies or series once anime has been detected? Anime and japanese movies would go to a fifth format 'Anime mov'
Re: [Windows/AMC] Change a scraper depending on media type?
If you process files with AniDB, and get a match, then it's always an Anime, and it'll be impossible to tell if it's an "Anime Series" or "Anime Movie".
But you can of course have your own heuristics... e.g. if the "Anime" only has 1 Episode, then you format the name differently than from "Anime" that have more than one episode. Get creative!
@see viewtopic.php?f=8&t=2881&hilit=episodelist#p16373
But you can of course have your own heuristics... e.g. if the "Anime" only has 1 Episode, then you format the name differently than from "Anime" that have more than one episode. Get creative!
@see viewtopic.php?f=8&t=2881&hilit=episodelist#p16373
Re: [Windows/AMC] Change a scraper depending on media type?
I tried a few things but I have not been able to get it to work they I would like it to work. Its my complete lack of experience, I won't ask you to help script me step by step but could you confirm if what i did is correct or wrong?
Of course I can image that a lot of people come with these questions so please let me know if I am besomming bothersome and Ill stop asking any further questions.
As for what I would like to achieve. Remove the single anime format and create 2 anime formats (movies and series) that use TvDB or TheMovieDB because the AniDB scraper for Kodi still has issues scraping anime correctly even when the naming is spot on. I removed the anime format and added 2 new formats based on the movies and series named animes (series) and animem(movies).
I continued to the skip auto detect part to start the first part of the format selection and changed it to the following:
I continued with the // DECIDE EPISODE VS MOVIE (IF NOT CLEAR), but did I make any error in the above part?
Of course I can image that a lot of people come with these questions so please let me know if I am besomming bothersome and Ill stop asking any further questions.
As for what I would like to achieve. Remove the single anime format and create 2 anime formats (movies and series) that use TvDB or TheMovieDB because the AniDB scraper for Kodi still has issues scraping anime correctly even when the naming is spot on. I removed the anime format and added 2 new formats based on the movies and series named animes (series) and animem(movies).
I continued to the skip auto detect part to start the first part of the format selection and changed it to the following:
Code: Select all
if (forceIgnore(f))
return []
if (music && forceAudio(f)) // process audio only if music mode is enabled
return [music: f.dir.name]
if (forceMovie(f))
return [mov: detectMovie(f, false)]
if (forceSeries(f))
return [tvs: detectSeriesName(f, true, false) ?: detectSeriesName(input.findAll{ s -> f.dir == s.dir && s.isVideo() }, true, false)]
if (forceAnime(f)){
if (forceMovie(f)){
return [animem: detectMovie(f, false)]
}else if(forceSeries(f)){
return [animes: detectSeriesName(f, true, false) ?: detectSeriesName(input.findAll{ s -> f.dir == s.dir && s.isVideo() }, true, false)]
}
Re: [Windows/AMC] Change a scraper depending on media type?
You do not need to change the amc script.
1.
So the anime movie is detect as anime and processed with anidb? Then you just need to change the anime format.
2.
Is the anime movie detect as movie and processed with themoviedb? Then you just need to set the torrent label to "Anime" and continue to 1.
More importantly, what's the filename that's not processed correctly? Logs? What anime formats are you trying to use for Series and Movie "type" anime?
1.
So the anime movie is detect as anime and processed with anidb? Then you just need to change the anime format.
2.
Is the anime movie detect as movie and processed with themoviedb? Then you just need to set the torrent label to "Anime" and continue to 1.
More importantly, what's the filename that's not processed correctly? Logs? What anime formats are you trying to use for Series and Movie "type" anime?
Re: [Windows/AMC] Change a scraper depending on media type?
Thank you for the reply.
I am sorry, but my first reply is placing the focus on the type of scraper. Going to the core, what I would like to achieve is that the amc scripts has 4 (unsorted would be number 5) defined output folders: Movies, Anime movies, TV-shows and Anime shows.
Which is why I am trying to create 4 formats/groups and adjusting the rules so that if when detects anime and movie it becomes .animem and when it detects anime and series it becomes .animes (instead of .tvs, .mov or .anime)
I am sorry, but my first reply is placing the focus on the type of scraper. Going to the core, what I would like to achieve is that the amc scripts has 4 (unsorted would be number 5) defined output folders: Movies, Anime movies, TV-shows and Anime shows.
Which is why I am trying to create 4 formats/groups and adjusting the rules so that if when detects anime and movie it becomes .animem and when it detects anime and series it becomes .animes (instead of .tvs, .mov or .anime)
Re: [Windows/AMC] Change a scraper depending on media type?
More importantly, what's the filename that's not processed correctly? Logs? What anime formats are you trying to use for Series and Movie "type" anime?
FYI, you can have a billion different output folders with single format. I understand what you're trying to do, but your approach is bad.
Give me a specific example of what you're trying to do, and then I'll show you how to do it.
FYI, you can have a billion different output folders with single format. I understand what you're trying to do, but your approach is bad.
Give me a specific example of what you're trying to do, and then I'll show you how to do it.
Re: [Windows/AMC] Change a scraper depending on media type?
I have 2 files available right now:
1: [DeadFish] Mobile Suit Gundam_ Iron-Blooded Orphans - 13 [720p][AAC].mp4 (anime series)
2: [NoobSubs] Ghost in the Shell The New Movie 2015 (720p Blu-ray 8bit AAC).mp4 (anime movie)
After downloading I want filebot to rename and place 1 in folder G:/Anime Series/etc, and 2 in G:/Anime Movies/etc.
1 would use the TV-shows format as it is currently in the script.
2 would use the movies format as it is currently in the script.
And again thank you for your help
1: [DeadFish] Mobile Suit Gundam_ Iron-Blooded Orphans - 13 [720p][AAC].mp4 (anime series)
2: [NoobSubs] Ghost in the Shell The New Movie 2015 (720p Blu-ray 8bit AAC).mp4 (anime movie)
After downloading I want filebot to rename and place 1 in folder G:/Anime Series/etc, and 2 in G:/Anime Movies/etc.
1 would use the TV-shows format as it is currently in the script.
2 would use the movies format as it is currently in the script.
And again thank you for your help
Re: [Windows/AMC] Change a scraper depending on media type?
By default it seems to process with TheMovieDB and it works alright. If you force AniDB then it doesn't work at all.
So:
1. Copy the default movie/series format: viewtopic.php?f=5&t=2
2. Add some condition that works for you (nothing is perfect, you'll have to come up with something yourself)
Your condition may be based on the filename, or audio/subtitle language, or user-defined label, or anything else you can come up with.
e.g. I can tell it's an anime because it's got "8bit" in the filename:
(obviously, that's not a very generic solution)
Your Gundam episode will most likely be processed with TheTVDB because it doesn't have any of the usual anime markers in the filename.
Since you failed to send me the logs I can't know if the files get processed with AniDB / TheTVDB / TheMovieDB because files may be processed with AniDB if the media is Japanese Audio / English Subtitles. Based on the filename alone files would be processed with TheTVDB / TheMovieDB.
So:
1. Copy the default movie/series format: viewtopic.php?f=5&t=2
2. Add some condition that works for you (nothing is perfect, you'll have to come up with something yourself)
Your condition may be based on the filename, or audio/subtitle language, or user-defined label, or anything else you can come up with.
e.g. I can tell it's an anime because it's got "8bit" in the filename:
Code: Select all
{fn =~ /8bit/ ? 'Anime Movie' : 'Movie'}/{n} ({y})/{n} ({y}){' CD'+pi}{'.'+lang}
Your Gundam episode will most likely be processed with TheTVDB because it doesn't have any of the usual anime markers in the filename.
Since you failed to send me the logs I can't know if the files get processed with AniDB / TheTVDB / TheMovieDB because files may be processed with AniDB if the media is Japanese Audio / English Subtitles. Based on the filename alone files would be processed with TheTVDB / TheMovieDB.