Page 1 of 1

New {plex} binding not detecting Animes

Posted: 15 May 2016, 09:00
by psxlover
The animes are placed in the "TV Shows" folder instead if the "Anime" folder in Filebot 7.0.

Code: Select all

Run script [fn:amc] at [Sun May 15 11:44:46 EEST 2016]
Parameter: artwork = y
Parameter: ut_label = Anime
Parameter: ut_state = 11
Parameter: ut_title = [NotWCP] Fairy Tail S2 102 (277) END - Message of Fire [720p] [F2500E74].mkv
Parameter: ut_kind = single
Parameter: ut_file = [NotWCP] Fairy Tail S2 102 (277) END - Message of Fire [720p] [F2500E74].mkv
Parameter: ut_dir = C:\Users\Alex\Downloads\Seeding\Anime
Parameter: subtitles = el,en
Parameter: clean = y
Input: C:\Users\Alex\Downloads\Seeding\Anime\[NotWCP] Fairy Tail S2 102 (277) END - Message of Fire [720p] [F2500E74].mkv
Group: [tvs:fairy tail] => [[NotWCP] Fairy Tail S2 102 (277) END - Message of Fire [720p] [F2500E74].mkv]
Get [Greek] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: C:\Users\Alex\Downloads\Seeding\Anime\[NotWCP] Fairy Tail S2 102 (277) END - Message of Fire [720p] [F2500E74].mkv
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: C:\Users\Alex\Downloads\Seeding\Anime\[NotWCP] Fairy Tail S2 102 (277) END - Message of Fire [720p] [F2500E74].mkv
Rename episodes using [TheTVDB]
Auto-detected query: [Fairy Tail, notwcp fairy tail s2, fairy tail s2]
Fetching episode data for [Fairy Tail]
[TEST] Rename [C:\Users\Alex\Downloads\Seeding\Anime\[NotWCP] Fairy Tail S2 102 (277) END - Message of Fire [720p] [F2500E74].mkv] to [C:\Users\Alex\Downloads\Videos\TV Shows\Fairy Tail\Season 01\Fairy Tail - S01E02 - Fire Dragon, Monkey, and Bull.mkv]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ

Code: Select all

Run script [fn:amc] at [Sun May 15 11:57:36 EEST 2016]
Parameter: artwork = y
Parameter: ut_label = Anime
Parameter: ut_state = 11
Parameter: ut_title = [yibis]_One_Piece_737_[720p][62247979].mkv
Parameter: ut_kind = single
Parameter: ut_file = [yibis]_One_Piece_737_[720p][62247979].mkv
Parameter: ut_dir = C:\Users\Alex\Downloads\Seeding
Parameter: subtitles = el,en
Parameter: clean = y
Input: C:\Users\Alex\Downloads\Seeding\[yibis]_One_Piece_737_[720p][62247979].mkv
Group: [tvs:one piece] => [[yibis]_One_Piece_737_[720p][62247979].mkv]
Get [Greek] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: C:\Users\Alex\Downloads\Seeding\[yibis]_One_Piece_737_[720p][62247979].mkv
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: C:\Users\Alex\Downloads\Seeding\[yibis]_One_Piece_737_[720p][62247979].mkv
Rename episodes using [TheTVDB]
Auto-detected query: [One Piece]
Fetching episode data for [One Piece]
Fetching episode data for [None Piece]
[TEST] Rename [C:\Users\Alex\Downloads\Seeding\[yibis]_One_Piece_737_[720p][62247979].mkv] to [C:\Users\Alex\Downloads\Videos\TV Shows\One Piece\Season 07\One Piece - S07E37 - The Pirates' Banquet And Operation Escape From Alabasta.mkv]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ

Re: New {plex} binding not detecting Animes

Posted: 15 May 2016, 09:44
by psxlover
The problem comes from the change of:

Code: Select all

def forceSeries = { f ->
	label =~ /^(?i:TV|Kids.Shows)/ || f.dir.listPath().any{ it.name ==~ /(?i:TV.Shows)/ } || parseEpisodeNumber(f.path) || parseDate(f.path) || f.path =~ /(?i:tvs-|tvp-|EP[0-9]{2,3}|Season\D?[0-9]{1,2}\D|(19|20)\d{2}.S\d{2})/
}
to

Code: Select all

def forceSeries = { f ->
	label =~ /^(?i:TV|Show|Series|Documetary)/ || f.dir.listPath().any{ it.name ==~ /(?i:TV.Shows)/ } || f.path =~ /(?i:tvs-|tvp-|E{2,3}|EP\d{1,3}|Season\D?\d{1,2}|\d{4}.S\d{2})/ || f.isEpisode()
}
(probably the isEpisode() part) and the fact that forceSeries() is checked before forceAnime().

Re: New {plex} binding not detecting Animes

Posted: 15 May 2016, 16:37
by rednoah
Works for me:

Code: Select all

Input: [yibis]_One_Piece_737_[720p][62247979].mkv
Group: [anime:one piece] => [[yibis]_One_Piece_737_[720p][62247979].mkv]
Rename episodes using [AniDB]
Auto-detected query: [One Piece]
Fetching episode data for [One Piece]
Fetching episode data for [One Piece (2000)]
Fetching episode data for [One Piece: Taose! Kaizoku Ganzack]
Fetching episode data for [One Piece Film: Z]
Fetching episode data for [One Piece Film: Strong World]
[COPY] Rename [[yibis]_One_Piece_737_[720p][62247979].mkv] to [Anime/One Piece/One Piece - 737 - The Birth of the Legend! The Adventures of the Revolutionary Warrior Sabo.mkv]
Processed 1 files
Are you testing with real files? Have the files you're testing with been tagged as TV Show in previous tests? Please check xattr.

Re: New {plex} binding not detecting Animes

Posted: 15 May 2016, 22:09
by psxlover
Is that with amc script? Yes they are real files.
This is the log from a freshly downloaded episode

Code: Select all

Run script [fn:amc] at [Mon May 16 01:05:08 EEST 2016]
Parameter: artwork = y
Parameter: ut_label = Anime
Parameter: ut_state = 20
Parameter: ut_title = [HorribleSubs] Ace Attorney - 05 [1080p].mkv
Parameter: ut_kind = single
Parameter: ut_file = [HorribleSubs] Ace Attorney - 05 [1080p].mkv
Parameter: ut_dir = C:\Users\Alex\Downloads\Seeding
Parameter: subtitles = el,en
Parameter: clean = y
Input: C:\Users\Alex\Downloads\Seeding\[HorribleSubs] Ace Attorney - 05 [1080p].mkv
Group: [tvs:ace attorney] => [[HorribleSubs] Ace Attorney - 05 [1080p].mkv]
Get [Greek] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: C:\Users\Alex\Downloads\Seeding\[HorribleSubs] Ace Attorney - 05 [1080p].mkv
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: C:\Users\Alex\Downloads\Seeding\[HorribleSubs] Ace Attorney - 05 [1080p].mkv
Rename episodes using [TheTVDB]
Auto-detected query: [Ace Attorney]
Fetching episode data for [Ace Attorney]
[COPY] Rename [C:\Users\Alex\Downloads\Seeding\[HorribleSubs] Ace Attorney - 05 [1080p].mkv] to [C:\Users\Alex\Downloads\Videos\TV Shows\Ace Attorney\Season 01\Ace Attorney - S01E05 - Turnabout Samurai - 1st Trial.mkv]
Processed 1 files
Failed to set xattr: C:\Users\Alex\Downloads\Videos\TV Shows\Ace Attorney\Season 01\Ace Attorney - S01E05 - Turnabout Samurai - 1st Trial.mkv:net.filebot.metadata
Fetching series artwork for [Ace Attorney] to [C:\Users\Alex\Downloads\Videos\TV Shows\Ace Attorney\Season 01]
Generate Series NFO: Ace Attorney [305077]
Fetching C:\Users\Alex\Downloads\Videos\TV Shows\Ace Attorney\poster.jpg => [poster/680x1000, en, 7,2, http://thetvdb.com/banners/posters/305077-3.jpg]
Fetching C:\Users\Alex\Downloads\Videos\TV Shows\Ace Attorney\banner.jpg => [series/graphical, en, 10, http://thetvdb.com/banners/graphical/305077-g.jpg]
Fetching C:\Users\Alex\Downloads\Videos\TV Shows\Ace Attorney\fanart.jpg => [fanart/1920x1080, en, 0, http://thetvdb.com/banners/fanart/original/305077-2.jpg]
Fetching C:\Users\Alex\Downloads\Videos\TV Shows\Ace Attorney\Season 01\poster.jpg => [season/season/1, en, 0, http://thetvdb.com/banners/seasons/305077-1.jpg]
Banner not found: C:\Users\Alex\Downloads\Videos\TV Shows\Ace Attorney\Season 01\banner.jpg / season:seasonwide
Resource not found: http://webservice.fanart.tv/v3/tv/305077?api_key=780b986b22c35e6f7a134a2f392c2deb
Fanart not found: C:\Users\Alex\Downloads\Videos\TV Shows\Ace Attorney\clearart.png / hdclearart
Fanart not found: C:\Users\Alex\Downloads\Videos\TV Shows\Ace Attorney\clearart.png / clearart
Fanart not found: C:\Users\Alex\Downloads\Videos\TV Shows\Ace Attorney\logo.png / hdtvlogo
Fanart not found: C:\Users\Alex\Downloads\Videos\TV Shows\Ace Attorney\logo.png / clearlogo
Fanart not found: C:\Users\Alex\Downloads\Videos\TV Shows\Ace Attorney\landscape.jpg / tvthumb
Fanart not found: C:\Users\Alex\Downloads\Videos\TV Shows\Ace Attorney\Season 01\landscape.jpg / seasonthumb
Done ヾ(@⌒ー⌒@)ノ

Re: New {plex} binding not detecting Animes

Posted: 16 May 2016, 04:59
by rednoah
Very strange. Please try the latest filebot and use dev:amc for the latest script.

Re: New {plex} binding not detecting Animes

Posted: 16 May 2016, 06:28
by psxlover
With r3991 and dev:amc I still get the same issue:

Code: Select all

C:\Users\Alex>filebot -version
FileBot 4.7 (r3991) / Java(TM) SE Runtime Environment 1.8.0_51


C:\Users\Alex>filebot.exe -script dev:amc --output "C:\Users\Alex\Downloads\Videos" --log-file "C:\Users\Alex\Downloads\
Videos\filebot\amc.log" --action test --conflict override -non-strict --def artwork=y "ut_label=Anime" "ut_state=11" "ut
_title=[HorribleSubs] Ace Attorney - 05 [1080p].mkv" "ut_kind=single" "ut_file=[HorribleSubs] Ace Attorney - 05 [1080p].
mkv" "ut_dir=C:\Users\Alex\Downloads\Seeding" subtitles=el,en clean=y
Locking C:\Users\Alex\Downloads\Videos\filebot\amc.log
Run script [dev:amc] at [Mon May 16 09:26:18 EEST 2016]
Parameter: artwork = y
Parameter: ut_label = Anime
Parameter: ut_state = 11
Parameter: ut_title = [HorribleSubs] Ace Attorney - 05 [1080p].mkv
Parameter: ut_kind = single
Parameter: ut_file = [HorribleSubs] Ace Attorney - 05 [1080p].mkv
Parameter: ut_dir = C:\Users\Alex\Downloads\Seeding
Parameter: subtitles = el,en
Parameter: clean = y
Input: C:\Users\Alex\Downloads\Seeding\[HorribleSubs] Ace Attorney - 05 [1080p].mkv
Group: [tvs:ace attorney] => [[HorribleSubs] Ace Attorney - 05 [1080p].mkv]
Get [Greek] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: C:\Users\Alex\Downloads\Seeding\[HorribleSubs] Ace Attorney - 05 [1080p].mkv
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: C:\Users\Alex\Downloads\Seeding\[HorribleSubs] Ace Attorney - 05 [1080p].mkv
Rename episodes using [TheTVDB]
Auto-detected query: [Ace Attorney]
Fetching episode data for [Ace Attorney]
[TEST] Rename [C:\Users\Alex\Downloads\Seeding\[HorribleSubs] Ace Attorney - 05 [1080p].mkv] to [C:\Users\Alex\Downloads
\Videos\TV Shows\Ace Attorney\Season 01\Ace Attorney - S01E05 - Turnabout Samurai - 1st Trial.mkv]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ

Re: New {plex} binding not detecting Animes

Posted: 16 May 2016, 07:26
by rednoah
Regex is broken, so the ee in Seeding causes it to force TV mode. :D

Re: New {plex} binding not detecting Animes

Posted: 16 May 2016, 08:05
by psxlover
Oh I see, you were looking for 2-3 "E"s instead of digits :P.
Does filebot cache the dev:amc script, cause I still get wrong results using it. The script is ok now though, manually downloading and using the new version from Github uses the correct "Anime" folder.

Also is there any particular reason why the title of the anime now is in Katakana(?) instead of the English title? I saw in the changelog that there are language.XXX bindings, but trying localize.English.primaryTitle didn't seem to make any difference.

Re: New {plex} binding not detecting Animes

Posted: 16 May 2016, 08:05
by rednoah
1.
Yep, dev:scripts are cached for 1 day.


2.
I don't see any カタカナ:

Code: Select all

Rename episodes using [AniDB]
Auto-detected query: [Ace Attorney]
Fetching episode data for [Gyakuten Saiban: Sono "Shinjitsu", Igi Ari!]
Stripping invalid characters from new path: Anime/Gyakuten Saiban: Sono "Shinjitsu", Igi Ari/Gyakuten Saiban: Sono "Shinjitsu", Igi Ari! - 05 - Turnabout Samurai: 1st Trial
[COPY] Rename [Seeding/[HorribleSubs] Ace Attorney - 05 [1080p].mp4] to [Anime/Gyakuten Saiban Sono Shinjitsu, Igi Ari/Gyakuten Saiban Sono Shinjitsu, Igi Ari! - 05 - Turnabout Samurai 1st Trial.mp4]
Processed 1 files
If you're using the default format, then it'll use the primary name, which may or may not be romanized Japanese. If you want the English name then you'll need to pass in your own format.

Re: New {plex} binding not detecting Animes

Posted: 16 May 2016, 08:32
by psxlover
Yeah, sorry I was trying my own format, but I was running the wrong script :oops:.