AMC script: TV artwork not in one folder

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
bloodysoul
Posts: 10
Joined: 10 Jun 2014, 14:45

AMC script: TV artwork not in one folder

Post by bloodysoul »

Hi,

I have a problem with the artwork option, when using the amc script. It downloads the artworks in every possible folder, which is of course not quite right. It works like a charm with movies. It would be better to follow the xbmc filenamings (See http://wiki.xbmc.org/index.php?title=Ad ... Filenaming), so that all the artwork is located in the Show folder and not in the season and subs folders. Here is an example of filebot's output, see the end of the log:

Code: Select all

Parameter: movieFormat = anarky/MOVIES/{info.OriginalName == primaryTitle ? primaryTitle.upperInitial() : info.OriginalName.upperInitial()+' ('+primaryTitle.upperInitial()+')'} ({y})/{info.Or                 iginalName == primaryTitle ? primaryTitle.upperInitial().space('.') : info.OriginalName.upperInitial().space('.')+'.AKA.'+n.upperInitial().space('.')}.{y}.{vf}.{source}{'.'+lang}
Parameter: seriesFormat = hush/SERIES/{n}/{episode.special ? 'Specials' : 'Season '+s}/{if (ext == 'srt') 'Subs/'}{n.space('.')}.{'S'+s.pad(2)}E{es*.pad(2).join('E')}.{t.space('.')}.{vf}{'.'+                 lang}
Parameter: artwork = y
Parameter: reportError = y
Parameter: clean = y
Parameter: subtitles = en,de,fr,ar
Parameter: deleteAfterExtract = y
Parameter: ignore = hotfolder
Parameter: gmail = *****
Parameter: mailto = *****
Argument: /media/hush/Downloads/Doctor Who 2005 8x07 Kill The Moon 720p HDTV x264-FoV
Input: /media/hush/Downloads/Doctor Who 2005 8x07 Kill The Moon 720p HDTV x264-FoV/doctor.who.2005.8x07.kill.the.moon.720p.hdtv.x264.fov.mkv
Group: [tvs:doctor who 2005] => [doctor.who.2005.8x07.kill.the.moon.720p.hdtv.x264.fov.mkv]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Matched [doctor.who.2005.8x07.kill.the.moon.720p.hdtv.x264.fov.mkv] to [Doctor.Who.2005.8x07.Kill.The.Moon.HDTV.x264-FoV] via hash
Fetching [Doctor.Who.2005.8x07.Kill.The.Moon.HDTV.x264-FoV.srt]
Export [Doctor.Who.2005.8x07.Kill.The.Moon.HDTV.x264-FoV.srt] as: SubRip / UTF-8
Writing [Doctor.Who.2005.8x07.Kill.The.Moon.HDTV.x264-FoV.srt] to [doctor.who.2005.8x07.kill.the.moon.720p.hdtv.x264.fov.eng.srt]
Get [German] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: /media/hush/Downloads/Doctor Who 2005 8x07 Kill The Moon 720p HDTV x264-FoV/doctor.who.2005.8x07.kill.the.moon.720p.hdtv.x264.fov.mkv
Get [French] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Matched [doctor.who.2005.8x07.kill.the.moon.720p.hdtv.x264.fov.mkv] to [Doctor Who - 08x07 - Kill the Moon.French] via hash
Fetching [Doctor Who - 08x07 - Kill the Moon.French.srt]
Export [Doctor Who - 08x07 - Kill the Moon.French.srt] as: SubRip / UTF-8
Writing [Doctor Who - 08x07 - Kill the Moon.French.srt] to [doctor.who.2005.8x07.kill.the.moon.720p.hdtv.x264.fov.fra.srt]
Get [Arabic] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: /media/hush/Downloads/Doctor Who 2005 8x07 Kill The Moon 720p HDTV x264-FoV/doctor.who.2005.8x07.kill.the.moon.720p.hdtv.x264.fov.mkv
Rename episodes using [TheTVDB]
Auto-detected query: [doctor who 2005]
Fetching episode data for [Doctor Who (2005)]
Fetching episode data for [Doctor Who (2009)]
Auto-detected query: [doctor who 2005]
Fetching episode data for [Doctor Who (2005)]
Fetching episode data for [Doctor Who (2009)]
Auto-detected query: [doctor who 2005]
Fetching episode data for [Doctor Who (2005)]
Fetching episode data for [Doctor Who (2009)]
[MOVE] Rename [/media/hush/Downloads/Doctor Who 2005 8x07 Kill The Moon 720p HDTV x264-FoV/doctor.who.2005.8x07.kill.the.moon.720p.hdtv.x264.fov.fra.srt] to [/media/hush/SERIES/Doctor Who (20                 05)/Season 8/Subs/Doctor.Who.(2005).S08E07.Kill.the.Moon.720p.fra.srt]
[MOVE] Rename [/media/hush/Downloads/Doctor Who 2005 8x07 Kill The Moon 720p HDTV x264-FoV/doctor.who.2005.8x07.kill.the.moon.720p.hdtv.x264.fov.mkv] to [/media/hush/SERIES/Doctor Who (2005)/                 Season 8/Doctor.Who.(2005).S08E07.Kill.the.Moon.720p.mkv]
[MOVE] Rename [/media/hush/Downloads/Doctor Who 2005 8x07 Kill The Moon 720p HDTV x264-FoV/doctor.who.2005.8x07.kill.the.moon.720p.hdtv.x264.fov.eng.srt] to [/media/hush/SERIES/Doctor Who (20                 05)/Season 8/Subs/Doctor.Who.(2005).S08E07.Kill.the.Moon.720p.eng.srt]
Processed 3 files
Fetching series artwork for [Doctor Who (2005)] to [/media/hush/SERIES/Doctor Who (2005)/Season 8]
Banner already exists: /media/hush/SERIES/Doctor Who (2005)/poster.jpg
Banner already exists: /media/hush/SERIES/Doctor Who (2005)/banner.jpg
Banner already exists: /media/hush/SERIES/Doctor Who (2005)/fanart.jpg
Banner already exists: /media/hush/SERIES/Doctor Who (2005)/Season 8/poster.jpg
Banner already exists: /media/hush/SERIES/Doctor Who (2005)/Season 8/banner.jpg
Fanart already exists: /media/hush/SERIES/Doctor Who (2005)/clearart.png
Fanart already exists: /media/hush/SERIES/Doctor Who (2005)/logo.png
Fanart already exists: /media/hush/SERIES/Doctor Who (2005)/landscape.jpg
Fanart already exists: /media/hush/SERIES/Doctor Who (2005)/Season 8/landscape.jpg
Fetching series artwork for [Doctor Who (2005)] to [/media/hush/SERIES/Doctor Who (2005)/Season 8/Subs]
Banner already exists: /media/hush/SERIES/Doctor Who (2005)/Season 8/poster.jpg
Banner already exists: /media/hush/SERIES/Doctor Who (2005)/Season 8/banner.jpg
Banner already exists: /media/hush/SERIES/Doctor Who (2005)/Season 8/fanart.jpg
Banner already exists: /media/hush/SERIES/Doctor Who (2005)/Season 8/Subs/poster.jpg
Banner not found: /media/hush/SERIES/Doctor Who (2005)/Season 8/Subs/banner.jpg / season:seasonwide
Fanart already exists: /media/hush/SERIES/Doctor Who (2005)/Season 8/clearart.png
Fanart already exists: /media/hush/SERIES/Doctor Who (2005)/Season 8/logo.png
Fanart already exists: /media/hush/SERIES/Doctor Who (2005)/Season 8/landscape.jpg
Fanart not found: /media/hush/SERIES/Doctor Who (2005)/Season 8/Subs/landscape.jpg / seasonthumb
     [mail] Sending email: [FileBot] doctor.who.2005.8x07.kill.the.moon.720p.hdtv.x264.fov
     [mail] Sent email with 0 attachments
Clean clutter files and empty folders
User avatar
rednoah
The Source
Posts: 23006
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC script: TV artwork not in one folder

Post by rednoah »

artwork works just fine if you're using the default format, and filebot writes series and season level artwork to the respective folders which should be fine with xbmc/plex
:idea: Please read the FAQ and How to Request Help.
bloodysoul
Posts: 10
Joined: 10 Jun 2014, 14:45

Re: AMC script: TV artwork not in one folder

Post by bloodysoul »

But why is it writing the artwork to the Show/Season x/Subs folder (see the log)?
Also, is there a way to define which artworks are downloaded, or maybe to set some other parameters for the artworks?

Thanks a lot!!
User avatar
rednoah
The Source
Posts: 23006
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC script: TV artwork not in one folder

Post by rednoah »

No, the artwork scripts expects well-structured files, and a "subs" folder (that you create by using a custom format) is not that, and so it's just doing something. Only the code knows why. :D

For the sake of simplicity artwork is an on/off switch. If you want full control you can just fork/modify the amc and artwork.* scripts yourself.
:idea: Please read the FAQ and How to Request Help.
bloodysoul
Posts: 10
Joined: 10 Jun 2014, 14:45

Re: AMC script: TV artwork not in one folder

Post by bloodysoul »

Thanks. I am thinking about using the artwork.tvdb.groovy script (http://filebot.net/scripts/artwork.tvdb.groovy) after calling the amc script. I would than try to limit it to my needs. Is it possible to do so? Where should the script be placed? on home/USER/.filebot/ ?
And how do I call it: filebot -script fn:artwork.tvdb /path/to/tvshows ?

Thank you very much!
Post Reply