iNTERNAL in filename causing issues with rename.

Any questions? Need some help?
ZeroByDivide
402
Posts: 135
Joined: 16 Dec 2014, 01:39

iNTERNAL in filename causing issues with rename.

Post by ZeroByDivide » 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
The Librarians US S04E01 iNTERNAL 1080p WEB x264-BAMBOOZLE
(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 example
The Librarians - S04E01 - And the Dark Secret [1080p x264 - 5.1 AC3 - WEB-DL].mkv
it ends up renaming it as
The Librarians - S04E01 - And the Dark Secret [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.

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(/(&#34;)/, "''")
             .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(/(&#34;)/, "''")
             .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(/(&#34;)/, "''")
             .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 ヾ(@⌒ー⌒@)ノ
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:

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)
TV Formatter -

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("/") }
Anime formatter -

Code: Select all

{ norm = { it.replaceAll(/[`´‘’ʻ""“”]/, "'")
             .replaceAll(/(&#34;)/, "''")
             .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("/") }
Movie Formatter -

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("/") }
and sonarr api call

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
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)..
Image

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

Re: iNTERNAL in filename causing issues with rename.

Post by rednoah » 14 Dec 2017, 19:51

1.
What exactly is the issue? Can you isolate the problem in some reproducible test case?


2.
The {group} binding works fine as far as I can tell:

Code: Select all

$ filebot -mediainfo * --format '{fn} => {group}'
Alias.1x01.iNTERNAL => iNTERNAL

3.
If the issue is related to MediaInfo bindings not working as expected, then this thread might be of help:
viewtopic.php?f=5&t=4285
My (very excellent) support depends on Windows Store and Mac App Store sales and Patreon support. Paying users, donors and everyone who contributes to FileBot in one way or another will get the very best support.

:idea: Please read the FAQ and How to Request Help.

ZeroByDivide
402
Posts: 135
Joined: 16 Dec 2014, 01:39

Re: iNTERNAL in filename causing issues with rename.

Post by ZeroByDivide » 14 Dec 2017, 23:40

rednoah wrote:
14 Dec 2017, 19:51
1.
What exactly is the issue? Can you isolate the problem in some reproducible test case?


2.
The {group} binding works fine as far as I can tell:

Code: Select all

$ filebot -mediainfo * --format '{fn} => {group}'
Alias.1x01.iNTERNAL => iNTERNAL

3.
If the issue is related to MediaInfo bindings not working as expected, then this thread might be of help:
viewtopic.php?f=5&t=4285
1.
The issue is when the word "iNTERNAL" is in the filename MediaInfo bindings ({vf}, {vc}, {ac}, {channels}, {source}) all stop working for some reason in the CLI, but if using the GUI it does everything correctly. This has happened every single time I have downloaded a file that has had "iNTERNAL" in the filename somewhere so I guess you can say it's reproducible. There might be others that trigger the same effect but so far I've experienced it every single time with "iNTERNAL".

2.
I don't have group bindings in my formatters at all, and the "iNTERNAL" is not a group name in any shape or form anyways..This explains what the "iNTERNAL" is https://scenelingo.wordpress.com/2008/0 ... rnal-mean/

3.
Yes it's related to MediaInfo in some form, as I explained in the OP and in #1 it's only happening when the word "iNTERNAL" is in the filename, when it's not in the filename then MediaInfo works as expected and filebot sees all raw MediaInfo data correctly for the file when throwing it into the GUI..

and again this is only happening when I use CLI, if I use GUI to rename everything works as expected.

TBH it feels like you skipped over 90% of my first post, as I explained everything in the first post..

and before you ask --

My SYSINFO

Code: Select all

FileBot 4.7.14 (r5234)
JNA Native: 5.2.0
MediaInfo: 0.7.99
7-Zip-JBinding: 9.20
Chromaprint: 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2017-11-21 (r512)
Groovy: 2.4.12
JRE: Java(TM) SE Runtime Environment 1.8.0_151
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 6 Core / 1 GB Max Memory / 20 MB Used Memory
OS: Windows 10 (amd64)
Package: APPX
uname: MSYS_NT-10.0 DESKTOP-V6FPU1E 2.9.0(0.318/5/3) 2017-10-05 15:05 x86_64 Msys
Done ?(?????)?

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

Re: iNTERNAL in filename causing issues with rename.

Post by rednoah » 16 Dec 2017, 00:49

Can you give me a simple -rename command with a simple --format that illustrates the issue? Please try to strip away everything that is not important for this particular issue (i.e. I can't help you debug complex formats).

e.g. this simple and concise CLI test case shows that MediaInfo bindings fundamentally work for files with "iNTERNAL" in the filename:

Code: Select all

$ filebot -rename Alias.1x01.iNTERNAL.mkv --format '{n} {sxe} {resolution} {vf} {vc} {ac}' -non-strict --db TheTVDB --action TEST

Code: Select all

[TEST] from [Alias.1x01.iNTERNAL.mkv] to [Alias 1x01 848x480 480p x264 AAC.mkv]
My (very excellent) support depends on Windows Store and Mac App Store sales and Patreon support. Paying users, donors and everyone who contributes to FileBot in one way or another will get the very best support.

:idea: Please read the FAQ and How to Request Help.

ZeroByDivide
402
Posts: 135
Joined: 16 Dec 2014, 01:39

Re: iNTERNAL in filename causing issues with rename.

Post by ZeroByDivide » 16 Dec 2017, 05:59

Well then maybe it's just a problem with my end or something if it works for everyone else... using the above command with something with iNTERNAL in the name is working fine when I throw in a super simple expression..

I did find out though in my testing now, that it doesn't seem to be every file with the word "iNTERNAL" in the filename, as it picked up on media info bindings correctly for some other files that had the word "iNTERNAL" in it, it just seems to be very choosy on when it seems to miss them or not, which is weird because if I throw in any files that it fails do the media info stuff for into the filebot GUI instead it works correctly and everything and it shows the correct mediainfo..so I don't really don't get it at all, between GUI and CLI I have the formats exactly the same so I'm at a complete loss..

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

Re: iNTERNAL in filename causing issues with rename.

Post by rednoah » 16 Dec 2017, 10:47

Unfortunately, I'm still unable to reproduce the issue. If you could somehow narrow down and isolate the issue, then I could have a closer look.

The code for evaluating formats is the same for GUI and CLI so it can't be different.

However, the most likely explanation is that you're not passing in the format you think you're passing in, due to command-line syntax or encoding issues. These things are non-obvious.
My (very excellent) support depends on Windows Store and Mac App Store sales and Patreon support. Paying users, donors and everyone who contributes to FileBot in one way or another will get the very best support.

:idea: Please read the FAQ and How to Request Help.

ZeroByDivide
402
Posts: 135
Joined: 16 Dec 2014, 01:39

Re: iNTERNAL in filename causing issues with rename.

Post by ZeroByDivide » 16 Dec 2017, 14:34

rednoah wrote:
16 Dec 2017, 10:47
Unfortunately, I'm still unable to reproduce the issue. If you could somehow narrow down and isolate the issue, then I could have a closer look.
Sadly I don't know how I can really narrow it down any, as it seems to be happening randomly.. though I have been able to get it to produce the same result 100% of the time using CLI on two episodes of a show, which is the show/episodes from the logs in the OP that it's happening to (the ones that are only tagged with [WEB-DL], any other time it seems to be random on if it'll decide to grab the mediainfo correctly or not using CLI..
rednoah wrote:
16 Dec 2017, 10:47
The code for evaluating formats is the same for GUI and CLI so it can't be different.

However, the most likely explanation is that you're not passing in the format you think you're passing in, due to command-line syntax or encoding issues. These things are non-obvious.
unless the filebot logs completely lie on what is being passed in and done then I am for sure passing in the correct formats every single time, and I know for sure my GUI format and CLI format are both the same as I copy/paste everything from the GUI to my .groovy formats whenever I change anything, and I triple check everything to make sure it's all copied correctly.

ZeroByDivide
402
Posts: 135
Joined: 16 Dec 2014, 01:39

Re: iNTERNAL in filename causing issues with rename.

Post by ZeroByDivide » 17 Dec 2017, 10:29

Okay so I may have narrowed it down a bit more to possibly help isolate the issue.. The problem seems to only happen when the files are zipped (.rar, .zip, others) up before filebot starts unzipping them and processing them and such.

So for example

Code: Select all

the.librarians.us.s04e01.iNTERNAL.1080p.web.x264-bamboozle.rar
Seems to cause issues while

Code: Select all

the.librarians.us.s04e01.iNTERNAL.1080p.web.x264-bamboozle.mkv
doesn't seem to cause any issues.

If I download a file that is not zipped up in some form that has the word "iNTERNAL" in it then everything processes correctly, but if I download a file that is zipped up in some form that has the word "iNTERNAL" in it then it seems that it doesn't pull the mediainfo bindings from the extracted file. Which explains the reasoning on why when I throw the file into the filebot GUI it would pick up the mediainfo bindings correctly which is due to it being extracted already.

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

Re: iNTERNAL in filename causing issues with rename.

Post by rednoah » 17 Dec 2017, 18:07

1.
FileBot can't pull MediaInfo from compressed or encrypted files.


2.
FileBot has no way of knowing what files have recently been extracted, so MediaInfo failing on recently extracted files is unlikely to be the source of the problem.

MediaInfo will work for valid media files. Not for archives, partially extracted media file or any other kind of broken media file.
My (very excellent) support depends on Windows Store and Mac App Store sales and Patreon support. Paying users, donors and everyone who contributes to FileBot in one way or another will get the very best support.

:idea: Please read the FAQ and How to Request Help.

ZeroByDivide
402
Posts: 135
Joined: 16 Dec 2014, 01:39

Re: iNTERNAL in filename causing issues with rename.

Post by ZeroByDivide » 17 Dec 2017, 20:40

I'm not talking about pulling mediainfo from a compressed archive or encrypted file... I'm talking about the media file after it's completely extracted is when it's doing it..

Download show > filebot gets called > extracts from archive > if media filename has "iNTERNAL" in the filename then it fails at mediainfo bindings.

Download show > filebot gets called > not archived so no need to extract anything > if media filename has "iNTERNAL" in the filename it doesn't fail at mediainfo bindings.

Are these two examples easier to follow along on what I'm trying to say?

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

Re: iNTERNAL in filename causing issues with rename.

Post by rednoah » 18 Dec 2017, 10:32

A.

Code: Select all

Download show > filebot gets called > extracts from archive
B.

Code: Select all

Download show > filebot gets called > not archived so no need to extract anything
A and B do not matter, because the result is always a media file. I can promise you that iNTERNAL in the filename has no effect on MediaInfo working or not working whatsoever.

If you find this correlation, there might be a common cause for both of this occurrences, such as iNTERNAL publishing broken media files or MediaInfo not working for files written by some particular video encoding application.

Another explanation might be that A results in partially / erroneously files and that's why MediaInfo ends up not working, or the file is broken to begin with, and that's why it's not working.


:!: Bottom line is that there is no way I can reproduce this issue, so I cannot fix it. Only you can narrow down and experiment until you find the real underlying issue. It would be interesting to know why it's not working, but I can promise you that it's got nothing to do with recently extracted files or "iNTERNAL" in the filename. ;)
My (very excellent) support depends on Windows Store and Mac App Store sales and Patreon support. Paying users, donors and everyone who contributes to FileBot in one way or another will get the very best support.

:idea: Please read the FAQ and How to Request Help.

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

Re: iNTERNAL in filename causing issues with rename.

Post by rednoah » 18 Dec 2017, 11:13

Please post the commands you use to reliably reproduce this issue. I may also need the files, assuming that it just doesn't work for those particular files.
My (very excellent) support depends on Windows Store and Mac App Store sales and Patreon support. Paying users, donors and everyone who contributes to FileBot in one way or another will get the very best support.

:idea: Please read the FAQ and How to Request Help.

ZeroByDivide
402
Posts: 135
Joined: 16 Dec 2014, 01:39

Re: iNTERNAL in filename causing issues with rename.

Post by ZeroByDivide » 21 Dec 2017, 09:35

Sorry it took me a day or two to get back to this, been busy the last 2 days so haven't had time to really sit down on my computer..anyways I'm giving up on this issue and have added the word "iNTERNAL" into my download blacklist because it seems like this will probably be something that will never get fixed as it's still happening, ended up having to do the same with the word "CONVERT" (again not another group name) as it seems to be causing the same issue as well..

So maybe like you said it might just be the video encoding application that they use or something (though that does not explain why media info works just fine in the GUI for the affected files)..

anyways like I said I'm giving up on this issue, unless someone else comes along that has the same issue..

ZeroByDivide
402
Posts: 135
Joined: 16 Dec 2014, 01:39

Re: iNTERNAL in filename causing issues with rename.

Post by ZeroByDivide » 25 Dec 2017, 20:04

You know I've been thinking, could part of the reason this is happening be because xattr keeps running into "Failed to read xattr: AccessControlException: access denied ("java.lang.RuntimePermission" "accessUserDefinedAttributes")" constantly? Because I've had this issue now happen on a show that doesn't have iNTERNAL in the name at all..

User avatar
devster
Posts: 148
Joined: 06 Jun 2017, 22:56

Re: iNTERNAL in filename causing issues with rename.

Post by devster » 31 Jan 2018, 08:33

If you have an "access denied" error somewhere is it possible that the extraction process makes the file unreadable by MediaInfo and therefore causes the issue?
Also, are these the only files you have that require extraction or is there another example which doesn't?

If push comes to shove and the extraction really seems to be critical you could also opt to extract files before and then pass them to FileBot, it's not optimal but you mentioned that there are no issues when using a .mkv file.
I only work in black and sometimes very, very dark grey. (Batman)

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

Re: iNTERNAL in filename causing issues with rename.

Post by rednoah » 31 Jan 2018, 08:40

Groovy format expressions are executed in a sandboxed environment, and older versions didn't white list the accessUserDefinedAttributes permission. This particular access control issue is an internal FileBot issue that has since been fixed and that fix will be part of the next release.
My (very excellent) support depends on Windows Store and Mac App Store sales and Patreon support. Paying users, donors and everyone who contributes to FileBot in one way or another will get the very best support.

:idea: Please read the FAQ and How to Request Help.

ZeroByDivide
402
Posts: 135
Joined: 16 Dec 2014, 01:39

Re: iNTERNAL in filename causing issues with rename.

Post by ZeroByDivide » 09 Mar 2018, 04:10

Well I can say for sure now that it's not due to xattr failing to read things, as it still seems to happen and I haven't had any issues with xattr being denied like before..

so far I have found out it happens with "iNTERNAL", "PROPER", "CONVERT". I had blacklisted "iNTERNAL" and "CONVERT" a while back but I can't go and blacklist "proper" for obvious reasons.

I have learned that it only seems to be affecting things like audio/video codecs, standard video format, and audio channels.. I'm honestly at a loss on why this is still happening and as usual it's only happening during CLI.

log =

Code: Select all

Run script [fn:amc] at [Thu Mar 08 21:00:08 CST 2018]
Parameter: excludeList = C:\Users\JourneyOver\Dropbox/Public/Folders/Filebot/logs/filebot-history.log
Parameter: music = false
Parameter: subtitles = en
Parameter: artwork = true
Parameter: extras = false
Parameter: storeReport = false
Parameter: skipExtract = false
Parameter: clean = true
Parameter: deleteAfterExtract = true
Parameter: plex = *****
Parameter: movieFormat = { import java.math.RoundingMode
  import net.filebot.Language
  def 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 directory
  {"Movies"}
  // Folder name
  {n.colon(" - ") + " [$y]"}
  { allOf
    // File name
    { 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
      { allOf{vf}{vc}.join(" ") }
      { def audioClean = { it.replaceAll(/[\p{Pd}\p{Space}]/, ' ').replaceAll(/\p{Space}{2,}/, ' ') }
        // map Codec + Format Profile
        def mCFP = [ "AC3" : "AC3",
                     "AC3+" : "E-AC3",
                     "AAC LC LC" : "AAC-LC",
                     "AAC LC SBR HE AAC LC": "HE-AAC" ]
        audio.collect { au ->
        def channels = any{ au['ChannelPositions/String2'] }{ au['Channel(s)_Original'] }{ au['Channel(s)'] }
        def ch = channels.replaceAll(/Object\sBased\s\/|0.(?=\d.\d)/, '')
                         .tokenize('\\/').take(3)*.toDouble()
                         .inject(0, { a, b -> a + b }).findAll { it > 0 }
                         .max().toBigDecimal().setScale(1, RoundingMode.HALF_UP).toString()
        def codec = audioClean(any{ au['CodecID/String'] }{ au['Codec/String'] }{ au['Codec'] })
        def format = any{ au['CodecID/Hint'] }{ au['Format'] }
        def format_profile = { if ( au['Format_Profile'] != null) audioClean(au['Format_Profile']) else '' }
        def combined = allOf{codec}{format_profile}.join(' ')
        def stream = allOf
                       { ch }
                       { mCFP.get(combined, format) }
                       { Language.findLanguage(au['Language']).ISO3.upperInitial() }
        return stream }*.join(" ").join(", ") }
        // logo-free release source finder
      { def websources = readLines("C:/Users/JourneyOver/Dropbox/Public/Folders/Filebot/websources.txt").join("|")
        def lfr = { fn.match(/($websources)\.(?i)WEB/) }
        return allOf{lfr}{"${self.source ?: 'WEB-DL'}"}.join(" ") }
      .join(" - ") }
    {"]"}
    {subt}
    .join("") }
  .join("/") }
Parameter: seriesFormat = { import java.math.RoundingMode
  import net.filebot.Language
  def 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 directory
  {"TV Shows"}
  // Folder name
  { norm(n).replaceAll(/(S.H.I.E.L.D.)/, " S.H.I.E.L.D ") }
  // Season Folder name
  { episode.special ? 'Specials' : 'Season ' + s.pad(2) }
  { allOf
    // File name
    { norm(n).replaceTrailingBrackets() }
    { episode.special ? 'S00E' + special.pad(2) : S00E00 }
    { allOf
      { norm(t).replacePart(' - Part $1') }
      { allOf
        { allOf
          {"["}
          { allOf
            // Video stream
            { allOf{vf}{vc}.join(" ") }
            { def audioClean = { it.replaceAll(/[\p{Pd}\p{Space}]/, ' ').replaceAll(/\p{Space}{2,}/, ' ') }
              // map Codec + Format Profile
              def mCFP = [ "AC3" : "AC3",
                           "AC3+" : "E-AC3",
                           "AAC LC LC" : "AAC-LC",
                           "AAC LC SBR HE AAC LC": "HE-AAC" ]
              audio.collect { au ->
              def channels = any{ au['ChannelPositions/String2'] }{ au['Channel(s)_Original'] }{ au['Channel(s)'] }
              def ch = channels.replaceAll(/Object\sBased\s\/|0.(?=\d.\d)/, '')
                               .tokenize('\\/').take(3)*.toDouble()
                               .inject(0, { a, b -> a + b }).findAll { it > 0 }
                               .max().toBigDecimal().setScale(1, RoundingMode.HALF_UP).toString()
              def codec = audioClean(any{ au['CodecID/String'] }{ au['Codec/String'] }{ au['Codec'] })
              def format = any{ au['CodecID/Hint'] }{ au['Format'] }
              def format_profile = { if ( au['Format_Profile'] != null) audioClean(au['Format_Profile']) else '' }
              def combined = allOf{codec}{format_profile}.join(' ')
              def stream = allOf
                             { ch }
                             { mCFP.get(combined, format) }
                             { Language.findLanguage(au['Language']).ISO3.upperInitial() }
              return stream }*.join(" ").join(", ") }
              // logo-free release source finder
            { def websources = readLines("C:/Users/JourneyOver/Dropbox/Public/Folders/Filebot/websources.txt").join("|")
              def lfr = { fn.match(/($websources)\.(?i)WEB/) }
              return allOf{lfr}{"${self.source ?: 'WEB-DL'}"}.join(" ") }
            .join(" - ") }
          {"]"}
          .join("") }
          {subt}
        .join("") }
      .join(" ") }
    .join(" - ") }
  .join("/") }
Parameter: animeFormat = { import java.math.RoundingMode
  import net.filebot.Language
  def norm = { it.replaceAll(/[`´‘’ʻ""“”]/, "'")
             .replaceAll(/(&#34;)/, "''")
             .replaceAll(/[:|]/, " - ")
             .replaceAll(/[?]/, "!")
             .replaceAll(/[*\s]+/, " ")
             .replaceAll(/\b[IiVvXx]+\b/, { it.upper() })
             .replaceAll(/\b[0-9](?i:th|nd|rd)\b/, { it.lower() }) }
allOf
  // Anime directory
  {"Anime"}
  // Folder name
  { norm(n) }
  // Season Folder name
  { episode.special ? 'Specials' : 'Season ' + s.pad(2) }
  { allOf
    // File name
    { norm(n).replaceTrailingBrackets() }
    { episode.special ? 'S00E' + special.pad(2) : S00E00 }
    { allOf
      { norm(t).replacePart(' - Part $1') }
      { allOf
        { allOf
          {"["}
          { allOf
            // Video stream
            { allOf{vf}{vc}.join(" ") }
            { def audioClean = { it.replaceAll(/[\p{Pd}\p{Space}]/, ' ').replaceAll(/\p{Space}{2,}/, ' ') }
              // map Codec + Format Profile
              def mCFP = [ "AC3" : "AC3",
                           "AC3+" : "E-AC3",
                           "AAC LC LC" : "AAC-LC",
                           "AAC LC SBR HE AAC LC": "HE-AAC" ]
              audio.collect { au ->
              def channels = any{ au['ChannelPositions/String2'] }{ au['Channel(s)_Original'] }{ au['Channel(s)'] }
              def ch = channels.replaceAll(/Object\sBased\s\/|0.(?=\d.\d)/, '')
                               .tokenize('\\/').take(3)*.toDouble()
                               .inject(0, { a, b -> a + b }).findAll { it > 0 }
                               .max().toBigDecimal().setScale(1, RoundingMode.HALF_UP).toString()
              def codec = audioClean(any{ au['CodecID/String'] }{ au['Codec/String'] }{ au['Codec'] })
              def format = any{ au['CodecID/Hint'] }{ au['Format'] }
              def format_profile = { if ( au['Format_Profile'] != null) audioClean(au['Format_Profile']) else '' }
              def combined = allOf{codec}{format_profile}.join(' ')
              def stream = allOf
                             { ch }
                             { mCFP.get(combined, format) }
                             { Language.findLanguage(au['Language']).ISO3.upperInitial() }
              return stream }*.join(" ").join(", ") }
              // logo-free release source finder
            { def websources = readLines("C:/Users/JourneyOver/Dropbox/Public/Folders/Filebot/websources.txt").join("|")
              def lfr = { fn.match(/($websources)\.(?i)WEB/) }
              return allOf{lfr}{"${self.source ?: 'WEB-DL'}"}.join(" ") }
            .join(" - ") }
          {"]"}
          .join("") }
          {subt}
        .join("") }
      .join(" ") }
    .join(" - ") }
  .join("/") }
Parameter: ut_label = sonarr
Parameter: ut_state = 
Parameter: ut_title = The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS
Parameter: ut_kind = multi
Parameter: ut_file = 
Parameter: ut_dir = C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS
Parameter: exec = filebot -script C:\Users\JourneyOver\Dropbox/Public/Folders/Filebot/Update_Sonarr_Radarr.groovy --def id={id}
Use excludes: C:\Users\JourneyOver\Dropbox\Public\Folders\Filebot\logs\filebot-history.log
Read archive [the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.rar] and extract to [C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS]
Extracting files [C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS.mkv]
Input: C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS.mkv
Group: [tvs:the big bang theory] => [The.Big.Bang.Theory.S11E17.PROPER.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\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS.mkv
Rename episodes using [TheTVDB]
Auto-detected query: [The Big Bang Theory]
Fetching episode data for [The Big Bang Theory]
Apply filter [any{ age < 35 }{ airdate ? true : false }] on [255] items
Include [The Big Bang Theory - 11x16 - The Neonatal Nomenclature]
Include [The Big Bang Theory - 11x17 - The Athenaeum Allocation]
Include [The Big Bang Theory - 11x18 - The Gates Excitation]
Include [The Big Bang Theory - 11x19 - The Tenant Disassociation]
[MOVE] from [C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS.mkv] to [D:\Media\TV Shows\The Big Bang Theory\Season 11\The Big Bang Theory - S11E17 - The Athenaeum Allocation [HDTV].mkv]
Processed 1 files
Fetching series artwork for [The Big Bang Theory / Season 11] to [D:\Media\TV Shows\The Big Bang Theory\Season 11]
Generate Series NFO: The Big Bang Theory [80379]
Banner already exists: D:\Media\TV Shows\The Big Bang Theory\poster.jpg
Banner already exists: D:\Media\TV Shows\The Big Bang Theory\banner.jpg
Banner already exists: D:\Media\TV Shows\The Big Bang Theory\fanart.jpg
Banner already exists: D:\Media\TV Shows\The Big Bang Theory\Season 11\poster.jpg
Banner not found: D:\Media\TV Shows\The Big Bang Theory\Season 11\banner.jpg / seasonwide:seasonwide
Fanart already exists: D:\Media\TV Shows\The Big Bang Theory\clearart.png
Fanart already exists: D:\Media\TV Shows\The Big Bang Theory\logo.png
Fanart already exists: D:\Media\TV Shows\The Big Bang Theory\landscape.jpg
Fanart not found: D:\Media\TV Shows\The Big Bang Theory\Season 11\landscape.jpg / seasonthumb
Execute: filebot -script C:\Users\JourneyOver\Dropbox/Public/Folders/Filebot/Update_Sonarr_Radarr.groovy --def id=80379
Notify Plex: [host:localhost, token:]
GET: http://localhost:32400/library/sections/all/refresh?X-Plex-Token=
Delete archive C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.rar
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.r00
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.r01
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.r02
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.r03
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.r04
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.r05
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.r06
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.r07
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.r08
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.r09
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.r10
Clean clutter files and empty folders
Delete C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.nfo
Delete C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.sfv
Delete C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS
Delete C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers
Delete C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS
Done ヾ(@⌒ー⌒@)ノ
My format for TV shows is posted below,

TV.groovy =

Code: Select all

{ import java.math.RoundingMode
  import net.filebot.Language
  def 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 directory
  {"TV Shows"}
  // Folder name
  { norm(n).replaceAll(/(S.H.I.E.L.D.)/, " S.H.I.E.L.D ") }
  // Season Folder name
  { episode.special ? 'Specials' : 'Season ' + s.pad(2) }
  { allOf
    // File name
    { norm(n).replaceTrailingBrackets() }
    { episode.special ? 'S00E' + special.pad(2) : S00E00 }
    { allOf
      { norm(t).replacePart(' - Part $1') }
      { allOf
        { allOf
          {"["}
          { allOf
            // Video stream
            { allOf{vf}{vc}.join(" ") }
            { def audioClean = { it.replaceAll(/[\p{Pd}\p{Space}]/, ' ').replaceAll(/\p{Space}{2,}/, ' ') }
              // map Codec + Format Profile
              def mCFP = [ "AC3" : "AC3",
                           "AC3+" : "E-AC3",
                           "AAC LC LC" : "AAC-LC",
                           "AAC LC SBR HE AAC LC": "HE-AAC" ]
              audio.collect { au ->
              def channels = any{ au['ChannelPositions/String2'] }{ au['Channel(s)_Original'] }{ au['Channel(s)'] }
              def ch = channels.replaceAll(/Object\sBased\s\/|0.(?=\d.\d)/, '')
                               .tokenize('\\/').take(3)*.toDouble()
                               .inject(0, { a, b -> a + b }).findAll { it > 0 }
                               .max().toBigDecimal().setScale(1, RoundingMode.HALF_UP).toString()
              def codec = audioClean(any{ au['CodecID/String'] }{ au['Codec/String'] }{ au['Codec'] })
              def format = any{ au['CodecID/Hint'] }{ au['Format'] }
              def format_profile = { if ( au['Format_Profile'] != null) audioClean(au['Format_Profile']) else '' }
              def combined = allOf{codec}{format_profile}.join(' ')
              def stream = allOf
                             { ch }
                             { mCFP.get(combined, format) }
                             { Language.findLanguage(au['Language']).ISO3.upperInitial() }
              return stream }*.join(" ").join(", ") }
              // logo-free release source finder
            { def websources = readLines("C:/Users/JourneyOver/Dropbox/Public/Folders/Filebot/websources.txt").join("|")
              def lfr = { fn.match(/($websources)\.(?i)WEB/) }
              return allOf{lfr}{"${self.source ?: 'WEB-DL'}"}.join(" ") }
            .join(" - ") }
          {"]"}
          .join("") }
          {subt}
        .join("") }
      .join(" ") }
    .join(" - ") }
  .join("/") }
and my sysinfo =

Code: Select all

FileBot 4.7.29 (r5311)
JNA Native: 5.2.0
MediaInfo: 0.7.99
7-Zip-JBinding: 9.20
Chromaprint: 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2018-03-03 (r514)
Groovy: 2.4.13
JRE: Java(TM) SE Runtime Environment 9.0.4
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 6 Core / 1 GB Max Memory / 36 MB Used Memory
OS: Windows 10 (amd64)
Package: APPX
uname: MSYS_NT-10.0 DESKTOP-V6FPU1E 2.9.0(0.318/5/3) 2018-01-12 23:37 x86_64 Msys
Done ?(?????)?
Last edited by ZeroByDivide on 09 Mar 2018, 04:14, edited 1 time in total.

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

Re: iNTERNAL in filename causing issues with rename.

Post by rednoah » 09 Mar 2018, 04:14

Could you reduce your format to the bare minimum required to reproduce this issue? I would appreciate a simple test case that I can run to reproduce the problem.
My (very excellent) support depends on Windows Store and Mac App Store sales and Patreon support. Paying users, donors and everyone who contributes to FileBot in one way or another will get the very best support.

:idea: Please read the FAQ and How to Request Help.

ZeroByDivide
402
Posts: 135
Joined: 16 Dec 2014, 01:39

Re: iNTERNAL in filename causing issues with rename.

Post by ZeroByDivide » 09 Mar 2018, 04:23

I'll try but I'm not the one who exactly created the format, 99% of my format was from devster and I just changed a few things on my end but I'll see if I can try to reduce it to the bare minimum required.

ZeroByDivide
402
Posts: 135
Joined: 16 Dec 2014, 01:39

Re: iNTERNAL in filename causing issues with rename.

Post by ZeroByDivide » 09 Mar 2018, 04:51

So this was about as far down as I could trim the format without it just breaking the format completely.

Code: Select all

{ import java.math.RoundingMode
  import net.filebot.Language
allOf
  // TV Shows directory
  {"TV Shows"}
  { allOf
    { episode.special ? 'S00E' + special.pad(2) : S00E00 }
    { allOf
      { norm(t).replacePart(' - Part $1') }
      { allOf
        { allOf
          {"["}
          { allOf
            // Video stream
            { allOf{vf}{vc}.join(" ") }
            { def audioClean = { it.replaceAll(/[\p{Pd}\p{Space}]/, ' ').replaceAll(/\p{Space}{2,}/, ' ') }
              // map Codec + Format Profile
              def mCFP = [ "AC3" : "AC3",
                           "AC3+" : "E-AC3",
                           "AAC LC LC" : "AAC-LC",
                           "AAC LC SBR HE AAC LC": "HE-AAC" ]
              audio.collect { au ->
              def channels = any{ au['ChannelPositions/String2'] }{ au['Channel(s)_Original'] }{ au['Channel(s)'] }
              def ch = channels.replaceAll(/Object\sBased\s\/|0.(?=\d.\d)/, '')
                               .tokenize('\\/').take(3)*.toDouble()
                               .inject(0, { a, b -> a + b }).findAll { it > 0 }
                               .max().toBigDecimal().setScale(1, RoundingMode.HALF_UP).toString()
              def codec = audioClean(any{ au['CodecID/String'] }{ au['Codec/String'] }{ au['Codec'] })
              def format = any{ au['CodecID/Hint'] }{ au['Format'] }
              def format_profile = { if ( au['Format_Profile'] != null) audioClean(au['Format_Profile']) else '' }
              def combined = allOf{codec}{format_profile}.join(' ')
              def stream = allOf
                             { ch }
                             { mCFP.get(combined, format) }
                             { Language.findLanguage(au['Language']).ISO3.upperInitial() }
              return stream }*.join(" ").join(", ") }
            .join(" - ") }
          {"]"}
          .join("") }
          {subt}
        .join("") }
      .join(" ") }
    .join(" - ") }
  .join("/") }
log =

Code: Select all

Run script [fn:amc] at [Thu Mar 08 22:40:49 CST 2018]
Parameter: excludeList = C:\Users\JourneyOver\Dropbox/Public/Folders/Filebot/logs/filebot-history.log
Parameter: music = false
Parameter: subtitles = en
Parameter: artwork = true
Parameter: extras = false
Parameter: storeReport = false
Parameter: skipExtract = false
Parameter: clean = true
Parameter: deleteAfterExtract = true
Parameter: plex = *****
Parameter: seriesFormat = { import java.math.RoundingMode
  import net.filebot.Language
allOf
  // TV Shows directory
  {"TV Shows"}
  { allOf
    { episode.special ? 'S00E' + special.pad(2) : S00E00 }
    { allOf
      { norm(t).replacePart(' - Part $1') }
      { allOf
        { allOf
          {"["}
          { allOf
            // Video stream
            { allOf{vf}{vc}.join(" ") }
            { def audioClean = { it.replaceAll(/[\p{Pd}\p{Space}]/, ' ').replaceAll(/\p{Space}{2,}/, ' ') }
              // map Codec + Format Profile
              def mCFP = [ "AC3" : "AC3",
                           "AC3+" : "E-AC3",
                           "AAC LC LC" : "AAC-LC",
                           "AAC LC SBR HE AAC LC": "HE-AAC" ]
              audio.collect { au ->
              def channels = any{ au['ChannelPositions/String2'] }{ au['Channel(s)_Original'] }{ au['Channel(s)'] }
              def ch = channels.replaceAll(/Object\sBased\s\/|0.(?=\d.\d)/, '')
                               .tokenize('\\/').take(3)*.toDouble()
                               .inject(0, { a, b -> a + b }).findAll { it > 0 }
                               .max().toBigDecimal().setScale(1, RoundingMode.HALF_UP).toString()
              def codec = audioClean(any{ au['CodecID/String'] }{ au['Codec/String'] }{ au['Codec'] })
              def format = any{ au['CodecID/Hint'] }{ au['Format'] }
              def format_profile = { if ( au['Format_Profile'] != null) audioClean(au['Format_Profile']) else '' }
              def combined = allOf{codec}{format_profile}.join(' ')
              def stream = allOf
                             { ch }
                             { mCFP.get(combined, format) }
                             { Language.findLanguage(au['Language']).ISO3.upperInitial() }
              return stream }*.join(" ").join(", ") }
            .join(" - ") }
          {"]"}
          .join("") }
          {subt}
        .join("") }
      .join(" ") }
    .join(" - ") }
  .join("/") }
Parameter: ut_label = 
Parameter: ut_state = 
Parameter: ut_title = The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS
Parameter: ut_kind = multi
Parameter: ut_file = 
Parameter: ut_dir = C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS
Parameter: exec = filebot -script C:\Users\JourneyOver\Dropbox/Public/Folders/Filebot/Update_Sonarr_Radarr.groovy --def id={id}
Use excludes: C:\Users\JourneyOver\Dropbox\Public\Folders\Filebot\logs\filebot-history.log
Read archive [the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.rar] and extract to [C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS]
Extracting files [C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS.mkv]
Input: C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS.mkv
Group: [tvs:the big bang theory] => [The.Big.Bang.Theory.S11E17.PROPER.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\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS.mkv
Rename episodes using [TheTVDB]
Auto-detected query: [The Big Bang Theory]
Fetching episode data for [The Big Bang Theory]
Apply filter [any{ age < 35 }{ airdate ? true : false }] on [255] items
Include [The Big Bang Theory - 11x16 - The Neonatal Nomenclature]
Include [The Big Bang Theory - 11x17 - The Athenaeum Allocation]
Include [The Big Bang Theory - 11x18 - The Gates Excitation]
Include [The Big Bang Theory - 11x19 - The Tenant Disassociation]
[MOVE] from [C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS.mkv] to [D:\Media\TV Shows\S11E17 - [].mkv]
Processed 1 files
Fetching series artwork for [The Big Bang Theory / Season 11] to [D:\Media\TV Shows]
Generate Series NFO: The Big Bang Theory [80379]
Fetching D:\Media\TV Shows\poster.jpg => [poster/680x1000, en, 7.1, https://thetvdb.com/banners/posters/80379-43.jpg]
Fetching D:\Media\TV Shows\banner.jpg => [series/graphical, en, 8.6, https://thetvdb.com/banners/graphical/80379-g28.jpg]
Fetching D:\Media\TV Shows\fanart.jpg => [fanart/graphical/1920x1080, en, 7.2, https://thetvdb.com/banners/fanart/original/80379-34.jpg]
Fetching D:\Media\TV Shows\clearart.png => [hdclearart, en, 12.0, https://assets.fanart.tv/fanart/tv/80379/hdclearart/the-big-bang-theory-519818ab2d8a9.png]
Fetching D:\Media\TV Shows\logo.png => [hdtvlogo, en, 13.0, https://assets.fanart.tv/fanart/tv/80379/hdtvlogo/the-big-bang-theory-50477a642f672.png]
Fetching D:\Media\TV Shows\landscape.jpg => [tvthumb, en, 6.0, https://assets.fanart.tv/fanart/tv/80379/tvthumb/T_80379 (0).jpg]
Execute: filebot -script C:\Users\JourneyOver\Dropbox/Public/Folders/Filebot/Update_Sonarr_Radarr.groovy --def id=80379
Notify Plex: [host:localhost, token:]
GET: http://localhost:32400/library/sections/all/refresh?X-Plex-Token=
Delete archive C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.rar
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.r00
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.r01
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.r02
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.r03
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.r04
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.r05
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.r06
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.r07
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.r08
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.r09
Delete archive volume C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.r10
Clean clutter files and empty folders
Delete C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.nfo
Delete C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.sfv
Delete C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS
Delete C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers
Delete C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS
Done ヾ(@⌒ー⌒@)ノ
as you can see it didn't add any audio/video codes, standard video format, nor audio channels.

doing a

Code: Select all

filebot -mediainfo
on the file provides

Code: Select all

1280x718 x264 5.1 AC3
so it should be putting

Code: Select all

720p x264 - 5.1 AC3
in the brackets.

Again it only seems to be happening when a file has to be extracted that has those keywords in the filename, if I download a one that isn't zipped/rared up at all or I extract the file before filebot runs it seems to produce the audio/video codes, standard video format, nor audio channels just fine when renaming the file through CLI.

Log === This is the same file but I just extracted it before I ran filebot this time

Code: Select all

Run script [fn:amc] at [Thu Mar 08 23:09:23 CST 2018]
Parameter: excludeList = C:\Users\JourneyOver\Dropbox/Public/Folders/Filebot/logs/filebot-history.log
Parameter: music = false
Parameter: subtitles = en
Parameter: artwork = true
Parameter: extras = false
Parameter: storeReport = false
Parameter: skipExtract = false
Parameter: clean = true
Parameter: deleteAfterExtract = true
Parameter: plex = *****
Parameter: seriesFormat = { import java.math.RoundingMode
  import net.filebot.Language
allOf
  // TV Shows directory
  {"TV Shows"}
  { allOf
    { episode.special ? 'S00E' + special.pad(2) : S00E00 }
    { allOf
      { norm(t).replacePart(' - Part $1') }
      { allOf
        { allOf
          {"["}
          { allOf
            // Video stream
            { allOf{vf}{vc}.join(" ") }
            { def audioClean = { it.replaceAll(/[\p{Pd}\p{Space}]/, ' ').replaceAll(/\p{Space}{2,}/, ' ') }
              // map Codec + Format Profile
              def mCFP = [ "AC3" : "AC3",
                           "AC3+" : "E-AC3",
                           "AAC LC LC" : "AAC-LC",
                           "AAC LC SBR HE AAC LC": "HE-AAC" ]
              audio.collect { au ->
              def channels = any{ au['ChannelPositions/String2'] }{ au['Channel(s)_Original'] }{ au['Channel(s)'] }
              def ch = channels.replaceAll(/Object\sBased\s\/|0.(?=\d.\d)/, '')
                               .tokenize('\\/').take(3)*.toDouble()
                               .inject(0, { a, b -> a + b }).findAll { it > 0 }
                               .max().toBigDecimal().setScale(1, RoundingMode.HALF_UP).toString()
              def codec = audioClean(any{ au['CodecID/String'] }{ au['Codec/String'] }{ au['Codec'] })
              def format = any{ au['CodecID/Hint'] }{ au['Format'] }
              def format_profile = { if ( au['Format_Profile'] != null) audioClean(au['Format_Profile']) else '' }
              def combined = allOf{codec}{format_profile}.join(' ')
              def stream = allOf
                             { ch }
                             { mCFP.get(combined, format) }
                             { Language.findLanguage(au['Language']).ISO3.upperInitial() }
              return stream }*.join(" ").join(", ") }
            .join(" - ") }
          {"]"}
          .join("") }
          {subt}
        .join("") }
      .join(" ") }
    .join(" - ") }
  .join("/") }
Parameter: ut_label = sonarr
Parameter: ut_state = 
Parameter: ut_title = The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS
Parameter: ut_kind = multi
Parameter: ut_file = 
Parameter: ut_dir = C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS
Parameter: exec = filebot -script C:\Users\JourneyOver\Dropbox/Public/Folders/Filebot/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\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS.mkv
Group: [tvs:the big bang theory] => [The.Big.Bang.Theory.S11E17.PROPER.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\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS.mkv
Rename episodes using [TheTVDB]
Auto-detected query: [The Big Bang Theory]
Fetching episode data for [The Big Bang Theory]
Apply filter [any{ age < 35 }{ airdate ? true : false }] on [255] items
Include [The Big Bang Theory - 11x16 - The Neonatal Nomenclature]
Include [The Big Bang Theory - 11x17 - The Athenaeum Allocation]
Include [The Big Bang Theory - 11x18 - The Gates Excitation]
Include [The Big Bang Theory - 11x19 - The Tenant Disassociation]
[MOVE] from [C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS.mkv] to [D:\Media\TV Shows\S11E17 - [720p x264 - 5.1 AC3].mkv]
Processed 1 files
Fetching series artwork for [The Big Bang Theory / Season 11] to [D:\Media\TV Shows]
Generate Series NFO: The Big Bang Theory [80379]
Fetching D:\Media\TV Shows\poster.jpg => [poster/680x1000, en, 7.1, https://thetvdb.com/banners/posters/80379-43.jpg]
Fetching D:\Media\TV Shows\banner.jpg => [series/graphical, en, 8.6, https://thetvdb.com/banners/graphical/80379-g28.jpg]
Fetching D:\Media\TV Shows\fanart.jpg => [fanart/graphical/1920x1080, en, 7.2, https://thetvdb.com/banners/fanart/original/80379-34.jpg]
Fetching D:\Media\TV Shows\clearart.png => [hdclearart, en, 12.0, https://assets.fanart.tv/fanart/tv/80379/hdclearart/the-big-bang-theory-519818ab2d8a9.png]
Fetching D:\Media\TV Shows\logo.png => [hdtvlogo, en, 13.0, https://assets.fanart.tv/fanart/tv/80379/hdtvlogo/the-big-bang-theory-50477a642f672.png]
Fetching D:\Media\TV Shows\landscape.jpg => [tvthumb, en, 6.0, https://assets.fanart.tv/fanart/tv/80379/tvthumb/T_80379 (0).jpg]
Execute: filebot -script C:\Users\JourneyOver\Dropbox/Public/Folders/Filebot/Update_Sonarr_Radarr.groovy --def id=80379
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\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.nfo
Delete C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.sfv
Delete C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS
Done ヾ(@⌒ー⌒@)ノ

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

Re: iNTERNAL in filename causing issues with rename.

Post by rednoah » 09 Mar 2018, 05:39

Sorry, but I really need a simple example. You'll have to narrow down the issue to something more concrete before I can have a look.


:arrow: a simple filebot -rename call (without any additional options not relevant to the issue at hand)

:arrow: a simple format (that contains only code relevant for reproducing the issue)


e.g. if I wanted to show that MediaInfo bindings {vf} {vc} {ac} {af} don't work, I'd submit a test case such as this:

Code: Select all

filebot -rename The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS.mkv --db TheTVDB --action TEST --format "{vf} {vc} {ac} {af}"

Code: Select all

Rename episodes using [TheTVDB]
Auto-detected query: [The Big Bang Theory]
Fetching episode data for [The Big Bang Theory]
[TEST] From [The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS.mkv] to [480p x264 AC3 2ch.mkv]
Processed 1 files
My (very excellent) support depends on Windows Store and Mac App Store sales and Patreon support. Paying users, donors and everyone who contributes to FileBot in one way or another will get the very best support.

:idea: Please read the FAQ and How to Request Help.

ZeroByDivide
402
Posts: 135
Joined: 16 Dec 2014, 01:39

Re: iNTERNAL in filename causing issues with rename.

Post by ZeroByDivide » 09 Mar 2018, 06:50

rednoah wrote:
09 Mar 2018, 05:39
Sorry, but I really need a simple example. You'll have to narrow down the issue to something more concrete before I can have a look.


:arrow: a simple filebot -rename call (without any additional options not relevant to the issue at hand)

:arrow: a simple format (that contains only code relevant for reproducing the issue)


e.g. if I wanted to show that MediaInfo bindings {vf} {vc} {ac} {af} don't work, I'd submit a test case such as this:

Code: Select all

filebot -rename The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS.mkv --db TheTVDB --action TEST --format "{vf} {vc} {ac} {af}"

Code: Select all

Rename episodes using [TheTVDB]
Auto-detected query: [The Big Bang Theory]
Fetching episode data for [The Big Bang Theory]
[TEST] From [The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS.mkv] to [480p x264 AC3 2ch.mkv]
Processed 1 files
This time I pretty much deleted everything and just made the format

Code: Select all

{n} - {s00e00} - {t} {vf} {vc} {ac} {af}
for some reason I couldn't just pass

Code: Select all

{vf} {vc} {ac} {af}
because it ended up throwing an
InvocationTargetException
error on rename.

Code: Select all

Run script [fn:amc] at [Fri Mar 09 00:41:18 CST 2018]
Parameter: excludeList = C:\Users\JourneyOver\Dropbox/Public/Folders/Filebot/logs/filebot-history.log
Parameter: skipExtract = false
Parameter: seriesFormat = {n} - {s00e00} - {t} {vf} {vc} {ac} {af}
Parameter: ut_label = 
Parameter: ut_state = 
Parameter: ut_title = The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS
Parameter: ut_kind = multi
Parameter: ut_file = 
Parameter: ut_dir = C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS
Use excludes: C:\Users\JourneyOver\Dropbox\Public\Folders\Filebot\logs\filebot-history.log
Read archive [the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers.rar] and extract to [C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS]
Extracting files [C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS.mkv]
Input: C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS.mkv
Group: [tvs:the big bang theory] => [The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [The Big Bang Theory]
Fetching episode data for [The Big Bang Theory]
[TEST] from [C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\the.big.bang.theory.s11e17.proper.720p.hdtv.x264-killers\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS\The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS.mkv] to [D:\Media\The Big Bang Theory - S11E17 - The Athenaeum Allocation.mkv]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ
once again as you can see in the test from [blah blah blah] to [blah blah] it didn't include anything for the {vf} {vc} {ac} {af} if you want we can set up a teamviewer if you want to take a better look at things from my end / I joined the filebot discord as well..

Edit: and here is another one, same as above (this one has the word "iNTERNAL" in it)

Code: Select all

Run script [fn:amc] at [Fri Mar 09 01:01:08 CST 2018]
Parameter: excludeList = C:\Users\JourneyOver\Dropbox/Public/Folders/Filebot/logs/filebot-history.log
Parameter: skipExtract = false
Parameter: seriesFormat = {n} - {s00e00} - {t} {vf} {vc} {ac} {af}
Parameter: ut_label = 
Parameter: ut_state = 
Parameter: ut_title = The.Big.Bang.Theory.S11E17.iNTERNAL.720p.WEB.x264-BAMBOOZLE
Parameter: ut_kind = multi
Parameter: ut_file = 
Parameter: ut_dir = C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.iNTERNAL.720p.WEB.x264-BAMBOOZLE
Use excludes: C:\Users\JourneyOver\Dropbox\Public\Folders\Filebot\logs\filebot-history.log
Read archive [the.big.bang.theory.s11e17.internal.720p.web.x264-bamboozle.rar] and extract to [C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.big.bang.theory.s11e17.internal.720p.web.x264-bamboozle\The.Big.Bang.Theory.S11E17.iNTERNAL.720p.WEB.x264-BAMBOOZLE]
Extracting files [C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.big.bang.theory.s11e17.internal.720p.web.x264-bamboozle\The.Big.Bang.Theory.S11E17.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.big.bang.theory.s11e17.internal.720p.web.x264-bamboozle.mkv]
Input: C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.big.bang.theory.s11e17.internal.720p.web.x264-bamboozle\The.Big.Bang.Theory.S11E17.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.big.bang.theory.s11e17.internal.720p.web.x264-bamboozle.mkv
Group: [tvs:the big bang theory] => [the.big.bang.theory.s11e17.internal.720p.web.x264-bamboozle.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [The Big Bang Theory]
Fetching episode data for [The Big Bang Theory]
[TEST] from [C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.big.bang.theory.s11e17.internal.720p.web.x264-bamboozle\The.Big.Bang.Theory.S11E17.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.big.bang.theory.s11e17.internal.720p.web.x264-bamboozle.mkv] to [D:\Media\The Big Bang Theory - S11E17 - The Athenaeum Allocation.mkv]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ

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

Re: iNTERNAL in filename causing issues with rename.

Post by rednoah » 09 Mar 2018, 07:16

Please run these commands and post the output:

Code: Select all

filebot -mediainfo the.big.bang.theory.s11e17.internal.720p.web.x264-bamboozle.mkv --format "{fn} = {vc} {ac}"

Code: Select all

filebot -rename the.big.bang.theory.s11e17.internal.720p.web.x264-bamboozle.mkv --format "{fn} = {vc} {ac} --action TEST"
We can also talk on Discord and make TeamViewer work:
https://discordapp.com/channels/2287231 ... 7376977920
My (very excellent) support depends on Windows Store and Mac App Store sales and Patreon support. Paying users, donors and everyone who contributes to FileBot in one way or another will get the very best support.

:idea: Please read the FAQ and How to Request Help.

ZeroByDivide
402
Posts: 135
Joined: 16 Dec 2014, 01:39

Re: iNTERNAL in filename causing issues with rename.

Post by ZeroByDivide » 09 Mar 2018, 07:17

okay so I just found something which confuses me even more...

if I do

Code: Select all

filebot -extract C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.big.bang.theory.s11e17.internal.720p.web.x264-bamboozle.rar -rename C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.big.bang.theory.s11e17.internal.720p.web.x264-bamboozle --db TheTVDB --action TEST --format "{vf} {vc} {ac} {af}"
in command prompt it works just fine and extracts/renames the file correctly going by what it says in the output..

Code: Select all

Read archive [the.big.bang.theory.s11e17.internal.720p.web.x264-bamboozle.rar] and extract to [C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.big.bang.theory.s11e17.internal.720p.web.x264-bamboozle]
Extracting files [C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.big.bang.theory.s11e17.internal.720p.web.x264-bamboozle\the.big.bang.theory.s11e17.internal.720p.web.x264-bamboozle.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [The Big Bang Theory]
Fetching episode data for [The Big Bang Theory]
[TEST] from [C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.big.bang.theory.s11e17.internal.720p.web.x264-bamboozle\the.big.bang.theory.s11e17.internal.720p.web.x264-bamboozle.mkv] to [C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.big.bang.theory.s11e17.internal.720p.web.x264-bamboozle\720p x264 AAC 2ch.mkv]
[TEST] from [C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.iNTERNAL.720p.WEB.x264-BAMBOOZLE\the.big.bang.theory.s11e17.internal.720p.web.x264-bamboozle.rar] to [C:\Users\JourneyOver\Desktop\QBT\The.Big.Bang.Theory.S11E17.iNTERNAL.720p.WEB.x264-BAMBOOZLE\720p x264 AAC 2ch.rar]
Processed 2 files
So now I don't know what the hell is going on O_o

ZeroByDivide
402
Posts: 135
Joined: 16 Dec 2014, 01:39

Re: iNTERNAL in filename causing issues with rename.

Post by ZeroByDivide » 09 Mar 2018, 09:12

Gah I just dunno... Next time I catch you on do you think we can actually do the teamviewer thing since we didn't do it a while ago and you went poof on discord and maybe we can get to the bottom of all this? :x I'm going to keep the files on my computer that I'm running the tests with so that I don't have to go redownload everything before hand.

Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 4 guests