Filebot CLI AMC script stripping : from the drive on Windows

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
csantiago78
Donor
Posts: 10
Joined: 22 Oct 2013, 19:57

Filebot CLI AMC script stripping : from the drive on Windows

Post by csantiago78 »

Hi rednoah,

I have been using filebot on MAC for some time, with excellent results.

Now I am porting my scripts to windows 8.1 as I am double booting.

I am having the following issue with this script:

Code: Select all

cmd /c filebot -script fn:amc "E:/- hazelfeeder" --log-file "C:/Users/Cristian/Downloads/amc.log" --action move --conflict override -non-strict --def music=n "subtitles=es,en" artwork=y "seriesFormat=\"E:/All Media/TV Shows/{n}/Season {s}/{n.space('.')}.{s00e00}.{vf}.{source}.{vc}-{group}{'.'+lang}\"" "movieFormat=\"E:/All Media/Movies/{n} ({y})/{n.space('.')}.{y}.{vf}.{source}.{vc}-{group}{'.'+lang}\""
It basically should get the files on "E:\- hazelfeeder", add subtitles and move them to "E:\All Media\Movies" or TV Shows accordingly.

But it strips the : from the drive letter, moving the files to "E:\- hazelfeeder\E\All Media\..." instead.

Here's the log:

Code: Select all

Parameter: music = n
Parameter: subtitles = es,en
Parameter: artwork = y
Parameter: seriesFormat = "E:/All Media/TV Shows/{n}/Season {s}/{n.space('.')}.{s00e00}.{vf}.{source}.{vc}-{group}{'.'+lang}"
Parameter: movieFormat = "E:/All Media/Movies/{n} ({y})/{n.space('.')}.{y}.{vf}.{source}.{vc}-{group}{'.'+lang}"
Argument: E:\- hazelfeeder
Input: E:\- hazelfeeder\24.S09E09.720p.HDTV.X264-DIMENSION.mkv
Input: E:\- hazelfeeder\Bad.Words.2013.1080p.BluRay.x264-GECKOS.mkv
Input: E:\- hazelfeeder\continuum.s03e13.720p.hdtv.x264-2hd.eng.srt
Input: E:\- hazelfeeder\continuum.s03e13.720p.hdtv.x264-2hd.mkv
Input: E:\- hazelfeeder\falling.skies.s04e01.720p.hdtv.x264-killers.eng.srt
Input: E:\- hazelfeeder\falling.skies.s04e01.720p.hdtv.x264-killers.mkv
Input: E:\- hazelfeeder\The.Last.Ship.S01E01.720p.HDTV.X264-DIMENSION.eng.srt
Input: E:\- hazelfeeder\The.Last.Ship.S01E01.720p.HDTV.X264-DIMENSION.mkv
Input: E:\- hazelfeeder\The.Last.Ship.S01E01.720p.HDTV.X264-DIMENSION.spa.srt
Bad.Words.2013.1080p.BluRay.x264-GECKOS.mkv [series: Bad Words, movie: Bad Words (2014)]
Exclude Series: Bad Words
Group: [tvs:24] => [24.S09E09.720p.HDTV.X264-DIMENSION.mkv]
Group: [tvs:null, mov:bad words 2014, anime:null] => [Bad.Words.2013.1080p.BluRay.x264-GECKOS.mkv]
Group: [tvs:continuum] => [continuum.s03e13.720p.hdtv.x264-2hd.eng.srt, continuum.s03e13.720p.hdtv.x264-2hd.mkv]
Group: [tvs:falling skies] => [falling.skies.s04e01.720p.hdtv.x264-killers.eng.srt, falling.skies.s04e01.720p.hdtv.x264-killers.mkv]
Group: [tvs:the last ship] => [The.Last.Ship.S01E01.720p.HDTV.X264-DIMENSION.eng.srt, The.Last.Ship.S01E01.720p.HDTV.X264-DIMENSION.mkv, The.Last.Ship.S01E01.720p.HDTV.X264-DIMENSION.spa.srt]
Get [Spanish] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: E:\- hazelfeeder\24.S09E09.720p.HDTV.X264-DIMENSION.mkv
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: E:\- hazelfeeder\24.S09E09.720p.HDTV.X264-DIMENSION.mkv
Rename episodes using [TheTVDB]
Auto-detected query: [24]
Fetching episode data for [24]
Fetching episode data for [24 (IN)]
Fetching episode data for [24 uur met...]
Fetching episode data for [24 Hours in A&E]
Fetching episode data for [24 Hours To Kill]
Stripping invalid characters from new path: "E:/All Media/TV Shows/24/Season 9/24.S09E09.720p.HDTV.x264-DIMENSION"
[MOVE] Rename [E:\- hazelfeeder\24.S09E09.720p.HDTV.X264-DIMENSION.mkv] to [E\All Media\TV Shows\24\Season 9\24.S09E09.720p.HDTV.x264-DIMENSION.mkv]
Processed 1 files
Fetching series artwork for [24] to [E:\- hazelfeeder\E\All Media\TV Shows\24\Season 9]
Fetching E:\- hazelfeeder\E\All Media\TV Shows\24\poster.jpg => {id=34064, BannerMirror=http://thetvdb.com/banners/, BannerPath=posters/76290-4.jpg, BannerType=poster, BannerType2=680x1000, Language=en, Rating=8.2333, RatingCount=30}
Fetching E:\- hazelfeeder\E\All Media\TV Shows\24\banner.jpg => {id=388911, BannerMirror=http://thetvdb.com/banners/, BannerPath=graphical/76290-g14.jpg, BannerType=series, BannerType2=graphical, Language=en, Rating=7.1429, RatingCount=14}
Fetching E:\- hazelfeeder\E\All Media\TV Shows\24\fanart.jpg => {id=1008396, BannerMirror=http://thetvdb.com/banners/, BannerPath=fanart/original/76290-46.jpg, BannerType=fanart, BannerType2=1920x1080, Language=en, Rating=8.6667, RatingCount=6, SeriesName=false, ThumbnailPath=_cache/fanart/original/76290-46.jpg, VignettePath=fanart/vignette/76290-46.jpg}
Fetching E:\- hazelfeeder\E\All Media\TV Shows\24\Season 9\poster.jpg => {id=1012611, BannerMirror=http://thetvdb.com/banners/, BannerPath=seasons/76290-9-5.jpg, BannerType=season, BannerType2=season, Season=9, Language=en, Rating=6.4167, RatingCount=12}
Banner not found: E:\- hazelfeeder\E\All Media\TV Shows\24\Season 9\banner.jpg / season:seasonwide
Fetching E:\- hazelfeeder\E\All Media\TV Shows\24\clearart.png => {type=clearart, id=7941, url=http://assets.fanart.tv/fanart/tv/76290/clearart/24-76290-3.png, lang=en, likes=3}
Fetching E:\- hazelfeeder\E\All Media\TV Shows\24\logo.png => {type=clearlogo, id=7707, url=http://assets.fanart.tv/fanart/tv/76290/clearlogo/24-76290-4.png, lang=en, likes=4}
Fetching E:\- hazelfeeder\E\All Media\TV Shows\24\landscape.jpg => {type=tvthumb, id=4499, url=http://assets.fanart.tv/fanart/tv/76290/tvthumb/0_76290 (2).jpg, lang=en, likes=2}
Fetching E:\- hazelfeeder\E\All Media\TV Shows\24\Season 9\landscape.jpg => {type=seasonthumb, id=39932, url=http://assets.fanart.tv/fanart/tv/76290/seasonthumb/24-536145eb8d21e.jpg, lang=en, likes=1, season=9}
Get [Spanish] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: E:\- hazelfeeder\Bad.Words.2013.1080p.BluRay.x264-GECKOS.mkv
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: E:\- hazelfeeder\Bad.Words.2013.1080p.BluRay.x264-GECKOS.mkv
Rename movies using [TheMovieDB]
Auto-detect movie from context: [E:\- hazelfeeder\Bad.Words.2013.1080p.BluRay.x264-GECKOS.mkv]
Stripping invalid characters from new path: "E:/All Media/Movies/Bad Words (2014)/Bad.Words.2014.1080p.BluRay.x264-GECKOS"
[MOVE] Rename [E:\- hazelfeeder\Bad.Words.2013.1080p.BluRay.x264-GECKOS.mkv] to [E\All Media\Movies\Bad Words (2014)\Bad.Words.2014.1080p.BluRay.x264-GECKOS.mkv]
Processed 1 files
As you can see the parameters seem sent correctly: no escaping issues... ;)

Can you help please? :oops:

Thanks and kind regards,

Cristian
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot CLI AMC script stripping : from the drive on Win

Post by rednoah »

Why would your target path start and end with ""? "E is not a valid drive designation, nor is " a valid path character in general, especially not at the beginning or end of the path. You pass in characters that shouldn't be there at all.
:idea: Please read the FAQ and How to Request Help.
csantiago78
Donor
Posts: 10
Joined: 22 Oct 2013, 19:57

Re: Filebot CLI AMC script stripping : from the drive on Win

Post by csantiago78 »

rednoah wrote:Why would your target path start and end with ""? "E is not a valid drive designation, nor is " a valid path character in general, especially not at the beginning or end of the path. You pass in characters that shouldn't be there at all.
Thanks man!!! :D :D :D :D
Post Reply