What does the --output option do?

Support for Windows users
Post Reply
karanrajpal14
Posts: 23
Joined: 03 May 2015, 16:21

What does the --output option do?

Post by karanrajpal14 »

Hey,
I'm having a few issues with the AMC script that I put together with your help.

Firstly, when I run the script on a folder with a tv show that has the following structure

H:.
└───Rick and Morty
├───Season 1
└───Season 2

After the script has run its course, the structure is:
H:.
└───Rick and Morty
├───Season 1
│ └───Rick And Morty (2013)
│ ├───Season 1 (2013)
│ └───Season 1 (2014)
└───Season 2
└───Rick And Morty (2013)
└───Season 2 (2015)

Which is completely wrong from what I've expected. Also, the format works fine when I run it using the GUI but not like this which makes me wonder what the issue is. Here are is my calling script and args and a log too.

Code: Select all

filebot -script fn:amc --action move --conflict fail -non-strict --log-file "E:\scriptHub\filebotMediaRenameBatch\TV\amcTV.log" "H:\Processing" --def @E:\scriptHub\filebotMediaRenameBatch\TV\amcArgsTV.txt

excludeList=E:\scriptHub\filebotMediaRenameBatch\TV\filebotAMCfilebotExcludedFilesTV.txt
seriesFormat={n.replaceTrailingBrackets().sortName().upperInitial().space(' ').replaceAll(/\b[IiVvXx]+\b/, { it.upper() })} ({y})/{episode.special ? 'Special' : 'Season '+s} ({d.year})/{n.sortName().upperInitial().replaceTrailingBrackets().space(' ').replaceAll(/\b[IiVvXx]+\b/, { it.upper() }).replaceFirst(/^(?i)(The|A|An)\s(.+)/, /$2, $1/)} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'") .lowerTrail().replacePart(', Part $1').replaceAll(/\b[IiVvXx]+\b/, { it.upper() }).replaceAll(/\b[0-9](?i:th|nd|rd)\b/, { it.lower() }).replaceFirst(/^(?i)(The|A|An)\s(.+)/, /$2, $1/)} [{vf} {vc.replace('HEVC','x265')} {ac} {af.replace('8ch','7.1').replace('7ch','7.1').replace('6ch','5.1').replace('5ch','5.1').replace('3ch','2.1').replace('2ch','2.1')}]
unsorted=y
artwork=y
subtitles=en
storeReport=y
reportError=y
deleteAfterExtract=y
clean=y
plex=localhost:RzwxzAjtNXdnGTkcNB2k
ut_label=Series

Code: Select all

Run script [fn:amc] at [Sun Aug 14 23:56:56 IST 2016]
Parameter: excludeList = E:\scriptHub\filebotMediaRenameBatch\TV\filebotAMCfilebotExcludedFilesTV.txt
Parameter: seriesFormat = {n.replaceTrailingBrackets().sortName().upperInitial().space(' ').replaceAll(/\b[IiVvXx]+\b/, { it.upper() })} ({y})/{episode.special ? 'Special' : 'Season '+s} ({d.year})/{n.sortName().upperInitial().replaceTrailingBrackets().space(' ').replaceAll(/\b[IiVvXx]+\b/, { it.upper() }).replaceFirst(/^(?i)(The|A|An)\s(.+)/, /$2, $1/)} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'") .lowerTrail().replacePart(', Part $1').replaceAll(/\b[IiVvXx]+\b/, { it.upper() }).replaceAll(/\b[0-9](?i:th|nd|rd)\b/, { it.lower() }).replaceFirst(/^(?i)(The|A|An)\s(.+)/, /$2, $1/)} [{vf} {vc.replace('HEVC','x265')} {ac} {af.replace('8ch','7.1').replace('7ch','7.1').replace('6ch','5.1').replace('5ch','5.1').replace('3ch','2.1').replace('2ch','2.1')}]
Parameter: unsorted = y
Parameter: artwork = y
Parameter: subtitles = en
Parameter: storeReport = y
Parameter: reportError = y
Parameter: deleteAfterExtract = y
Parameter: clean = y
Parameter: plex = localhost:RzwxzAjtNXdnGTkcNB2k
Parameter: ut_label = Series
Argument: H:\Processing
Using excludes: E:\scriptHub\filebotMediaRenameBatch\TV\filebotAMCfilebotExcludedFilesTV.txt (56)
Input: H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E01 - Pilot.mkv
Input: H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E02 - Lawnmower Dog.mkv
Input: H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E03 - Anatomy Park.mkv
Input: H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E04 - M. Night Shaym-Aliens!.mkv
Input: H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E05 - Meeseeks and Destroy.mkv
Input: H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E06 - Rick Potion #9.mkv
Input: H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E07 - Raising Gazorpazorp.mkv
Input: H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E08 - Rixty Minutes.mkv
Input: H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E09 - Something Ricked.mkv
Input: H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E10 - Close Rick-counters of the Rick Kind.mkv
Input: H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E11 - Ricksy Business.mkv
Input: H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E01 A Rickle in Time.mkv
Input: H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E02 Mortynight Run.mkv
Input: H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E03 Auto Erotic Assimilation.mkv
Input: H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E04 Total Rickall.mkv
Input: H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E05 Get Schwifty.mkv
Input: H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E06 The Ricks Must be Crazy.mkv
Input: H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E07 Big Trouble in Little Sanchez.mkv
Input: H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E08 Interdimensional Cable 2 Tempting Fate.mkv
Input: H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E09 Look Whos Purging Now.mkv
Input: H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E10 The Wedding Squanchers.mkv
Group: [tvs:rick and morty] => [Rick and Morty S01E01 - Pilot.mkv, Rick and Morty S01E02 - Lawnmower Dog.mkv, Rick and Morty S01E03 - Anatomy Park.mkv, Rick and Morty S01E04 - M. Night Shaym-Aliens!.mkv, Rick and Morty S01E05 - Meeseeks and Destroy.mkv, Rick and Morty S01E06 - Rick Potion #9.mkv, Rick and Morty S01E07 - Raising Gazorpazorp.mkv, Rick and Morty S01E08 - Rixty Minutes.mkv, Rick and Morty S01E09 - Something Ricked.mkv, Rick and Morty S01E10 - Close Rick-counters of the Rick Kind.mkv, Rick and Morty S01E11 - Ricksy Business.mkv, Rick and Morty S02E01 A Rickle in Time.mkv, Rick and Morty S02E02 Mortynight Run.mkv, Rick and Morty S02E03 Auto Erotic Assimilation.mkv, Rick and Morty S02E04 Total Rickall.mkv, Rick and Morty S02E05 Get Schwifty.mkv, Rick and Morty S02E06 The Ricks Must be Crazy.mkv, Rick and Morty S02E07 Big Trouble in Little Sanchez.mkv, Rick and Morty S02E08 Interdimensional Cable 2 Tempting Fate.mkv, Rick and Morty S02E09 Look Whos Purging Now.mkv, Rick and Morty S02E10 The Wedding Squanchers.mkv]
Get [English] subtitles for 21 files
Looking up subtitles by hash via OpenSubtitles
Lookup by hash failed: The response could not be parsed.
No matching subtitles found: H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E01 - Pilot.mkv
No matching subtitles found: H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E02 - Lawnmower Dog.mkv
No matching subtitles found: H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E03 - Anatomy Park.mkv
No matching subtitles found: H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E04 - M. Night Shaym-Aliens!.mkv
No matching subtitles found: H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E05 - Meeseeks and Destroy.mkv
No matching subtitles found: H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E06 - Rick Potion #9.mkv
No matching subtitles found: H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E07 - Raising Gazorpazorp.mkv
No matching subtitles found: H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E08 - Rixty Minutes.mkv
No matching subtitles found: H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E09 - Something Ricked.mkv
No matching subtitles found: H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E10 - Close Rick-counters of the Rick Kind.mkv
No matching subtitles found: H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E11 - Ricksy Business.mkv
No matching subtitles found: H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E01 A Rickle in Time.mkv
No matching subtitles found: H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E02 Mortynight Run.mkv
No matching subtitles found: H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E03 Auto Erotic Assimilation.mkv
No matching subtitles found: H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E04 Total Rickall.mkv
No matching subtitles found: H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E05 Get Schwifty.mkv
No matching subtitles found: H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E06 The Ricks Must be Crazy.mkv
No matching subtitles found: H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E07 Big Trouble in Little Sanchez.mkv
No matching subtitles found: H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E08 Interdimensional Cable 2 Tempting Fate.mkv
No matching subtitles found: H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E09 Look Whos Purging Now.mkv
No matching subtitles found: H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E10 The Wedding Squanchers.mkv
Rename episodes using [TheTVDB]
Auto-detected query: [Rick and Morty]
Fetching episode data for [Rick and Morty]
Stripping invalid characters from new path: Rick And Morty (2013)/Season 2 (2015)/Rick And Morty - S02E08 - Interdimensional Cable 2: Tempting Fate [1080p x265 AAC 5.1]
[MOVE] Rename [H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E01 - Pilot.mkv] to [H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\Season 1 (2013)\Rick And Morty - S01E01 - Pilot [1080p x265 AAC 5.1].mkv]
[MOVE] Rename [H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E02 - Lawnmower Dog.mkv] to [H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\Season 1 (2013)\Rick And Morty - S01E02 - Lawnmower Dog [1080p x265 AAC 5.1].mkv]
[MOVE] Rename [H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E03 - Anatomy Park.mkv] to [H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\Season 1 (2013)\Rick And Morty - S01E03 - Anatomy Park [1080p x265 AAC 5.1].mkv]
[MOVE] Rename [H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E04 - M. Night Shaym-Aliens!.mkv] to [H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\Season 1 (2014)\Rick And Morty - S01E04 - M. Night Shaym-Aliens [1080p x265 AAC 5.1].mkv]
[MOVE] Rename [H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E05 - Meeseeks and Destroy.mkv] to [H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\Season 1 (2014)\Rick And Morty - S01E05 - Meeseeks and Destroy [1080p x265 AAC 5.1].mkv]
[MOVE] Rename [H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E06 - Rick Potion #9.mkv] to [H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\Season 1 (2014)\Rick And Morty - S01E06 - Rick Potion #9 [1080p x265 AAC 2.1].mkv]
[MOVE] Rename [H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E07 - Raising Gazorpazorp.mkv] to [H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\Season 1 (2014)\Rick And Morty - S01E07 - Raising Gazorpazorp [1080p x265 AAC 5.1].mkv]
[MOVE] Rename [H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E08 - Rixty Minutes.mkv] to [H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\Season 1 (2014)\Rick And Morty - S01E08 - Rixty Minutes [1080p x265 AAC 5.1].mkv]
[MOVE] Rename [H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E09 - Something Ricked.mkv] to [H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\Season 1 (2014)\Rick And Morty - S01E09 - Something Ricked This Way Comes [1080p x265 AAC 5.1].mkv]
[MOVE] Rename [H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E10 - Close Rick-counters of the Rick Kind.mkv] to [H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\Season 1 (2014)\Rick And Morty - S01E10 - Close Rick-Counters of the Rick Kind [1080p x265 AAC 5.1].mkv]
[MOVE] Rename [H:\Processing\Rick and Morty\Season 1\Rick and Morty S01E11 - Ricksy Business.mkv] to [H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\Season 1 (2014)\Rick And Morty - S01E11 - Ricksy Business [1080p x265 AAC 5.1].mkv]
[MOVE] Rename [H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E01 A Rickle in Time.mkv] to [H:\Processing\Rick and Morty\Season 2\Rick And Morty (2013)\Season 2 (2015)\Rick And Morty - S02E01 - Rickle in Time, A [1080p x265 AAC 5.1].mkv]
[MOVE] Rename [H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E02 Mortynight Run.mkv] to [H:\Processing\Rick and Morty\Season 2\Rick And Morty (2013)\Season 2 (2015)\Rick And Morty - S02E02 - Mortynight Run [1080p x265 AAC 5.1].mkv]
[MOVE] Rename [H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E03 Auto Erotic Assimilation.mkv] to [H:\Processing\Rick and Morty\Season 2\Rick And Morty (2013)\Season 2 (2015)\Rick And Morty - S02E03 - Auto Erotic Assimilation [1080p x265 AAC 2.1].mkv]
[MOVE] Rename [H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E04 Total Rickall.mkv] to [H:\Processing\Rick and Morty\Season 2\Rick And Morty (2013)\Season 2 (2015)\Rick And Morty - S02E04 - Total Rickall [1080p x265 AAC 5.1].mkv]
[MOVE] Rename [H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E05 Get Schwifty.mkv] to [H:\Processing\Rick and Morty\Season 2\Rick And Morty (2013)\Season 2 (2015)\Rick And Morty - S02E05 - Get Schwifty [1080p x265 AAC 2.1].mkv]
[MOVE] Rename [H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E06 The Ricks Must be Crazy.mkv] to [H:\Processing\Rick and Morty\Season 2\Rick And Morty (2013)\Season 2 (2015)\Rick And Morty - S02E06 - Ricks Must Be Crazy, The [1080p x265 AAC 5.1].mkv]
[MOVE] Rename [H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E07 Big Trouble in Little Sanchez.mkv] to [H:\Processing\Rick and Morty\Season 2\Rick And Morty (2013)\Season 2 (2015)\Rick And Morty - S02E07 - Big Trouble in Little Sanchez [1080p x265 AAC 5.1].mkv]
[MOVE] Rename [H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E08 Interdimensional Cable 2 Tempting Fate.mkv] to [H:\Processing\Rick and Morty\Season 2\Rick And Morty (2013)\Season 2 (2015)\Rick And Morty - S02E08 - Interdimensional Cable 2 Tempting Fate [1080p x265 AAC 5.1].mkv]
[MOVE] Rename [H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E09 Look Whos Purging Now.mkv] to [H:\Processing\Rick and Morty\Season 2\Rick And Morty (2013)\Season 2 (2015)\Rick And Morty - S02E09 - Look Who's Purging Now [1080p x265 AAC 5.1].mkv]
[MOVE] Rename [H:\Processing\Rick and Morty\Season 2\Rick and Morty S02E10 The Wedding Squanchers.mkv] to [H:\Processing\Rick and Morty\Season 2\Rick And Morty (2013)\Season 2 (2015)\Rick And Morty - S02E10 - Wedding Squanchers, The [1080p x265 AAC 5.1].mkv]
Processed 21 files
Fetching series artwork for [Rick and Morty / Season 1] to [H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\Season 1 (2013)]
Generate Series NFO: Rick and Morty [275274]
Fetching H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\poster.jpg => [poster/680x1000, en, 8.06, http://thetvdb.com/banners/posters/275274-2.jpg]
Fetching H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\banner.jpg => [series/graphical, en, 7.14, http://thetvdb.com/banners/graphical/275274-g6.jpg]
Fetching H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\fanart.jpg => [fanart/1920x1080, en, 8.62, http://thetvdb.com/banners/fanart/original/275274-9.jpg]
Fetching H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\Season 1 (2013)\poster.jpg => [season/season/1, en, 10, http://thetvdb.com/banners/seasons/275274-1-2.jpg]
Banner not found: H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\Season 1 (2013)\banner.jpg / seasonwide:seasonwide
Fetching H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\clearart.png => [hdclearart, en, 1, http://assets.fanart.tv/fanart/tv/275274/hdclearart/rick-and-morty-55142976d0890.png]
Fetching H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\logo.png => [hdtvlogo, en, 2, http://assets.fanart.tv/fanart/tv/275274/hdtvlogo/rick-and-morty-54f8e5cc82a36.png]
Fetching H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\landscape.jpg => [tvthumb, en, 2, http://assets.fanart.tv/fanart/tv/275274/tvthumb/rick-and-morty-55ba8388de2be.jpg]
Fanart not found: H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\Season 1 (2013)\landscape.jpg / seasonthumb
Fetching series artwork for [Rick and Morty / Season 1] to [H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\Season 1 (2014)]
Generate Series NFO: Rick and Morty [275274]
Banner already exists: H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\poster.jpg
Banner already exists: H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\banner.jpg
Banner already exists: H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\fanart.jpg
Fetching H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\Season 1 (2014)\poster.jpg => [season/season/1, en, 10, http://thetvdb.com/banners/seasons/275274-1-2.jpg]
Banner not found: H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\Season 1 (2014)\banner.jpg / seasonwide:seasonwide
Fanart already exists: H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\clearart.png
Fanart already exists: H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\logo.png
Fanart already exists: H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\landscape.jpg
Fanart not found: H:\Processing\Rick and Morty\Season 1\Rick And Morty (2013)\Season 1 (2014)\landscape.jpg / seasonthumb
Fetching series artwork for [Rick and Morty / Season 2] to [H:\Processing\Rick and Morty\Season 2\Rick And Morty (2013)\Season 2 (2015)]
Generate Series NFO: Rick and Morty [275274]
Fetching H:\Processing\Rick and Morty\Season 2\Rick And Morty (2013)\poster.jpg => [poster/680x1000, en, 8.06, http://thetvdb.com/banners/posters/275274-2.jpg]
Fetching H:\Processing\Rick and Morty\Season 2\Rick And Morty (2013)\banner.jpg => [series/graphical, en, 7.14, http://thetvdb.com/banners/graphical/275274-g6.jpg]
Fetching H:\Processing\Rick and Morty\Season 2\Rick And Morty (2013)\fanart.jpg => [fanart/1920x1080, en, 8.62, http://thetvdb.com/banners/fanart/original/275274-9.jpg]
Fetching H:\Processing\Rick and Morty\Season 2\Rick And Morty (2013)\Season 2 (2015)\poster.jpg => [season/season/2, en, 7.75, http://thetvdb.com/banners/seasons/275274-2-2.jpg]
Banner not found: H:\Processing\Rick and Morty\Season 2\Rick And Morty (2013)\Season 2 (2015)\banner.jpg / seasonwide:seasonwide
Fetching H:\Processing\Rick and Morty\Season 2\Rick And Morty (2013)\clearart.png => [hdclearart, en, 1, http://assets.fanart.tv/fanart/tv/275274/hdclearart/rick-and-morty-55142976d0890.png]
Fetching H:\Processing\Rick and Morty\Season 2\Rick And Morty (2013)\logo.png => [hdtvlogo, en, 2, http://assets.fanart.tv/fanart/tv/275274/hdtvlogo/rick-and-morty-54f8e5cc82a36.png]
Fetching H:\Processing\Rick and Morty\Season 2\Rick And Morty (2013)\landscape.jpg => [tvthumb, en, 2, http://assets.fanart.tv/fanart/tv/275274/tvthumb/rick-and-morty-55ba8388de2be.jpg]
Fanart not found: H:\Processing\Rick and Morty\Season 2\Rick And Morty (2013)\Season 2 (2015)\landscape.jpg / seasonthumb
Notify Plex: localhost
GET: http://localhost:32400/library/sections/all/refresh?X-Plex-Token=RzwxzAjtNXdnGTkcNB2k
Saving report as C:\Users\karanRajpal\AppData\Roaming\FileBot\reports\AMC [2016-08-14 23h57m] Rick and Morty S01E01 - Pilot, Rick and Morty S01E.html
Clean clutter files and empty folders
Done ヾ(@⌒ー⌒@)ノ
Now, coming to the second issue, some of my media already has subs in it and the script seems to fail because of that. It must be because I've specified -conflict fail but then I thought that's just for media. If my media has subs, I just want them to be renamed without failing and still fail if there are any other issues. Any way I can achieve that? I've attached a log for this as well:

Code: Select all

Parameter: excludeList = E:\scriptHub\filebotMediaRenameBatch\Movies\filebotAMCfilebotExcludedFilesM.txt
Parameter: movieFormat = H:\moviesRenamed\{collection.replaceFirst(/^(?i)(The)\s(.+)/, /$2, $1/).replaceFirst(/^(?i)(Collection of the)\s(.+)/, /$2 Collection/).replaceAll(/Saga Collection/, "Saga").replaceAll(/\b[0-9](?i:th|nd|rd)\b/, { it.lower() }).replaceAll(/[`´‘’ʻ""“�]/, "'").replaceAll(/[:|]/, " - ").replaceAll(/[?]/, "!").replaceAll(/[*\s]+/, " ").replaceAll(/\b[IiVvXx]+\b/, { it.upper() })}\{n.sortName().upperInitial().space(' ').replaceAll(/\b[IiVvXx]+\b/, { it.upper() }).replaceFirst(/^(?i)(The|A|An)\s(.+)/, /$2, $1/).replaceAll(/\b[0-9](?i:th|nd|rd)\b/, { it.lower() })} ({y}) [IMDb={rating} {vf}]/{n.sortName().upperInitial().space(' ').replaceFirst(/^(?i)(The|A|An)\s(.+)/, /$2, $1/).replaceAll(/\b[IiVvXx]+\b/, { it.upper() }).replaceAll(/\b[0-9](?i:th|nd|rd)\b/, { it.lower() })} ({y}) [{any{"$certification"}{"+$imdb.certification+"}.replaceAll('N A','').replaceAll(/^ \d+$/, 'PG-$0')} IMDb={rating} {vf} {vc.replace('HEVC','x265')} {ac} {af.replace('8ch','7.1').replace('7ch','7.1').replace('6ch','5.1').replace('5ch','5.1').replace('3ch','2.1').replace('2ch','2.1')}] {' CD'+pi}
Parameter: unsorted = y
Parameter: artwork = y
Parameter: subtitles = en
Parameter: storeReport = y
Parameter: reportError = y
Parameter: deleteAfterExtract = y
Parameter: clean = y
Parameter: plex = localhost:RzwxzAjtNXdnGTkcNB2k
Parameter: ut_label = Movie
Argument: H:\Processing
Using excludes: E:\scriptHub\filebotMediaRenameBatch\Movies\filebotAMCfilebotExcludedFilesM.txt (0)
Input: H:\Processing\10 Cloverfield Lane (2016) [IMDb=6.6 1080p]\10 Cloverfield Lane (2016) [PG-13 IMDb=6.6 1080p x264 AAC 2.1].mp4
Input: H:\Processing\10 Cloverfield Lane (2016) [IMDb=6.6 1080p]\10 Cloverfield Lane (2016) [PG-13 IMDb=6.6 1080p x264 AAC 2.1].srt
Input: H:\Processing\12 Years A Slave (2013) [IMDb=7.8 720p]\12 Years A Slave (2013) [R IMDb=7.8 720p x264 AAC 2.1].mp4
Input: H:\Processing\12 Years A Slave (2013) [IMDb=7.8 720p]\12 Years A Slave (2013) [R IMDb=7.8 720p x264 AAC 2.1].srt
Input: H:\Processing\127 Hours (2010) [IMDb=6.9 720p]\127 Hours (2010) [R IMDb=6.9 720p x264 AAC 2.1].mp4
Input: H:\Processing\127 Hours (2010) [IMDb=6.9 720p]\127 Hours (2010) [R IMDb=6.9 720p x264 AAC 2.1].srt
Input: H:\Processing\13 Sins (2014) [IMDB - 6.2 720p]\13 Sins (2014) [IMDB - 6.2 720p AAC 2.1].mp4
Input: H:\Processing\2 States (2014) [IMDB - 6.3 720p]\2 States (2014) [IMDB - 6.3 720p AAC 2.1].mkv
Input: H:\Processing\2 States (2014) [IMDB - 6.3 720p]\2 States (2014) [IMDB - 6.3 720p AAC 2.1].srt
Input: H:\Processing\3 Idiots (2009) [IMDB - 7.8 1080p]\3 Idiots (2009) [IMDB - 7.8 1080p AAC 5.1].mp4
Input: H:\Processing\3 Idiots (2009) [IMDB - 7.8 1080p]\3 Idiots (2009) [IMDB - 7.8 1080p AAC 5.1].srt
Exclude: H:\Processing\12 Years A Slave (2013) [IMDb=7.8 720p]\clearart.png
Exclude: H:\Processing\12 Years A Slave (2013) [IMDb=7.8 720p]\disc.png
Exclude: H:\Processing\12 Years A Slave (2013) [IMDb=7.8 720p]\fanart.jpg
Exclude: H:\Processing\12 Years A Slave (2013) [IMDb=7.8 720p]\folder.jpg
Exclude: H:\Processing\12 Years A Slave (2013) [IMDb=7.8 720p]\logo.png
Exclude: H:\Processing\12 Years A Slave (2013) [IMDb=7.8 720p]\movie.nfo
Exclude: H:\Processing\12 Years A Slave (2013) [IMDb=7.8 720p]\poster.jpg
xattr: [10 Cloverfield Lane (2016) [PG-13 IMDb=6.6 1080p x264 AAC 2.1].mp4] => [10 Cloverfield Lane (2016)]
xattr: [12 Years A Slave (2013) [R IMDb=7.8 720p x264 AAC 2.1].mp4] => [12 Years a Slave (2013)]
xattr: [12 Years A Slave (2013) [R IMDb=7.8 720p x264 AAC 2.1].srt] => [12 Years a Slave (2013)]
xattr: [127 Hours (2010) [R IMDb=6.9 720p x264 AAC 2.1].mp4] => [127 Hours (2010)]
xattr: [13 Sins (2014) [IMDB - 6.2 720p AAC 2.1].mp4] => [13 Sins (2014)]
xattr: [3 Idiots (2009) [IMDB - 7.8 1080p AAC 5.1].mp4] => [3 Idiots (2009)]
xattr: [3 Idiots (2009) [IMDB - 7.8 1080p AAC 5.1].srt] => [3 Idiots (2009)]
Group: [mov:10 cloverfield lane 2016] => [10 Cloverfield Lane (2016) [PG-13 IMDb=6.6 1080p x264 AAC 2.1].mp4, 10 Cloverfield Lane (2016) [PG-13 IMDb=6.6 1080p x264 AAC 2.1].srt]
Group: [mov:12 years a slave 2013] => [12 Years A Slave (2013) [R IMDb=7.8 720p x264 AAC 2.1].mp4, 12 Years A Slave (2013) [R IMDb=7.8 720p x264 AAC 2.1].srt]
Group: [mov:127 hours 2010] => [127 Hours (2010) [R IMDb=6.9 720p x264 AAC 2.1].mp4, 127 Hours (2010) [R IMDb=6.9 720p x264 AAC 2.1].srt]
Group: [mov:13 sins 2014] => [13 Sins (2014) [IMDB - 6.2 720p AAC 2.1].mp4]
Group: [mov:2 states 2014] => [2 States (2014) [IMDB - 6.3 720p AAC 2.1].mkv, 2 States (2014) [IMDB - 6.3 720p AAC 2.1].srt]
Group: [mov:3 idiots 2009] => [3 Idiots (2009) [IMDB - 7.8 1080p AAC 5.1].mp4, 3 Idiots (2009) [IMDB - 7.8 1080p AAC 5.1].srt]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Fetching [English] subtitles [10 Cloverfield Lane 2016 1080p HDRip x264 AAC-JYK.en.srt] from [OpenSubtitles]
Export [10 Cloverfield Lane 2016 1080p HDRip x264 AAC-JYK.en.srt] as [SubRip / UTF-8]
Writing [10 Cloverfield Lane 2016 1080p HDRip x264 AAC-JYK.en.srt] to [10 Cloverfield Lane (2016) [PG-13 IMDb=6.6 1080p x264 AAC 2.1].eng.srt]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [H:\Processing\10 Cloverfield Lane (2016) [IMDb=6.6 1080p]\10 Cloverfield Lane (2016) [PG-13 IMDb=6.6 1080p x264 AAC 2.1].mp4]
[MOVE] Rename [H:\Processing\10 Cloverfield Lane (2016) [IMDb=6.6 1080p]\10 Cloverfield Lane (2016) [PG-13 IMDb=6.6 1080p x264 AAC 2.1].mp4] to [H:\moviesRenamed\10 Cloverfield Lane (2016) [IMDb=6.6 1080p]\10 Cloverfield Lane (2016) [PG-13 IMDb=6.6 1080p x264 AAC 2.1].mp4]
[MOVE] Rename [H:\Processing\10 Cloverfield Lane (2016) [IMDb=6.6 1080p]\10 Cloverfield Lane (2016) [PG-13 IMDb=6.6 1080p x264 AAC 2.1].eng.srt] to [H:\moviesRenamed\10 Cloverfield Lane (2016) [IMDb=6.6 1080p]\10 Cloverfield Lane (2016) [PG-13 IMDb=6.6 1080p x264 AAC 2.1].srt]
Processed 2 files
File already exists: H:\moviesRenamed\10 Cloverfield Lane (2016) [IMDb=6.6 1080p]\10 Cloverfield Lane (2016) [PG-13 IMDb=6.6 1080p x264 AAC 2.1].srt
net.filebot.cli.CmdlineException: File already exists: H:\moviesRenamed\10 Cloverfield Lane (2016) [IMDb=6.6 1080p]\10 Cloverfield Lane (2016) [PG-13 IMDb=6.6 1080p x264 AAC 2.1].srt
        at net.filebot.cli.CmdlineOperations.renameAll(CmdlineOperations.java:610)
        at net.filebot.cli.CmdlineOperations.renameMovie(CmdlineOperations.java:502)
        at net.filebot.cli.CmdlineOperations.rename(CmdlineOperations.java:105)
        at net.filebot.cli.ScriptShellBaseClass.rename(ScriptShellBaseClass.java:336)
        at Script1$_run_closure73.doCall(Script1.groovy:401)
        at Script1.run(Script1.groovy:364)
        at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:62)
        at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:72)
        at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:114)
        at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:29)
        at net.filebot.Main.main(Main.java:120)
Failed to rename movie: 10 cloverfield lane 2016
Failure (┬░_┬░)
The last issue is that I've noticed this particular error in my logs:

Code: Select all

Failed to set xattr: H:\moviesRenamed\Batman Under The Red Hood (2010) [IMDb=7.6 720p]\Batman Under The Red Hood (2010) [PG-13 IMDb=7.6 720p x264 AAC 2.1].mp4:net.filebot.metadata
Is it alright if this keeps showing up every now and then?

I'd really appreciate your input on this.

Regards,
Karan
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Issues with AMC

Post by rednoah »

Usage:

Code: Select all

filebot -script fn:amc --output "/path/to/output" --action copy -non-strict "/path/to/input" --log-file amc.log --def excludeList=amc.txt
This is the standard usage. You won't get any of these odd behaviours with this.


1.
Since you forgot to set --output, it'll default to the current working directory, whatever that may be. Notice that all examples explicitly set --output.


2.
Your format collapses all subtitle files to the same path, hence fail. Notice the {lang} and {subt} bindings in the examples.


3.
The filesystem doesn't support xattr. Nothing you can do about that.
:idea: Please read the FAQ and How to Request Help.
karanrajpal14
Posts: 23
Joined: 03 May 2015, 16:21

Re: Issues with AMC

Post by karanrajpal14 »

rednoah wrote:Usage:

Code: Select all

filebot -script fn:amc --output "/path/to/output" --action copy -non-strict "/path/to/input" --log-file amc.log --def excludeList=amc.txt
This is the standard usage. You won't get any of these odd behaviours with this.


1.
Since you forgot to set --output, it'll default to the current working directory, whatever that may be. Notice that all examples explicitly set --output.


2.
Your format collapses all subtitle files to the same path, hence fail. Notice the {lang} and {subt} bindings in the examples.


3.
The filesystem doesn't support xattr. Nothing you can do about that.
1.
Be that as it may, I've not set a destination path because the current folder is my destination and my files are automatically downloaded there. It seemed to work fine with my movies but not this. Why is that? It should just follow the naming scheme as I'm specifying the action to be move instead of nesting them. Correct?

2.
I went through your AMC script. What I gathered from it is that if I add "{'.'+lang}" to the script it should work fine. Right?

3.
NTFS doesn't support xattr? Does FAT32 or exFAT support it?
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Issues with AMC

Post by rednoah »

1.
Your seriesFormat is relative, thus it is resolved against the working directory.
Your movieFormat is absolute, so the working directory is irrelevant.

Looks like the current working directory isn't what you think it is.

The working directory is not the directory you pass on the command-line. It's the working directory of the filebot process that is inherited from the cmd process:
https://en.wikipedia.org/wiki/Working_directory


2.
Use the Format Editor (GUI) to prototype your format and don't forget to test with subtitles as well. ;)


3.
FAT32 and exFAT do not support xattr:
https://msdn.microsoft.com/en-us/librar ... ctionality

You can ignore the warning, or use the -no-xattr option.
:idea: Please read the FAQ and How to Request Help.
karanrajpal14
Posts: 23
Joined: 03 May 2015, 16:21

Re: Issues with AMC

Post by karanrajpal14 »

rednoah wrote:1.
Your seriesFormat is relative, thus it is resolved against the working directory.
Your movieFormat is absolute, so the working directory is irrelevant.

Looks like the current working directory isn't what you think it is.

The working directory is not the directory you pass on the command-line. It's the working directory of the filebot process that is inherited from the cmd process:
https://en.wikipedia.org/wiki/Working_directory


2.
Use the Format Editor (GUI) to prototype your format and don't forget to test with subtitles as well. ;)


3.
FAT32 and exFAT do not support xattr:
https://msdn.microsoft.com/en-us/librar ... ctionality

You can ignore the warning, or use the -no-xattr option.
I'm sorry. I understand now and I've modified the script accordingly to add a target directory and everything works fine now.
One thing what I didn't understand is that how my file system doesn't support xattr since it is a NTFS system. As per the link, only FAT systems aren't supported. Any idea what's up with that?
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: What does the --output option do?

Post by rednoah »

No idea. If Windows refuses or fails to write EAs then FileBot can't do anything about it, unless you find any pattern as to why and when it's not working.
:idea: Please read the FAQ and How to Request Help.
karanrajpal14
Posts: 23
Joined: 03 May 2015, 16:21

Re: What does the --output option do?

Post by karanrajpal14 »

rednoah wrote:No idea. If Windows refuses or fails to write EAs then FileBot can't do anything about it, unless you find any pattern as to why and when it's not working.
Alright, thank you for your help once again! I appreciate it :)
Post Reply