Need help getting automation going

Running FileBot from the console, Groovy scripting, shell scripts, etc
twig123
Posts: 10
Joined: 03 Oct 2012, 01:54

Need help getting automation going

Post by twig123 »

Hi All,

Filebot and Groovy are both new to me, however they seem powerful enough to do everything I need.
I've been trying to use this http://filebot.sourceforge.net/forums/v ... ?f=4&t=215 script, but running into some issues.

There are a couple changes that I would need to make in order for the script to suit my needs.
What I need to change/Do:
Handle problem TV Series names, maybe with hardcoded names or from a list (Ex: "Rizolli and Isles" needs to be "Rizzoli & Isles", and others of the like).
Organize the files slightly differently (TV/Series/Series - Season/Series.01x02.-.Episode.Name)
---The GUI lists the filename syntax is: {n.space('.')}.{s.pad(2)}x{e.pad(2)}.-.{t.space('.')}
If possible, I would also like the script to download Episode & Season art in addition to xml data compatible with the WD TV Live Hub.

I tried messing around with the file/folder naming on the "def config = group.tvs" line, but all I get is errors when I change the syntax...

Any help would be greatly appreciated!
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Need help getting automation going

Post by rednoah »

It probably wouldn't be that hard, but you'll need to have a good grip on Groovy first. It's easy for people from the Java world but without some experience it'll be very hard.



Btw it might be time to add a shared index of synonyms to build that logic into FileBot to work around external API inadequacies.

e.g.
HIMYM => How I Met your Mother
Rizolli and Isles => Rizolli & Isles
Boss => Boss (2011) not BOSS (2008)

Something like that. In anyway I'd need support from the community for that...
:idea: Please read the FAQ and How to Request Help.
twig123
Posts: 10
Joined: 03 Oct 2012, 01:54

Re: Need help getting automation going

Post by twig123 »

Here are a few more examples:
Once Upon a Time => Once Upon a Time (2011)
Revolution => Revolution (2012)

This would be a start, but I think that just adding a few examples and allowing for users to specify additional entries would work great.
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Need help getting automation going

Post by rednoah »

Added a new step to the matching logic to make it prefer episodes/file matches where delta between file-lastModifiedDate and episode-airdate is smallest.

That'll fix BOSS (2008) VS Boss (2011) given that the file was created around 2012 (where Boss 2011 2x02 was aired) and not around 2011 (where BOSS 2008 2x02 was aired). Same logic will fix all similar cases.

Fixed with r1224.
:idea: Please read the FAQ and How to Request Help.
twig123
Posts: 10
Joined: 03 Oct 2012, 01:54

Re: Need help getting automation going

Post by twig123 »

rednoah wrote:Fixed with r1224.
Sorry for being a noob... but r1224, of what?
Is this an update to FileBot or a script? (where to I get/test this?)
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Need help getting automation going

Post by rednoah »

FileBot revision 1224, uploaded a build for testing here:
https://sourceforge.net/projects/filebo ... ebot/HEAD/
:idea: Please read the FAQ and How to Request Help.
twig123
Posts: 10
Joined: 03 Oct 2012, 01:54

Re: Need help getting automation going

Post by twig123 »

Just tested out r1227 with the utorrent-postprocess.groovy script.
Seems to be working better with detections, but still missing some series.

Series I've tried & Status:

Code: Select all

===Works with===
Alphas
Ancient Aliens
Arrow
Fringe
Grim
NCIS
Stephen Hawking's Grand Desing
The Looney Tunes Show (2011)
The Walking Dead
Through the Wormhole
Weeds

===Not Working===
Dark Matters
Merlin
Once Upon a Time
Revolution
Rizzoli and Isles
Spartacus
Sample file names of non-working:

Code: Select all

dark.matters.twisted.but.true.s02e02.720p.hdtv.x264.mkv
merlin.4x02.the_darkest_hour.720p_hdtv_x264.mkv
Once.Upon.a.Time.S02E01.720p.HDTV.X264.mkv
Revolution.S01E01.720p.HDTV.X264.mkv
Rizzoli.and.Isles.S03E01.720p.HDTV.X264.mkv
Spartacus.S02E01.720p.HDTV.X264.mkv
I'm having trouble with the episode naming in the Groovy script. Currently, I slightly modified it to:

Code: Select all

def config = group.tvs ? [name: group.tvs,   format:'TV Shows/{n}/{n} - {episode.special ? "Special" : "Season "+s}/{n}.{episode.special ? "S00E"+special.pad(2) : s00e00}.-.{t}', db:'TheTVDB']
However, I would like to use periods in the episode name and title instead of spaces. When I change {n} to {n.space('.')} or {t} to {t.space('.')}... FileBot craps out and doesn't process anything. How do I use '.' instead of spaces in the groovy script?

Shows should be:

Code: Select all

Dark Matters => ???
Merlin => Merlin (2008)
Once Upon a Time => Once Upon a Time (2011)
Revolution => Revolution (2012)

Rizzoli and Isles => (says: Exception: Handling multiple shows requires non-strict matching)
Spartacus => (Not sure how to handle this one as every season has a different name, but it is TheTVDB Show ID 129261)
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Need help getting automation going

Post by rednoah »

1. TheTVDB lookup failes with 'dark matters twisted but true' => Added an alias mapping

Code: Select all

Dark.Matters.Twisted.But.True => Dark Matters
Wait 24h for it to update itself with the new mappings and you'll get this:

Code: Select all

Rename [twisted.but.true.s02e02.720p.hdtv.x264.avi] to [Dark Matters - S02E02 - Resurrection Row, Operation Brainwash, Rabid Roulette.avi]
2. Works!

Code: Select all

Rename [merlin.4x02.the_darkest_hour.720p_hdtv_x264.avi] to [Merlin (2008) - S04E02 - The Darkest Hour (2).avi]
3. Works!

Code: Select all

Rename [Once.Upon.a.Time.S02E01.720p.HDTV.X264.avi] to [Once Upon a Time (2011) - S02E01 - Broken.avi]
4. Works! TheTVDB only has one show called 'Revolution' and it's the 2012 one => http://thetvdb.com/?tab=series&id=258823

Code: Select all

Rename [Revolution.S01E01.720p.HDTV.X264.avi] to [Revolution - S01E01 - Pilot.avi]
5. Works!

Code: Select all

Rename [Rizzoli.and.Isles.S03E01.720p.HDTV.X264.avi] to [Rizzoli & Isles - S03E01 - What Doesn't Kill You.avi]
6. Works!

Code: Select all

Rename [Spartacus.S02E01.720p.HDTV.X264.avi] to [Spartacus Blood and Sand - S02E01 - Fugitivus.avi]
Here's the full log:
http://pastebin.com/Dpzj24Xu
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Need help getting automation going

Post by rednoah »

twig123 wrote: I'm having trouble with the episode naming in the Groovy script. Currently, I slightly modified it to:

Code: Select all

def config = group.tvs ? [name: group.tvs,   format:'TV Shows/{n}/{n} - {episode.special ? "Special" : "Season "+s}/{n}.{episode.special ? "S00E"+special.pad(2) : s00e00}.-.{t}', db:'TheTVDB']
However, I would like to use periods in the episode name and title instead of spaces. When I change {n} to {n.space('.')} or {t} to {t.space('.')}... FileBot craps out and doesn't process anything. How do I use '.' instead of spaces in the groovy script?
Well, obviously you can't use ' inside a String literal that was defined using '...' syntax => http://groovy.codehaus.org/Strings+and+GString

Groovy has the nifty '''...''' syntax though that allows you to use single ' in the String without hassle:

Code: Select all

format: '''...'''
:idea: Please read the FAQ and How to Request Help.
twig123
Posts: 10
Joined: 03 Oct 2012, 01:54

Re: Need help getting automation going

Post by twig123 »

(Thanks for the '''...''' info, I got the renaming working now with that!)

Dark Matters now works for me, but the Grimm, Merlin, Once Upon a Time, and Revolution aren't working for me still. I'm not sure how to make a logfile through FileBot itself... So, I redirected the data from my command line to a file. This is what I'm seeing:

Running: filebot -script "fn:utorrent-postprocess" C:\FileBot\test 2>&1 >> C:\FileBot\log.txt

Code: Select all

Input: C:\FileBot\Test\Grimm.S02E07.720p.HDTV.X264.avi
Input: C:\FileBot\Test\merlin.4x02.the_darkest_hour.720p_hdtv_x264.mkv
Input: C:\FileBot\Test\Once.Upon.a.Time.S02E01.720p.HDTV.X264.mkv
Input: C:\FileBot\Test\Revolution.S01E01.720p.HDTV.X264.mkv
Group: [tvs:Grimm] => [Grimm.S02E07.720p.HDTV.X264.avi]
Group: [tvs:merlin] => [merlin.4x02.the_darkest_hour.720p_hdtv_x264.mkv]
Group: [tvs:Once Upon a Time] => [Once.Upon.a.Time.S02E01.720p.HDTV.X264.mkv]
Group: [tvs:Revolution] => [Revolution.S01E01.720p.HDTV.X264.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Grimm]
Failed to auto-select search result: [Grimm, Grimmsberg, Simsala Grimm, Grimm's Fairy Tale Classics]
Rename episodes using [TheTVDB]
Auto-detected query: [merlin]
Failed to auto-select search result: [Mr. Merlin, Merlin (2008), Merlin (1998), The Boy Merlin, Merlin The Legend, Merlin's Apprentice, Merlin: Secrets & Magic, Merlin The Magical Puppy]
Rename episodes using [TheTVDB]
Auto-detected query: [Once Upon a Time]
Failed to auto-select search result: [Once Upon A Time, Once Upon a Time... Life, Once Upon a Time... Space, Once Upon a Time... Man, Once Upon a Time (2011), Once Upon a Time in New York, Once Upon a Time... The Americas, Once Upon a Time... Planet Earth, Once Upon a Time... The Explorers, Once Upon A Time In Cabramatta, Once Upon a Time... The Discoverers]
Rename episodes using [TheTVDB]
Auto-detected query: [Revolution]
Failed to auto-select search result: [Revolution, Evolution, TV Revolution, The Revolution, Revolution 618, Love Revolution, Food Revolution, Gamer Revolution, Renaissance Revolution, Slayers Revolution, Sex: The Revolution, Kirarin Revolution, Dinosaur Revolution, Comic Party Revolution, The Virtual Revolution, The American Revolution, Revolutionary Girl Utena, The Protestant Revolution, The Great Food Revolution, The Second Russian Revolution, Alan Davies' Teenage Revolution, China: A Century of Revolution, Liberty! The American Revolution, Willie's Chocolate Revolution, Jamie Oliver's Food Revolution, The Impressionists Painting and Revolution, Paul Martin's Handmade Revolution, Gabriel Iglesias Presents Stand-Up Revolution, The Revolution Will be Televised, The Russian Revolution in Colour, The Cultural Revolution: Mao’s Last Battle]
Done ?(?????)?
And this is output directly to the console window:

Code: Select all

Failed to fetch episode data: [Grimm]
Exception: Unable to match files to episode data
Failed to fetch episode data: [merlin]
Exception: Unable to match files to episode data
Failed to fetch episode data: [Once Upon a Time]
Exception: Unable to match files to episode data
Failed to fetch episode data: [Revolution]
Exception: Unable to match files to episode data
What am I doing wrong?
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Need help getting automation going

Post by rednoah »

Looks like you'll need to allow non-strict matching:

Code: Select all

-non-strict
:idea: Please read the FAQ and How to Request Help.
twig123
Posts: 10
Joined: 03 Oct 2012, 01:54

Re: Need help getting automation going

Post by twig123 »

rednoah wrote:Looks like you'll need to allow non-strict matching:

Code: Select all

-non-strict
Awesome! Thanks!

On to the next hurdle, if you are willing to help... Making WDTV Live Hub compatible MetaData.
Here is a sample of the MetaData from an existing XML file I have:
(Filename: The.Walking.Dead.01x06.-.TS-19.xml)

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<details>
  <title>The Walking Dead [01x06] - TS-19</title>
  <mpaa>TV-MA</mpaa>
  <year>2010-12-05</year>
  <runtime>60</runtime>
  <rating>8.9</rating>
  <trailer>N/A</trailer>
  <studio>AMC</studio>
  <plot>MPAA:TV-MA Rating:8.9 Rick and the group are allowed into the CDC by a strange doctor, but all is not what it seems in their newfound haven. </plot>
  <overview>MPAA:TV-MA Rating:8.9 Rick and the group are allowed into the CDC by a strange doctor, but all is not what it seems in their newfound haven. </overview>
  <prevtitle>The.Walking.Dead.S01E06.720p.BluRay.x264.mkv</prevtitle>
  <prevgenre>N/A</prevgenre>
  <genre>Action and Adventure</genre>
  <genre>Drama</genre>
  <genre>Science-Fiction</genre>
  <actor>
    <name>Andrew Lincoln</name>
    <role>Rick Grimes</role>
  </actor>
  <actor>
    <name>Sarah Wayne Callies</name>
    <role>Lori Grimes</role>
  </actor>
  <actor>
    <name>Jon Bernthal</name>
    <role>Shane Walsh</role>
  </actor>
  <actor>
    <name>Norman Reedus</name>
    <role>Daryl Dixon</role>
  </actor>
  <actor>
    <name>Steven Yeun</name>
    <role>Glenn</role>
  </actor>
  <actor>
    <name>Emma Bell</name>
    <role>Amy</role>
  </actor>
  <actor>
    <name>Chandler Riggs</name>
    <role>Carl Grimes</role>
  </actor>
  <actor>
    <name>Laurie Holden</name>
    <role>Andrea</role>
  </actor>
  <actor>
    <name>Jeffrey DeMunn</name>
    <role>Dale</role>
  </actor>
  <url cache="tmdb-.xml" function="GetTMDBThumbsById" />
  <thumbnail>http://thetvdb.com/banners/seasons/153021-1-5.jpg</thumbnail>
  <thumbnail>http://thetvdb.com/banners/seasons/153021-1-6.jpg</thumbnail>
  <thumbnail>http://thetvdb.com/banners/seasons/153021-1-3.jpg</thumbnail>
  <thumbnail>http://thetvdb.com/banners/seasons/153021-1.jpg</thumbnail>
  <thumbnail>http://thetvdb.com/banners/seasons/153021-1-4.jpg</thumbnail>
  <thumbnail>http://thetvdb.com/banners/seasons/153021-1-2.jpg</thumbnail>
  <backdrop>http://thetvdb.com/banners/episodes/153021/2656111.jpg</backdrop>
</details>
Note: The <prevtitle></prevtitle> tags are made added as the name of the file before renaming to proper names (in the event it needs to be reverted).
I see most of these tags are included in NFO files when running the artwork.tvdb.groovy script, how do I modify FileBot/Groovy to generate XML files like the above?

Thanks in advance
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Need help getting automation going

Post by rednoah »

You can check lib/htpc.groovy and use the nfo function as a template and change the XML the way you want.
:idea: Please read the FAQ and How to Request Help.
stickman
Posts: 8
Joined: 22 Oct 2012, 21:48

Re: Need help getting automation going

Post by stickman »

Wouldn't it be possible to add a file that provided matching between a file (or the name as filebot gets it) and a DB?

Por instance, in my 3.0 installation the file:

Code: Select all

Once.Upon.a.Time.S02E04.720p.HDTV.X264-DIMENSION.mkv
is sent to TheTVDB as:

Code: Select all

[Once Upon a Time]
and it fails. I know you've solved it adding a mapping and that's available in HEAD, but couldn't that also be solved mapping in an external file (this one is shown in YAML syntax) as this for instance:

Code: Select all

remap:
  series:
    - Once Upon A Time
         tvdb: 248835
    - Another Show
         tvdb: <SHOW_ID_IN_TVDB>
I think it would help to solve some of the issues we see in this thread...
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Need help getting automation going

Post by rednoah »

That's not a good solution since it's not automated. Shared mapping data is one way since it's at least only one person doing the work for everyone else.

This case doesn't need any of those though:

Code: Select all

filebot -rename "E:/testdata/Once.Upon.a.Time.S02E04.720p.HDTV.X264-DIMENSION.mkv" -non-strict --action test
Filename pattern: [1,00] SxE, [0,00] CWS
Rename episodes using [TheTVDB]
Auto-detected query: [Once Upon a Time]
Fetching episode data for [Once Upon A Time]
Fetching episode data for [Once Upon a Time... Man]
Fetching episode data for [Once Upon a Time... Life]
Fetching episode data for [Once Upon a Time (2011)]
Fetching episode data for [Once Upon a Time... Space]
Fetching episode data for [Once Upon a Time in New York]
Fetching episode data for [Once Upon a Time... The Americas]
Fetching episode data for [Once Upon a Time... Planet Earth]
Fetching episode data for [Once Upon a Time... The Explorers]
Fetching episode data for [Once Upon A Time In Cabramatta]
Fetching episode data for [Once Upon a Time... The Discoverers]
[TEST] Rename [E:\testdata\Once.Upon.a.Time.S02E04.720p.HDTV.X264-DIMENSION.mkv] to [Once Upon a Time (2011) - 2x04 - The Crocodile.mkv]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ
That's the latest revision doing it's thing. Looks good to me.
:idea: Please read the FAQ and How to Request Help.
stickman
Posts: 8
Joined: 22 Oct 2012, 21:48

Re: Need help getting automation going

Post by stickman »

rednoah wrote:That's not a good solution since it's not automated. Shared mapping data is one way since it's at least only one person doing the work for everyone else.

This case doesn't need any of those though:

Code: Select all

filebot -rename "E:/testdata/Once.Upon.a.Time.S02E04.720p.HDTV.X264-DIMENSION.mkv" -non-strict --action test
Filename pattern: [1,00] SxE, [0,00] CWS
Rename episodes using [TheTVDB]
Auto-detected query: [Once Upon a Time]
Fetching episode data for [Once Upon A Time]
Fetching episode data for [Once Upon a Time... Man]
Fetching episode data for [Once Upon a Time... Life]
Fetching episode data for [Once Upon a Time (2011)]
Fetching episode data for [Once Upon a Time... Space]
Fetching episode data for [Once Upon a Time in New York]
Fetching episode data for [Once Upon a Time... The Americas]
Fetching episode data for [Once Upon a Time... Planet Earth]
Fetching episode data for [Once Upon a Time... The Explorers]
Fetching episode data for [Once Upon A Time In Cabramatta]
Fetching episode data for [Once Upon a Time... The Discoverers]
[TEST] Rename [E:\testdata\Once.Upon.a.Time.S02E04.720p.HDTV.X264-DIMENSION.mkv] to [Once Upon a Time (2011) - 2x04 - The Crocodile.mkv]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ
That's the latest revision doing it's thing. Looks good to me.
I get you, I really do. FileBot is all about automation and it gets the things nicely done.
The only issue I see (correct me if I'm wrong), is that sometimes the parser might get things wrong (mainly on new shows) and for those times it might be handy to have a way to override the default behaviour.

May I suggest, anyway (and I don't know if it's on your roadmap or if it's already done), that FileBot auto-updates those mappings so you don't need to update FileBot itself and do with whatever version you have installed (unless of course there is a mandatory update to keep-up with the mappings...)?
stickman
Posts: 8
Joined: 22 Oct 2012, 21:48

Re: Need help getting automation going

Post by stickman »

I just proccesed some files and there is another show that needs mapping:

Code: Select all

vegas.104.720p-dimension.mkv

Code: Select all

Auto-detected query: [Vegas]
Failed to auto-select search result: [Vegas, Cheating Vegas, The Real Hustle Las Vegas, Langt fra Las Vegas, Vegas: The City the Mob Made, King of Vegas, DR. Vegas, Justin Lee Collins: Living Las Vegas, Vegas Confessions, Flipping Vegas, Vegas Stripped, Las Vegas, Vegas Strip, Bachelorette Party: Las Vegas, Vegas (2012), Las Vegas CSU, Las Vegas Jailhouse, Las Vegas Garden of Love]
Failed to fetch episode data: [Vegas]
Exception: Unable to match files to episode data
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Need help getting automation going

Post by rednoah »

No. You just didn't set -non-strict.

Code: Select all

E:\testdata>filebot -rename vegas.104.720p-dimension.mkv -non-strict --db thetvdb --action test --log info
[TEST] Rename [E:\testdata\vegas.104.720p-dimension.mkv] to [Vegas (2012) - 1x04 - (Il)Legitimate.mkv]
:idea: Please read the FAQ and How to Request Help.
stickman
Posts: 8
Joined: 22 Oct 2012, 21:48

Re: Need help getting automation going

Post by stickman »

Sorry for that, I noticed it and was running the job again when you posted.

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

Re: Need help getting automation going

Post by rednoah »

Oh btw here's what you asked yesterday, sourceforge was down so I forgot about that:

Here's all the data files FileBot is using. It's checked for updates every 24h.
http://filebot.sourceforge.net/data/

You will find the series-mappings surprisingly empty. Actually I solved all the issues via smarter matching logic. But since I'd already built that I thought I'd re-purpose that feature for Pattern => Series Name mappings that might otherwise not be found.
:idea: Please read the FAQ and How to Request Help.
stickman
Posts: 8
Joined: 22 Oct 2012, 21:48

Re: Need help getting automation going

Post by stickman »

rednoah wrote:Oh btw here's what you asked yesterday, sourceforge was down so I forgot about that:

Here's all the data files FileBot is using. It's checked for updates every 24h.
http://filebot.sourceforge.net/data/

You will find the series-mappings surprisingly empty. Actually I solved all the issues via smarter matching logic. But since I'd already built that I thought I'd re-purpose that feature for Pattern => Series Name mappings that might otherwise not be found.
Thanks for that. It really looks good.

If those could (at least the mappings) be searched for locally, it would help, I suppose for not-so-mainstream releases in other languages.
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Need help getting automation going

Post by rednoah »

I don't plan on making GUI forms just for that, only very very few people would be using that anyway.

But if you wanna open up the jar and modify where FileBot is looking for that data I can't stop you. ;)
https://sourceforge.net/p/filebot/code/ ... properties
:idea: Please read the FAQ and How to Request Help.
stickman
Posts: 8
Joined: 22 Oct 2012, 21:48

Re: Need help getting automation going

Post by stickman »

rednoah wrote:I don't plan on making GUI forms just for that, only very very few people would be using that anyway.

But if you wanna open up the jar and modify where FileBot is looking for that data I can't stop you. ;)
https://sourceforge.net/p/filebot/code/ ... properties
Well, I don't use GUI forms either, I was thinking on a cmdline override (or append to existing mapping data) option...

BTW, it looks like there is some releases that aren't working:

filebot was launched with the -non-strict option
Argument: D:\k
Read archive [emily.owens.m.d.s01e01.720p.hdtv.x264-evolve.rar] to [D:\k\Emily.Owens.M.D.S01E01.720p.HDTV.x264-EVOLVE\emily.owens.m.d.s01e01.720p.hdtv.x264-evolve]
Extracting files [D:\k\Emily.Owens.M.D.S01E01.720p.HDTV.x264-EVOLVE\emily.owens.m.d.s01e01.720p.hdtv.x264-evolve\Emily.Owens.M.D.S01E01.720p.HDTV.x264-EVOLVE.mkv]
Read archive [danno.can.really.book.em.304.720p-dimension.rar] to [D:\k\Hawaii.Five-0.2010.S03E04.720p.HDTV.X264-DIMENSION\danno.can.really.book.em.304.720p-dimension]
Extracting files [D:\k\Hawaii.Five-0.2010.S03E04.720p.HDTV.X264-DIMENSION\danno.can.really.book.em.304.720p-dimension\Hawaii.Five-0.2010.S03E04.720p.HDTV.X264-DIMENSION.mkv]
Input: D:\k\Emily.Owens.M.D.S01E01.720p.HDTV.x264-EVOLVE\emily.owens.m.d.s01e01.720p.hdtv.x264-evolve\Emily.Owens.M.D.S01E01.720p.HDTV.x264-EVOLVE.mkv
Input: D:\k\Hawaii.Five-0.2010.S03E04.720p.HDTV.X264-DIMENSION\danno.can.really.book.em.304.720p-dimension\Hawaii.Five-0.2010.S03E04.720p.HDTV.X264-DIMENSION.mkv
Group: [tvs:Emily Owens M D] => [Emily.Owens.M.D.S01E01.720p.HDTV.x264-EVOLVE.mkv]
Group: [tvs:Hawaii Five 0] => [Hawaii.Five-0.2010.S03E04.720p.HDTV.X264-DIMENSION.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Emily Owens M D]
Failed to fetch episode data: [Emily Owens M D]
Exception: Unable to match files to episode data
Rename episodes using [TheTVDB]
Auto-detected query: [Hawaii Five 0, Hawaii Five 0 2010]
Failed to fetch episode data: [Hawaii Five 0, Hawaii Five 0 2010]
Exception: Unable to match files to episode data
Done ?(?????)?
Those should map to:

Hawaii 5.0 (2010)
http://thetvdb.com/?tab=series&id=164541&lid=16

Emily Owens, M.D.
http://thetvdb.com/?tab=series&id=259106&lid=7
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Need help getting automation going

Post by rednoah »

Code: Select all

E:\testdata>filebot -rename -non-strict --db thetvdb --action test --log info Emily.Owens.M.D.S01E01.720p.HDTV.x264-EVOLVE.mkv Hawaii.Five-0.2010.S03E04.720p.HDTV.X264-DIMENSION.mkv
[TEST] Rename [E:\testdata\Emily.Owens.M.D.S01E01.720p.HDTV.x264-EVOLVE.mkv] to [Emily Owens, M.D. - 1x01 - Pilot.mkv]
[TEST] Rename [E:\testdata\Hawaii.Five-0.2010.S03E04.720p.HDTV.X264-DIMENSION.mkv] to [Hawaii Five-0 - 3x04 - Popilikia.mkv]
I'll check the utorrent script as well just to make sure.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Need help getting automation going

Post by rednoah »

Code: Select all

Argument: E:\testdata\Emily.Owens.M.D.S01E01.720p.HDTV.x264-EVOLVE.mkv
Argument: E:\testdata\Hawaii.Five-0.2010.S03E04.720p.HDTV.X264-DIMENSION.mkv
Input: E:\testdata\Emily.Owens.M.D.S01E01.720p.HDTV.x264-EVOLVE.mkv
Input: E:\testdata\Hawaii.Five-0.2010.S03E04.720p.HDTV.X264-DIMENSION.mkv
Group: [tvs:Emily Owens M D] => [Emily.Owens.M.D.S01E01.720p.HDTV.x264-EVOLVE.mkv]
Group: [tvs:Hawaii Five 0] => [Hawaii.Five-0.2010.S03E04.720p.HDTV.X264-DIMENSION.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Emily Owens M D]
Fetching episode data for [Emily Owens, M.D]
[TEST] Rename [E:\testdata\Emily.Owens.M.D.S01E01.720p.HDTV.x264-EVOLVE.mkv] to [E:\testdata\Deluge\output\TV Shows\Emily Owens, M.D.\Season 1\Emily Owens, M.D. - S01E01 - Pilot.mkv]
Processed 1 files
Rename episodes using [TheTVDB]
Auto-detected query: [Hawaii Five 0, Hawaii Five 0 2010]
Fetching episode data for [Hawaii Five-O (2010)]
Fetching episode data for [Hawaii Five-0]
Fetching episode data for [Hawaii Five-O]
[TEST] Rename [E:\testdata\Hawaii.Five-0.2010.S03E04.720p.HDTV.X264-DIMENSION.mkv] to [E:\testdata\Deluge\output\TV Shows\Hawaii Five-0\Season 3\Hawaii Five-0 - S03E04 - Popilikia.mkv]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ
Alright, confirmed this as well. Your log is incomplete, are you redirecting output? Make sure you redirect stdout AND stderr. Since you didn't look at error output you didn't see that the requests to TheTVDB probably failed due to some random network issues or server errors.
:idea: Please read the FAQ and How to Request Help.
Post Reply