SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v7 Customizations > Batch Metadata Tools
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

Batch Metadata Tools This forums is for discussing the user-created Batch Metadata Tools for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-22-2011, 05:29 AM
can3gxw can3gxw is offline
Sage Advanced User
 
Join Date: Sep 2008
Location: NB, Canada
Posts: 219
Episode Names and Descriptions

Please let me know if this is NOT a BMT question, but since it's SO good at what it does, I am wondering if perhaps there might be something amiss here...

I have been seeing, as of lately, that I am not getting the full metadata for my imported tv shows. I have TVRENAME running to ensure that the filename is "perfect", and it's been working perfectly until sometime in the recent past (can't be exactly sure when). Maybe something got changed that I can't find, which is why I am throwing this to the forum.

I can go to TVDB and look up the details on a specific episode of a show, and the full episode name and description are there, but the metadata will just not download to Sage. I know that all changes made to TVDB only actually update the server about once every half hour or so, but episodes that have been on TVDB for a few days won't even always come down.

I say "not always", only because I haven't been able to reproduce it all the time...

Anyone have any ideas what's happening and why I can't always get ALL the information from the TVDB?
__________________
Gregg
Reply With Quote
  #2  
Old 09-22-2011, 06:02 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
I've seen a few "timeout" errors with tvdb lately. BMT should retry on a timeout error, but it will eventually give up.

Do you see anything interesting in the phoenix-metadata.log or the phoenix.log?
Reply With Quote
  #3  
Old 09-22-2011, 06:14 AM
can3gxw can3gxw is offline
Sage Advanced User
 
Join Date: Sep 2008
Location: NB, Canada
Posts: 219
Where are those logs hiding? I can certainly take a look the next time something doesn't work right....

Is there a "wait for xx seconds (or minutes) after scan complete to download the information"? I get it that if I am updating a LOT of files it could take a while, but if it's only a half dozen I wouldn't think it would be that long.

But again, I'd like a little more insight into what does what behind the scenes so that I don't hit the alarm too soon. If BMT takes on average 5 seconds per file, then if I look 2 or 3 minutes later, it should be done. If it takes 1 minute per file, I'll check it again in, say, 5 minutes.

But yes, I also get that everything is dependent on TVDB actually working.

__________________
Gregg
Reply With Quote
  #4  
Old 09-22-2011, 06:54 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
all the logs are in the SAGE_HOME/logs/ folder... The next time something fails, just check the phoenix-metadata.log and the phoenix.log and see if you notice anything interesting... or zip them up and send them my way
Reply With Quote
  #5  
Old 09-22-2011, 10:04 AM
can3gxw can3gxw is offline
Sage Advanced User
 
Join Date: Sep 2008
Location: NB, Canada
Posts: 219
Will do. Thanks!
__________________
Gregg
Reply With Quote
  #6  
Old 09-23-2011, 04:11 AM
can3gxw can3gxw is offline
Sage Advanced User
 
Join Date: Sep 2008
Location: NB, Canada
Posts: 219
It happened this morning...

- Great Food Truck Race S02E06 - worked perfectly
- Charlies Angels (new series) was pulled wrong as a movie... ? whatever... LOL (not too worried - just added a MATCHER for it... we'll see what happens next week)
- Person of Interest - S01E01 - did not extract anything or update any metadata (auto SAGE refresh). When I used BMT web, I was able to manually search for the metadata and update it, but it only updated the series name (not the episode or episode description).

Here are the logs for you to look at... let me know if you see something, or if there's something else that I should be setting.

Attached Files
File Type: zip Phoenix.zip (67.7 KB, 144 views)
__________________
Gregg
Reply With Quote
  #7  
Old 09-23-2011, 06:09 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by can3gxw View Post
It happened this morning...

- Great Food Truck Race S02E06 - worked perfectly
- Charlies Angels (new series) was pulled wrong as a movie... ? whatever... LOL (not too worried - just added a MATCHER for it... we'll see what happens next week)
- Person of Interest - S01E01 - did not extract anything or update any metadata (auto SAGE refresh). When I used BMT web, I was able to manually search for the metadata and update it, but it only updated the series name (not the episode or episode description).

Here are the logs for you to look at... let me know if you see something, or if there's something else that I should be setting.

I'm seeing a lot of
Code:
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
Errors in the log when it's parsing the xml from TVDB... it looks as if tvdb is giving back the incorrect xml... OR... BMT/Pheonix has a corrupted file in the cache.

You can try to delete the userdata/Phoenix/cache/url/ folder and then try the person of interest again to see what happens.

I'll open a bug to look at this in more detail.
Reply With Quote
  #8  
Old 09-23-2011, 01:30 PM
can3gxw can3gxw is offline
Sage Advanced User
 
Join Date: Sep 2008
Location: NB, Canada
Posts: 219
I just went into the web interface and ran a manual "find metadata" and it returned all the right information... weird.... don't know what to say now.

Since I have my "tvrename" and "sage scan" in a batch file, would it do any harm to delete all the contents in the CACHE before running a scan? Do you think it might help?

And by "userdata", you're referring to the %userdata% in the "HTPC" user's Windows profile, correct?
__________________
Gregg
Reply With Quote
  #9  
Old 09-23-2011, 01:35 PM
can3gxw can3gxw is offline
Sage Advanced User
 
Join Date: Sep 2008
Location: NB, Canada
Posts: 219
NM - found the userdata deep in the SageTV folder.....
__________________
Gregg
Reply With Quote
  #10  
Old 10-05-2011, 01:47 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
FYI... I have confirmed that is a bug in the Phoenix/BMT url caching code... Until I get a fix out (which will be a few weeks), you can manually avoid the issue by cleaning out the SAGE_HOME/userdata/Phoenix/cache/url/ folder.
Reply With Quote
  #11  
Old 10-05-2011, 06:28 PM
skiingwiz skiingwiz is offline
Sage Aficionado
 
Join Date: Jan 2005
Posts: 366
Quote:
Originally Posted by stuckless View Post
FYI... I have confirmed that is a bug in the Phoenix/BMT url caching code... Until I get a fix out (which will be a few weeks), you can manually avoid the issue by cleaning out the SAGE_HOME/userdata/Phoenix/cache/url/ folder.
I had the same issue with thetvdb, but my finding was different. As it turns out, they are sometimes (not always, frustratingly) sending the data GZip compressed. I had found a forum post about it at http://forums.thetvdb.com but it seems that currently their developers forum is offline.

I fixed my issue by wrapping the URL's InputStream in a GZipInputSream (whenever I saw this exception).

I just thought I'd post in case it turns out that you are having the same issue.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SMM Options Descriptions? nateziemann Sage My Movies 1 11-17-2010 05:44 AM
How do I rename a DVD and add descriptions? CANightHawk SageTV v7 Customizations 3 05-27-2010 11:33 AM
Episode names hawleyrw SageTV Software 6 11-21-2007 02:47 PM
Getting Episode/Season info in recorded show names? kelemvor SageTV Software 4 04-18-2005 07:58 AM
Show descriptions in EPG are more generic? laurenglenn SageTV Beta Test Software 4 09-02-2003 12:16 AM


All times are GMT -6. The time now is 03:46 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.