iNTERNAL in filename causing issues with rename.
Posted: 14 Dec 2017, 04:31
Dunno if this is a bug with filebot or it's possibly something to do with my scripts but what seems to happen is that whenever I or Sonarr download a file and the filename has "iNTERNAL" like for example
Logs -
As can be seen in the above log things that didn't have "iNTERNAL" in the names got renamed with all the extra little data that I wanted, while the ones with "iNTERNAL" Only got tagged with "WEB-DL" due to my formatter not seeing the source.
These are all my scripts to do with filebot --
Script to call filebot:
TV Formatter -
Anime formatter -
Movie Formatter -
and sonarr api call
Edit: Forgot to mention this only seems to happen with using CLI, Renaming in the GUI works just fine (format between CLI and GUI are both the same for TV Shows)..

(I think it happens with "convert" as well) when filebot gets to the point of renaming/moving the file it never seems to be able to see; for example the the "vf", "vc","channels","ac", possibly "language" (language rarely ever seems to get seen though), and the "source". so instead of renaming the file for exampleThe Librarians US S04E01 iNTERNAL 1080p WEB x264-BAMBOOZLE
it ends up renaming it asThe Librarians - S04E01 - And the Dark Secret [1080p x264 - 5.1 AC3 - WEB-DL].mkv
. Now you may have noticed that it still ends up with at least the "WEB-DL" bit, but that is because of my formatting script for when it can't see the source.The Librarians - S04E01 - And the Dark Secret [WEB-DL].mkv
Logs -
Code: Select all
Run script [fn:amc] at [Tue Dec 12 20:07:32 CST 2017]
Parameter: excludeList = C:\Users\JourneyOver\Dropbox/Public/Folders/Filebot/logs/filebot-history.log
Parameter: music = false
Parameter: subtitles = en
Parameter: artwork = false
Parameter: extras = false
Parameter: storeReport = false
Parameter: skipExtract = false
Parameter: clean = true
Parameter: deleteAfterExtract = true
Parameter: plex = *****
Parameter: movieFormat = { norm = { it.upperInitial()
.lowerTrail()
.replaceTrailingBrackets()
.replaceAll(/[`´‘’ʻ""“”]/, "'")
.replaceAll(/[:|]/, " - ")
.replaceAll(/[?]/, "!")
.replaceAll(/[*\s]+/, " ")
.replaceAll(/\b[IiVvXx]+\b/, { it.upper() })
.replaceAll(/\b[0-9](?i:th|nd|rd)\b/, { it.lower() })}}
{ allOf
{"Movies"}
// Movies directory
{n.colon(" - ") + " [$y]"}
// File name
{ allOf
{ primaryTitle ? primaryTitle.colon(" - ") : primaryTitle.colon(" - ") }
{" [$y]"}
// tags + a few more variants
{ specials = { allOf
{tags}
{ def last = n.tokenize(" ").last()
fn.after(/(?i:$last)/).findAll(/(?i:alternate[ ._-]cut|limited)/)*.upperInitial()*.lowerTrail()*.replaceAll(/[._-]/, " ") }
.flatten().sort() }
specials().size() > 0 ? specials().join(", ").replaceAll(/^/, " - ") : "" }
{" PT $pi"}
{" ["}
{ allOf
// Video stream
{[vf,vc].join(" ")}
{ allOf
// Audio stream and language
{[channels,ac].join(" ")}
{ def a = audioLanguages
a.size() > 1 ? a.ISO3.join(", ").upperInitial() : a.name.first() }
.join(" ") }
{"${self.source ?: 'WEB-DL'}"}
.join(" - ") }
{"]"}
{subt}
.join("") }
.join("/") }
Parameter: seriesFormat = { norm = { it.replaceAll(/[`´‘’ʻ""“”]/, "'")
.replaceAll(/[:|]/, " - ")
.replaceAll(/[?]/, "!")
.replaceAll(/[*\s]+/, " ")
.replaceAll(/\b[IiVvXx]+\b/, { it.upper() })
.replaceAll(/\b[0-9](?i:th|nd|rd)\b/, { it.lower() })}}
{ allOf
{"TV Shows"}
// TV Shows directory
{ norm(n).replaceAll(/(S.H.I.E.L.D.)/, " S.H.I.E.L.D ") }
{ episode.special ? 'Specials' : 'Season ' + s.pad(2) }
{ allOf
{ norm(n).replaceTrailingBrackets() }
{ episode.special ? 'S00E' + special.pad(2) : S00E00 }
{ allOf
{ norm(t).replacePart(' - Part $1') }
{ allOf
{ allOf
{"["}
{ allOf
{[vf,vc].join(" ")}
{ allOf
{[channels,ac].join(" ")}
{ def a = audioLanguages
a.size() > 1 ? a.ISO3.join(", ").upperInitial() : a.name.first() }
.join(" ") }
{"${self.source ?: 'WEB-DL'}"}
.join(" - ") }
{"]"}
.join("") }
{subt}
.join("") }
.join(" ") }
.join(" - ") }
.join("/") }
Parameter: animeFormat = { norm = { it.replaceAll(/[`´‘’ʻ""“”]/, "'")
.replaceAll(/(")/, "''")
.replaceAll(/[:|]/, " - ")
.replaceAll(/[?]/, "!")
.replaceAll(/[*\s]+/, " ")
.replaceAll(/\b[IiVvXx]+\b/, { it.upper() })
.replaceAll(/\b[0-9](?i:th|nd|rd)\b/, { it.lower() })}}
{ allOf
{"Anime"}
// Anime directory
{ norm(n) }
{ episode.special ? 'Specials' : 'Season ' + s.pad(2) }
{ allOf
{ norm(n).replaceTrailingBrackets() }
{ episode.special ? 'S00E' + special.pad(2) : S00E00 }
{ allOf
{ norm(t).replacePart(' - Part $1') }
{ allOf
{ allOf
{"["}
{ allOf
{[vf,vc].join(" ")}
{ allOf
{[channels,ac].join(" ")}
{ def a = audioLanguages
a.size() > 1 ? a.ISO3.join(", ").upperInitial() : a.name.first() }
.join(" ") }
{"${self.source ?: 'WEB-DL'}"}
.join(" - ") }
{"]"}
.join("") }
{subt}
.join("") }
.join(" ") }
.join(" - ") }
.join("/") }
Parameter: ut_label = tv-sonarr
Parameter: ut_state =
Parameter: ut_title = Lethal.Weapon.S02E10.1080p.WEB.x264-TBS[rarbg]
Parameter: ut_kind = multi
Parameter: ut_file =
Parameter: ut_dir = C:\Users\JourneyOver\Desktop\QBT\Lethal.Weapon.S02E10.1080p.WEB.x264-TBS[rarbg]
Parameter: exec = filebot -script C:\Users\JourneyOver\Dropbox/Public/Folders/Filebot/MyStuff/Update_Sonarr_Radarr.groovy --def id={id}
Use excludes: C:\Users\JourneyOver\Dropbox\Public\Folders\Filebot\logs\filebot-history.log
Input: C:\Users\JourneyOver\Desktop\QBT\Lethal.Weapon.S02E10.1080p.WEB.x264-TBS[rarbg]\lethal.weapon.s02e10.1080p.web.x264-tbs.mkv
Group: [tvs:lethal weapon] => [lethal.weapon.s02e10.1080p.web.x264-tbs.mkv]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: C:\Users\JourneyOver\Desktop\QBT\Lethal.Weapon.S02E10.1080p.WEB.x264-TBS[rarbg]\lethal.weapon.s02e10.1080p.web.x264-tbs.mkv
Rename episodes using [TheTVDB]
Auto-detected query: [Lethal Weapon]
Fetching episode data for [Lethal Weapon]
Apply filter [any{ age < 7 }{ airdate ? true : false }] on [32] items
Include [Lethal Weapon - 2x10 - Wreck the Halls]
Include [Lethal Weapon - 2x11 - Funny Money]
[MOVE] from [C:\Users\JourneyOver\Desktop\QBT\Lethal.Weapon.S02E10.1080p.WEB.x264-TBS[rarbg]\lethal.weapon.s02e10.1080p.web.x264-tbs.mkv] to [D:\Media\TV Shows\Lethal Weapon\Season 02\Lethal Weapon - S02E10 - Wreck the Halls [1080p x264 - 2.0 AAC - WEB-DL].mkv]
Processed 1 files
Execute: filebot -script C:\Users\JourneyOver\Dropbox/Public/Folders/Filebot/MyStuff/Update_Sonarr_Radarr.groovy --def id=311790
Notify Plex: [host:localhost, token:]
GET: http://localhost:32400/library/sections/all/refresh?X-Plex-Token=
Clean clutter files and empty folders
Delete C:\Users\JourneyOver\Desktop\QBT\Lethal.Weapon.S02E10.1080p.WEB.x264-TBS[rarbg]\lethal.weapon.s02e10.1080p.web.x264-tbs.nfo
Delete C:\Users\JourneyOver\Desktop\QBT\Lethal.Weapon.S02E10.1080p.WEB.x264-TBS[rarbg]\RARBG.txt
Delete C:\Users\JourneyOver\Desktop\QBT\Lethal.Weapon.S02E10.1080p.WEB.x264-TBS[rarbg]
Done ヾ(@⌒ー⌒@)ノ
Run script [fn:amc] at [Wed Dec 13 20:06:09 CST 2017]
Parameter: excludeList = C:\Users\JourneyOver\Dropbox/Public/Folders/Filebot/logs/filebot-history.log
Parameter: music = false
Parameter: subtitles = en
Parameter: artwork = false
Parameter: extras = false
Parameter: storeReport = false
Parameter: skipExtract = false
Parameter: clean = true
Parameter: deleteAfterExtract = true
Parameter: plex = *****
Parameter: movieFormat = { norm = { it.upperInitial()
.lowerTrail()
.replaceTrailingBrackets()
.replaceAll(/[`´‘’ʻ""“”]/, "'")
.replaceAll(/[:|]/, " - ")
.replaceAll(/[?]/, "!")
.replaceAll(/[*\s]+/, " ")
.replaceAll(/\b[IiVvXx]+\b/, { it.upper() })
.replaceAll(/\b[0-9](?i:th|nd|rd)\b/, { it.lower() })}}
{ allOf
{"Movies"}
// Movies directory
{n.colon(" - ") + " [$y]"}
// File name
{ allOf
{ primaryTitle ? primaryTitle.colon(" - ") : primaryTitle.colon(" - ") }
{" [$y]"}
// tags + a few more variants
{ specials = { allOf
{tags}
{ def last = n.tokenize(" ").last()
fn.after(/(?i:$last)/).findAll(/(?i:alternate[ ._-]cut|limited)/)*.upperInitial()*.lowerTrail()*.replaceAll(/[._-]/, " ") }
.flatten().sort() }
specials().size() > 0 ? specials().join(", ").replaceAll(/^/, " - ") : "" }
{" PT $pi"}
{" ["}
{ allOf
// Video stream
{[vf,vc].join(" ")}
{ allOf
// Audio stream and language
{[channels,ac].join(" ")}
{ def a = audioLanguages
a.size() > 1 ? a.ISO3.join(", ").upperInitial() : a.name.first() }
.join(" ") }
{"${self.source ?: 'WEB-DL'}"}
.join(" - ") }
{"]"}
{subt}
.join("") }
.join("/") }
Parameter: seriesFormat = { norm = { it.replaceAll(/[`´‘’ʻ""“”]/, "'")
.replaceAll(/[:|]/, " - ")
.replaceAll(/[?]/, "!")
.replaceAll(/[*\s]+/, " ")
.replaceAll(/\b[IiVvXx]+\b/, { it.upper() })
.replaceAll(/\b[0-9](?i:th|nd|rd)\b/, { it.lower() })}}
{ allOf
{"TV Shows"}
// TV Shows directory
{ norm(n).replaceAll(/(S.H.I.E.L.D.)/, " S.H.I.E.L.D ") }
{ episode.special ? 'Specials' : 'Season ' + s.pad(2) }
{ allOf
{ norm(n).replaceTrailingBrackets() }
{ episode.special ? 'S00E' + special.pad(2) : S00E00 }
{ allOf
{ norm(t).replacePart(' - Part $1') }
{ allOf
{ allOf
{"["}
{ allOf
{[vf,vc].join(" ")}
{ allOf
{[channels,ac].join(" ")}
{ def a = audioLanguages
a.size() > 1 ? a.ISO3.join(", ").upperInitial() : a.name.first() }
.join(" ") }
{"${self.source ?: 'WEB-DL'}"}
.join(" - ") }
{"]"}
.join("") }
{subt}
.join("") }
.join(" ") }
.join(" - ") }
.join("/") }
Parameter: animeFormat = { norm = { it.replaceAll(/[`´‘’ʻ""“”]/, "'")
.replaceAll(/(")/, "''")
.replaceAll(/[:|]/, " - ")
.replaceAll(/[?]/, "!")
.replaceAll(/[*\s]+/, " ")
.replaceAll(/\b[IiVvXx]+\b/, { it.upper() })
.replaceAll(/\b[0-9](?i:th|nd|rd)\b/, { it.lower() })}}
{ allOf
{"Anime"}
// Anime directory
{ norm(n) }
{ episode.special ? 'Specials' : 'Season ' + s.pad(2) }
{ allOf
{ norm(n).replaceTrailingBrackets() }
{ episode.special ? 'S00E' + special.pad(2) : S00E00 }
{ allOf
{ norm(t).replacePart(' - Part $1') }
{ allOf
{ allOf
{"["}
{ allOf
{[vf,vc].join(" ")}
{ allOf
{[channels,ac].join(" ")}
{ def a = audioLanguages
a.size() > 1 ? a.ISO3.join(", ").upperInitial() : a.name.first() }
.join(" ") }
{"${self.source ?: 'WEB-DL'}"}
.join(" - ") }
{"]"}
.join("") }
{subt}
.join("") }
.join(" ") }
.join(" - ") }
.join("/") }
Parameter: ut_label = tv-sonarr
Parameter: ut_state =
Parameter: ut_title = The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE
Parameter: ut_kind = multi
Parameter: ut_file =
Parameter: ut_dir = C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE
Parameter: exec = filebot -script C:\Users\JourneyOver\Dropbox/Public/Folders/Filebot/MyStuff/Update_Sonarr_Radarr.groovy --def id={id}
Use excludes: C:\Users\JourneyOver\Dropbox\Public\Folders\Filebot\logs\filebot-history.log (1)
Read archive [the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.rar] and extract to [C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE]
Extracting files [C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.mkv]
Input: C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.mkv
Group: [tvs:the librarians] => [the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.mkv]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.mkv
Rename episodes using [TheTVDB]
Auto-detected query: [The Librarians, the librarians us]
Fetching episode data for [The Librarians]
Fetching episode data for [The Librarians (2014)]
Fetching episode data for [The Librarian]
Resource not found: https://api.thetvdb.com/search/series?name=the+librarians+us
Apply filter [any{ age < 7 }{ airdate ? true : false }] on [68] items
Include [The Librarians (2014) - 4x01 - And the Dark Secret]
Include [The Librarians (2014) - 4x02 - And the Steal of Fortune]
Include [The Librarians (2014) - 4x03 - And the Christmas Thief]
Include [The Librarians (2014) - 4x04 - And the Silver Screen]
Include [The Librarians (2014) - 4x05 - And the Bleeding Crown]
Include [The Librarians (2014) - 4x06 - And the Grave of Time]
Include [The Librarians (2014) - 4x07 - And the Disenchanted Forest]
Include [The Librarians (2014) - 4x08 - And the Hidden Sanctuary]
Include [The Librarians (2014) - 4x09 - And a Town Called Feud]
Include [The Librarians (2014) - 4x10 - And Some Dude Named Jeff]
Include [The Librarians (2014) - 4x11 - And the Trial of the One]
Include [The Librarians (2014) - 4x12 - And the Echoes of Memory]
[MOVE] from [C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.mkv] to [D:\Media\TV Shows\The Librarians (2014)\Season 04\The Librarians - S04E01 - And the Dark Secret [WEB-DL].mkv]
Processed 1 files
Execute: filebot -script C:\Users\JourneyOver\Dropbox/Public/Folders/Filebot/MyStuff/Update_Sonarr_Radarr.groovy --def id=281709
Notify Plex: [host:localhost, token:]
GET: http://localhost:32400/library/sections/all/refresh?X-Plex-Token=
Delete archive C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.rar
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.r00
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.r01
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.r02
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.r03
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.r04
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.r05
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.r06
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.r07
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.r08
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.r09
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.r10
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.r11
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.r12
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.r13
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.r14
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.r15
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.r16
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.r17
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.r18
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.r19
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.r20
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.r21
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.r22
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.r23
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.r24
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.r25
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.r26
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.r27
Clean clutter files and empty folders
Delete C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.nfo
Delete C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle.sfv
Delete C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE
Delete C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e01.internal.1080p.web.x264-bamboozle
Delete C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E01.iNTERNAL.1080p.WEB.x264-BAMBOOZLE
Done ヾ(@⌒ー⌒@)ノ
Run script [fn:amc] at [Wed Dec 13 20:17:22 CST 2017]
Parameter: excludeList = C:\Users\JourneyOver\Dropbox/Public/Folders/Filebot/logs/filebot-history.log
Parameter: music = false
Parameter: subtitles = en
Parameter: artwork = false
Parameter: extras = false
Parameter: storeReport = false
Parameter: skipExtract = false
Parameter: clean = true
Parameter: deleteAfterExtract = true
Parameter: plex = *****
Parameter: movieFormat = { norm = { it.upperInitial()
.lowerTrail()
.replaceTrailingBrackets()
.replaceAll(/[`´‘’ʻ""“”]/, "'")
.replaceAll(/[:|]/, " - ")
.replaceAll(/[?]/, "!")
.replaceAll(/[*\s]+/, " ")
.replaceAll(/\b[IiVvXx]+\b/, { it.upper() })
.replaceAll(/\b[0-9](?i:th|nd|rd)\b/, { it.lower() })}}
{ allOf
{"Movies"}
// Movies directory
{n.colon(" - ") + " [$y]"}
// File name
{ allOf
{ primaryTitle ? primaryTitle.colon(" - ") : primaryTitle.colon(" - ") }
{" [$y]"}
// tags + a few more variants
{ specials = { allOf
{tags}
{ def last = n.tokenize(" ").last()
fn.after(/(?i:$last)/).findAll(/(?i:alternate[ ._-]cut|limited)/)*.upperInitial()*.lowerTrail()*.replaceAll(/[._-]/, " ") }
.flatten().sort() }
specials().size() > 0 ? specials().join(", ").replaceAll(/^/, " - ") : "" }
{" PT $pi"}
{" ["}
{ allOf
// Video stream
{[vf,vc].join(" ")}
{ allOf
// Audio stream and language
{[channels,ac].join(" ")}
{ def a = audioLanguages
a.size() > 1 ? a.ISO3.join(", ").upperInitial() : a.name.first() }
.join(" ") }
{"${self.source ?: 'WEB-DL'}"}
.join(" - ") }
{"]"}
{subt}
.join("") }
.join("/") }
Parameter: seriesFormat = { norm = { it.replaceAll(/[`´‘’ʻ""“”]/, "'")
.replaceAll(/[:|]/, " - ")
.replaceAll(/[?]/, "!")
.replaceAll(/[*\s]+/, " ")
.replaceAll(/\b[IiVvXx]+\b/, { it.upper() })
.replaceAll(/\b[0-9](?i:th|nd|rd)\b/, { it.lower() })}}
{ allOf
{"TV Shows"}
// TV Shows directory
{ norm(n).replaceAll(/(S.H.I.E.L.D.)/, " S.H.I.E.L.D ") }
{ episode.special ? 'Specials' : 'Season ' + s.pad(2) }
{ allOf
{ norm(n).replaceTrailingBrackets() }
{ episode.special ? 'S00E' + special.pad(2) : S00E00 }
{ allOf
{ norm(t).replacePart(' - Part $1') }
{ allOf
{ allOf
{"["}
{ allOf
{[vf,vc].join(" ")}
{ allOf
{[channels,ac].join(" ")}
{ def a = audioLanguages
a.size() > 1 ? a.ISO3.join(", ").upperInitial() : a.name.first() }
.join(" ") }
{"${self.source ?: 'WEB-DL'}"}
.join(" - ") }
{"]"}
.join("") }
{subt}
.join("") }
.join(" ") }
.join(" - ") }
.join("/") }
Parameter: animeFormat = { norm = { it.replaceAll(/[`´‘’ʻ""“”]/, "'")
.replaceAll(/(")/, "''")
.replaceAll(/[:|]/, " - ")
.replaceAll(/[?]/, "!")
.replaceAll(/[*\s]+/, " ")
.replaceAll(/\b[IiVvXx]+\b/, { it.upper() })
.replaceAll(/\b[0-9](?i:th|nd|rd)\b/, { it.lower() })}}
{ allOf
{"Anime"}
// Anime directory
{ norm(n) }
{ episode.special ? 'Specials' : 'Season ' + s.pad(2) }
{ allOf
{ norm(n).replaceTrailingBrackets() }
{ episode.special ? 'S00E' + special.pad(2) : S00E00 }
{ allOf
{ norm(t).replacePart(' - Part $1') }
{ allOf
{ allOf
{"["}
{ allOf
{[vf,vc].join(" ")}
{ allOf
{[channels,ac].join(" ")}
{ def a = audioLanguages
a.size() > 1 ? a.ISO3.join(", ").upperInitial() : a.name.first() }
.join(" ") }
{"${self.source ?: 'WEB-DL'}"}
.join(" - ") }
{"]"}
.join("") }
{subt}
.join("") }
.join(" ") }
.join(" - ") }
.join("/") }
Parameter: ut_label = tv-sonarr
Parameter: ut_state =
Parameter: ut_title = The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE
Parameter: ut_kind = multi
Parameter: ut_file =
Parameter: ut_dir = C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE
Parameter: exec = filebot -script C:\Users\JourneyOver\Dropbox/Public/Folders/Filebot/MyStuff/Update_Sonarr_Radarr.groovy --def id={id}
Use excludes: C:\Users\JourneyOver\Dropbox\Public\Folders\Filebot\logs\filebot-history.log (3)
Read archive [the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.rar] and extract to [C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE]
Extracting files [C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.mkv]
Input: C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.mkv
Group: [tvs:the librarians] => [the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.mkv]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.mkv
Rename episodes using [TheTVDB]
Auto-detected query: [The Librarians, the librarians us]
Fetching episode data for [The Librarians]
Fetching episode data for [The Librarians (2014)]
Fetching episode data for [The Librarian]
Apply filter [any{ age < 7 }{ airdate ? true : false }] on [68] items
Include [The Librarians (2014) - 4x01 - And the Dark Secret]
Include [The Librarians (2014) - 4x02 - And the Steal of Fortune]
Include [The Librarians (2014) - 4x03 - And the Christmas Thief]
Include [The Librarians (2014) - 4x04 - And the Silver Screen]
Include [The Librarians (2014) - 4x05 - And the Bleeding Crown]
Include [The Librarians (2014) - 4x06 - And the Grave of Time]
Include [The Librarians (2014) - 4x07 - And the Disenchanted Forest]
Include [The Librarians (2014) - 4x08 - And the Hidden Sanctuary]
Include [The Librarians (2014) - 4x09 - And a Town Called Feud]
Include [The Librarians (2014) - 4x10 - And Some Dude Named Jeff]
Include [The Librarians (2014) - 4x11 - And the Trial of the One]
Include [The Librarians (2014) - 4x12 - And the Echoes of Memory]
[MOVE] from [C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.mkv] to [D:\Media\TV Shows\The Librarians (2014)\Season 04\The Librarians - S04E02 - And the Steal of Fortune [WEB-DL].mkv]
Processed 1 files
Execute: filebot -script C:\Users\JourneyOver\Dropbox/Public/Folders/Filebot/MyStuff/Update_Sonarr_Radarr.groovy --def id=281709
Notify Plex: [host:localhost, token:]
GET: http://localhost:32400/library/sections/all/refresh?X-Plex-Token=
Delete archive C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.rar
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.r00
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.r01
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.r02
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.r03
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.r04
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.r05
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.r06
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.r07
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.r08
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.r09
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.r10
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.r11
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.r12
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.r13
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.r14
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.r15
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.r16
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.r17
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.r18
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.r19
Clean clutter files and empty folders
Delete C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.nfo
Delete C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle.sfv
Delete C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE
Delete C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.librarians.us.s04e02.internal.720p.web.x264-bamboozle
Delete C:\Users\JourneyOver\Desktop\QBT\The.Librarians.US.S04E02.iNTERNAL.720p.WEB.x264-BAMBOOZLE
Done ヾ(@⌒ー⌒@)ノ
Run script [fn:amc] at [Wed Dec 13 20:51:38 CST 2017]
Parameter: excludeList = C:\Users\JourneyOver\Dropbox/Public/Folders/Filebot/logs/filebot-history.log
Parameter: music = false
Parameter: subtitles = en
Parameter: artwork = false
Parameter: extras = false
Parameter: storeReport = false
Parameter: skipExtract = false
Parameter: clean = true
Parameter: deleteAfterExtract = true
Parameter: plex = *****
Parameter: movieFormat = { norm = { it.upperInitial()
.lowerTrail()
.replaceTrailingBrackets()
.replaceAll(/[`´‘’ʻ""“”]/, "'")
.replaceAll(/[:|]/, " - ")
.replaceAll(/[?]/, "!")
.replaceAll(/[*\s]+/, " ")
.replaceAll(/\b[IiVvXx]+\b/, { it.upper() })
.replaceAll(/\b[0-9](?i:th|nd|rd)\b/, { it.lower() })}}
{ allOf
{"Movies"}
// Movies directory
{n.colon(" - ") + " [$y]"}
// File name
{ allOf
{ primaryTitle ? primaryTitle.colon(" - ") : primaryTitle.colon(" - ") }
{" [$y]"}
// tags + a few more variants
{ specials = { allOf
{tags}
{ def last = n.tokenize(" ").last()
fn.after(/(?i:$last)/).findAll(/(?i:alternate[ ._-]cut|limited)/)*.upperInitial()*.lowerTrail()*.replaceAll(/[._-]/, " ") }
.flatten().sort() }
specials().size() > 0 ? specials().join(", ").replaceAll(/^/, " - ") : "" }
{" PT $pi"}
{" ["}
{ allOf
// Video stream
{[vf,vc].join(" ")}
{ allOf
// Audio stream and language
{[channels,ac].join(" ")}
{ def a = audioLanguages
a.size() > 1 ? a.ISO3.join(", ").upperInitial() : a.name.first() }
.join(" ") }
{"${self.source ?: 'WEB-DL'}"}
.join(" - ") }
{"]"}
{subt}
.join("") }
.join("/") }
Parameter: seriesFormat = { norm = { it.replaceAll(/[`´‘’ʻ""“”]/, "'")
.replaceAll(/[:|]/, " - ")
.replaceAll(/[?]/, "!")
.replaceAll(/[*\s]+/, " ")
.replaceAll(/\b[IiVvXx]+\b/, { it.upper() })
.replaceAll(/\b[0-9](?i:th|nd|rd)\b/, { it.lower() })}}
{ allOf
{"TV Shows"}
// TV Shows directory
{ norm(n).replaceAll(/(S.H.I.E.L.D.)/, " S.H.I.E.L.D ") }
{ episode.special ? 'Specials' : 'Season ' + s.pad(2) }
{ allOf
{ norm(n).replaceTrailingBrackets() }
{ episode.special ? 'S00E' + special.pad(2) : S00E00 }
{ allOf
{ norm(t).replacePart(' - Part $1') }
{ allOf
{ allOf
{"["}
{ allOf
{[vf,vc].join(" ")}
{ allOf
{[channels,ac].join(" ")}
{ def a = audioLanguages
a.size() > 1 ? a.ISO3.join(", ").upperInitial() : a.name.first() }
.join(" ") }
{"${self.source ?: 'WEB-DL'}"}
.join(" - ") }
{"]"}
.join("") }
{subt}
.join("") }
.join(" ") }
.join(" - ") }
.join("/") }
Parameter: animeFormat = { norm = { it.replaceAll(/[`´‘’ʻ""“”]/, "'")
.replaceAll(/(")/, "''")
.replaceAll(/[:|]/, " - ")
.replaceAll(/[?]/, "!")
.replaceAll(/[*\s]+/, " ")
.replaceAll(/\b[IiVvXx]+\b/, { it.upper() })
.replaceAll(/\b[0-9](?i:th|nd|rd)\b/, { it.lower() })}}
{ allOf
{"Anime"}
// Anime directory
{ norm(n) }
{ episode.special ? 'Specials' : 'Season ' + s.pad(2) }
{ allOf
{ norm(n).replaceTrailingBrackets() }
{ episode.special ? 'S00E' + special.pad(2) : S00E00 }
{ allOf
{ norm(t).replacePart(' - Part $1') }
{ allOf
{ allOf
{"["}
{ allOf
{[vf,vc].join(" ")}
{ allOf
{[channels,ac].join(" ")}
{ def a = audioLanguages
a.size() > 1 ? a.ISO3.join(", ").upperInitial() : a.name.first() }
.join(" ") }
{"${self.source ?: 'WEB-DL'}"}
.join(" - ") }
{"]"}
.join("") }
{subt}
.join("") }
.join(" ") }
.join(" - ") }
.join("/") }
Parameter: ut_label = tv-sonarr
Parameter: ut_state =
Parameter: ut_title = Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS
Parameter: ut_kind = multi
Parameter: ut_file =
Parameter: ut_dir = C:\Users\JourneyOver\Desktop\QBT\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS
Parameter: exec = filebot -script C:\Users\JourneyOver\Dropbox/Public/Folders/Filebot/MyStuff/Update_Sonarr_Radarr.groovy --def id={id}
Use excludes: C:\Users\JourneyOver\Dropbox\Public\Folders\Filebot\logs\filebot-history.log (5)
Read archive [designated.survivor.s02e10.720p.hdtv.x264-killers.rar] and extract to [C:\Users\JourneyOver\Desktop\QBT\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\designated.survivor.s02e10.720p.hdtv.x264-killers\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS]
Extracting files [C:\Users\JourneyOver\Desktop\QBT\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\designated.survivor.s02e10.720p.hdtv.x264-killers\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS.mkv]
Input: C:\Users\JourneyOver\Desktop\QBT\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\designated.survivor.s02e10.720p.hdtv.x264-killers\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS.mkv
Group: [tvs:designated survivor] => [Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS.mkv]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: C:\Users\JourneyOver\Desktop\QBT\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\designated.survivor.s02e10.720p.hdtv.x264-killers\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS.mkv
Rename episodes using [TheTVDB]
Auto-detected query: [Designated Survivor]
Fetching episode data for [Designated Survivor]
Apply filter [any{ age < 7 }{ airdate ? true : false }] on [32] items
Include [Designated Survivor - 2x10 - Line of Fire]
Include [Designated Survivor - 2x11 - null]
[MOVE] from [C:\Users\JourneyOver\Desktop\QBT\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\designated.survivor.s02e10.720p.hdtv.x264-killers\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS.mkv] to [D:\Media\TV Shows\Designated Survivor\Season 02\Designated Survivor - S02E10 - Line of Fire [720p x264 - 5.1 AC3 - HDTV].mkv]
Processed 1 files
Execute: filebot -script C:\Users\JourneyOver\Dropbox/Public/Folders/Filebot/MyStuff/Update_Sonarr_Radarr.groovy --def id=311876
Notify Plex: [host:localhost, token:]
GET: http://localhost:32400/library/sections/all/refresh?X-Plex-Token=
Delete archive C:\Users\JourneyOver\Desktop\QBT\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\designated.survivor.s02e10.720p.hdtv.x264-killers.rar
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\designated.survivor.s02e10.720p.hdtv.x264-killers.r00
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\designated.survivor.s02e10.720p.hdtv.x264-killers.r01
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\designated.survivor.s02e10.720p.hdtv.x264-killers.r02
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\designated.survivor.s02e10.720p.hdtv.x264-killers.r03
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\designated.survivor.s02e10.720p.hdtv.x264-killers.r04
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\designated.survivor.s02e10.720p.hdtv.x264-killers.r05
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\designated.survivor.s02e10.720p.hdtv.x264-killers.r06
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\designated.survivor.s02e10.720p.hdtv.x264-killers.r07
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\designated.survivor.s02e10.720p.hdtv.x264-killers.r08
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\designated.survivor.s02e10.720p.hdtv.x264-killers.r09
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\designated.survivor.s02e10.720p.hdtv.x264-killers.r10
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\designated.survivor.s02e10.720p.hdtv.x264-killers.r11
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\designated.survivor.s02e10.720p.hdtv.x264-killers.r12
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\designated.survivor.s02e10.720p.hdtv.x264-killers.r13
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\designated.survivor.s02e10.720p.hdtv.x264-killers.r14
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\designated.survivor.s02e10.720p.hdtv.x264-killers.r15
Clean clutter files and empty folders
Delete C:\Users\JourneyOver\Desktop\QBT\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\designated.survivor.s02e10.720p.hdtv.x264-killers.nfo
Delete C:\Users\JourneyOver\Desktop\QBT\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\designated.survivor.s02e10.720p.hdtv.x264-killers.sfv
Delete C:\Users\JourneyOver\Desktop\QBT\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\designated.survivor.s02e10.720p.hdtv.x264-killers\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS
Delete C:\Users\JourneyOver\Desktop\QBT\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS\designated.survivor.s02e10.720p.hdtv.x264-killers
Delete C:\Users\JourneyOver\Desktop\QBT\Designated.Survivor.S02E10.720p.HDTV.x264-KILLERS
Done ヾ(@⌒ー⌒@)ノ
These are all my scripts to do with filebot --
Script to call filebot:
Code: Select all
# Media file processing script for Filebot
# CLI https://www.filebot.net/cli.html
# Format https://www.filebot.net/naming.html
# Forums https://www.filebot.net/forums
# Qbittorrent Call ---
# "C:/Users/JourneyOver/Dropbox/Public/Folders/Filebot/MyStuff/Filebot_Wrapper.pyw" "%L" "" "%N" "multi" "" "%F"
import os
import sys
import subprocess
# required args
label, state, title, kind, file, directory = sys.argv[1:7]
# Set up some logging
LOGDIR = os.path.expanduser(os.sep.join(["~", "Dropbox/Public/Folders/Filebot/logs"]))
# Send RefreshSeries Call to Sonarr/Radarr
UPSR = os.path.expanduser(os.sep.join(["~", "Dropbox/Public/Folders/Filebot/MyStuff/Update_Sonarr_Radarr.groovy"]))
# Base destinations to move files, no trailing slash. The subfolder is defined in the format string.
DESTINATION = 'D:/Media'
# Rename action i.e: move | copy | keeplink | symlink | hardlink | test
ACTION = 'Move'
# Conflict resolution i.e: override | skip | auto | index | fail
CONFLICT = 'Override'
# custom formats
movieFormat = "@/" + os.path.expanduser(os.sep.join(["~", "Dropbox/Public/Folders/Filebot/MyStuff/Form_Movie.groovy"]))
seriesFormat = "@/" + os.path.expanduser(os.sep.join(["~", "Dropbox/Public/Folders/Filebot/MyStuff/Form_Series.groovy"]))
animeFormat = "@/" + os.path.expanduser(os.sep.join(["~", "Dropbox/Public/Folders/Filebot/MyStuff/Form_Anime.groovy"]))
# Age Filter
if label == "tv-sonarr":
FILTERPATH = 'any{ age < 7 }{ airdate ? true : false }'
else:
FILTERPATH = 'any{ age < 80000 }{ airdate ? true : false }'
# Process Music Files
MUSIC = 'false'
# Download subtitles for the given languages i.e: en, de, fr, es, ja, zh, ...
SUBTITLES = 'en'
# Fetch Artwork/NFO
ARTWORK = 'false'
# Generate *.url files and fetch all available backdrops
EXTRAS = 'false'
# Tell the given Kodi/XBMN instance to rescan it's library
#Kodi = 'host[:port]'
# Tell the given Plex instance to rescan it's library. Plex Home instances require an authentication token
PLEX = 'localhost:'
# Tell the given Emby instance to rescan it's library
#EMBY = 'host:apikey'
# Save reports to local filesystem
STOREREPORT = 'false'
# Skip extracting file
SKIPEXTRACT = 'false'
# Automatically remove empty folders and clutter files that may be left behind after moving the video files, or temporary extracted files after copying
CLEAN = 'true'
# Delete archives after extraction
DELETEAFTEREXTRACT = 'true'
command = [
'filebot', '-script', 'fn:amc',
'--output', DESTINATION,
'--action', ACTION,
'--conflict', CONFLICT,
'-non-strict',
'-no-xattr',
'--filter',
FILTERPATH,
'--log-file', LOGDIR + '/filebot-amc.log',
'--def',
'excludeList=' + LOGDIR + '/filebot-history.log',
'music=' + MUSIC,
'subtitles=' + SUBTITLES,
'artwork=' + ARTWORK,
'extras=' + EXTRAS,
'storeReport=' + STOREREPORT,
'skipExtract=' + SKIPEXTRACT,
'clean=' + CLEAN,
'deleteAfterExtract=' + DELETEAFTEREXTRACT,
'plex=' + PLEX,
'movieFormat=' + movieFormat,
'seriesFormat=' + seriesFormat,
'animeFormat=' + animeFormat,
'ut_label=' + label,
'ut_state=' + state,
'ut_title=' + title,
'ut_kind=' + kind,
'ut_file=' + file,
'ut_dir=' + directory,
'exec=filebot -script ' + UPSR + ' --def id={id}'
]
# execute command (and hide cmd window)
subprocess.run(command, creationflags=0x08000000)
Code: Select all
{ norm = { it.replaceAll(/[`´‘’ʻ""“”]/, "'")
.replaceAll(/[:|]/, " - ")
.replaceAll(/[?]/, "!")
.replaceAll(/[*\s]+/, " ")
.replaceAll(/\b[IiVvXx]+\b/, { it.upper() })
.replaceAll(/\b[0-9](?i:th|nd|rd)\b/, { it.lower() })}}
{ allOf
{"TV Shows"}
// TV Shows directory
{ norm(n).replaceAll(/(S.H.I.E.L.D.)/, " S.H.I.E.L.D ") }
{ episode.special ? 'Specials' : 'Season ' + s.pad(2) }
{ allOf
{ norm(n).replaceTrailingBrackets() }
{ episode.special ? 'S00E' + special.pad(2) : S00E00 }
{ allOf
{ norm(t).replacePart(' - Part $1') }
{ allOf
{ allOf
{"["}
{ allOf
{[vf,vc].join(" ")}
{ allOf
{[channels,ac].join(" ")}
{ def a = audioLanguages
a.size() > 1 ? a.ISO3.join(", ").upperInitial() : a.name.first() }
.join(" ") }
{"${self.source ?: 'WEB-DL'}"}
.join(" - ") }
{"]"}
.join("") }
{subt}
.join("") }
.join(" ") }
.join(" - ") }
.join("/") }
Code: Select all
{ norm = { it.replaceAll(/[`´‘’ʻ""“”]/, "'")
.replaceAll(/(")/, "''")
.replaceAll(/[:|]/, " - ")
.replaceAll(/[?]/, "!")
.replaceAll(/[*\s]+/, " ")
.replaceAll(/\b[IiVvXx]+\b/, { it.upper() })
.replaceAll(/\b[0-9](?i:th|nd|rd)\b/, { it.lower() })}}
{ allOf
{"Anime"}
// Anime directory
{ norm(n) }
{ episode.special ? 'Specials' : 'Season ' + s.pad(2) }
{ allOf
{ norm(n).replaceTrailingBrackets() }
{ episode.special ? 'S00E' + special.pad(2) : S00E00 }
{ allOf
{ norm(t).replacePart(' - Part $1') }
{ allOf
{ allOf
{"["}
{ allOf
{[vf,vc].join(" ")}
{ allOf
{[channels,ac].join(" ")}
{ def a = audioLanguages
a.size() > 1 ? a.ISO3.join(", ").upperInitial() : a.name.first() }
.join(" ") }
{"${self.source ?: 'WEB-DL'}"}
.join(" - ") }
{"]"}
.join("") }
{subt}
.join("") }
.join(" ") }
.join(" - ") }
.join("/") }
Code: Select all
{ norm = { it.upperInitial()
.lowerTrail()
.replaceTrailingBrackets()
.replaceAll(/[`´‘’ʻ""“”]/, "'")
.replaceAll(/[:|]/, " - ")
.replaceAll(/[?]/, "!")
.replaceAll(/[*\s]+/, " ")
.replaceAll(/\b[IiVvXx]+\b/, { it.upper() })
.replaceAll(/\b[0-9](?i:th|nd|rd)\b/, { it.lower() })}}
{ allOf
{"Movies"}
// Movies directory
{n.colon(" - ") + " [$y]"}
// File name
{ allOf
{ primaryTitle ? primaryTitle.colon(" - ") : primaryTitle.colon(" - ") }
{" [$y]"}
// tags + a few more variants
{ specials = { allOf
{tags}
{ def last = n.tokenize(" ").last()
fn.after(/(?i:$last)/).findAll(/(?i:alternate[ ._-]cut|limited)/)*.upperInitial()*.lowerTrail()*.replaceAll(/[._-]/, " ") }
.flatten().sort() }
specials().size() > 0 ? specials().join(", ").replaceAll(/^/, " - ") : "" }
{" PT $pi"}
{" ["}
{ allOf
// Video stream
{[vf,vc].join(" ")}
{ allOf
// Audio stream and language
{[channels,ac].join(" ")}
{ def a = audioLanguages
a.size() > 1 ? a.ISO3.join(", ").upperInitial() : a.name.first() }
.join(" ") }
{"${self.source ?: 'WEB-DL'}"}
.join(" - ") }
{"]"}
{subt}
.join("") }
.join("/") }
Code: Select all
// TVDB ID
def id = id as int
// Sonarr API Configuration
def url = new URL('http://localhost:8989')
def header = ['X-Api-Key': '']
def sonarrSeriesId = new JsonSlurper()
.parseText(new URL(url, '/api/series')
.get(header)
.text)
.find {
it.tvdbId == id
}.id
println new URL(url, '/api/command').post(
JsonOutput.toJson(
[name: 'rescanSeries', seriesId: sonarrSeriesId]
).getBytes('UTF-8'),
'application/json',
header
).text
