SageTV Community  

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

Notices

SageTV v7 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 7 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 7 and newer.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-15-2016, 11:28 AM
Skirge01's Avatar
Skirge01 Skirge01 is offline
SageTVaholic
 
Join Date: Jun 2007
Location: New Jersey
Posts: 2,599
sagex help needed

I moved SageTV v7 from XP to Windows 7 and everything seemed to be working fine. However, I'm trying to do some media lookups via sagex and they're failing.

This works:
Code:
https://localhost:8443/sagex/api
This doesn't:
Code:
https://localhost:8443/sagex/api?c=GetMediaFiles&start=0&size=50
Giving this error:
Code:
XML Parsing Error: not well-formed
Location: https://localhost:8443/sagex/api?c=GetMediaFiles&start=0&size=50
Line Number 4069, Column 234:    <Description><![CDATA[When Molly learns that her baby is alive, she sets out with Kern and Kryger to devise a plan to intercept the baby before Sparks and Yasumoto can relocate him. Meanwhile, John struggles to keep up with Ethans rapid development.]]></Description>
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^
Nor does this:
Code:
https://dvr_w7_x64:8443/sagex/api?c=GetMediaFileForID&1=22770188
Which gives this error:
Code:
XML Parsing Error: not well-formed
Location: https://dvr_w7_x64:8443/sagex/api?c=GetMediaFileForID&1=22770188
Line Number 8, Column 549:    <Actor><![CDATA[Ben McKenzie -- Detective James "Jim" Gordon;Robin Lord Taylor -- Oswald "Penguin" Cobblepot;Cory Michael Smith -- Edward Nygma;Donal Logue -- Detective Harvey Bullock;Camren Bicondova -- Selina "Cat" Kyle;David Mazouz -- Bruce Wayne;Sean Pertwee -- Alfred Pennyworth;Michael Chiklis -- Cpt Barnes;Drew Powell -- Butch Gilzean;Chris Chalk -- Lucius Fox;Anthony Carrigan -- Victor Zsazs;Colm Feore -- Dr. Francis Dulmacher;Cameron Monaghan -- Jerome Valeska;Jessica Lucas -- Tabitha Galavan;James Frain -- Theo Galavan;Nicholas DAgosto -- Harvey Dent;Morena Baccarin -- Dr. Leslie Thompkins;Carol Kane -- Gertrude Kapelput;Clare Foley -- Ivy Pepper;Victoria Cartagena -- Renee Montoya;Jada Pinkett Smith -- Fish Mooney;Andrew Stewart Jones -- Crispus Allen;John Doman -- Carmine Falcone;Erin Richards -- Barbara Kean;Zabryna Guevara -- Captain Essen]]></Actor>
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^
These look like very similar errors, so I'm confident I have the API calls correct. But, I've got no clue how to track this issue down.

Now, for full disclosure, I did initially install SageTV v9 (a couple of times) and couldn't get it to work. Then, I installed v7 over the top a couple of times, uninstalled v9, and reinstalled v7 two more times, just to ensure everything got "fixed". This has led to Sage seemingly working just fine, but I'm wondering if--somehow--something got messed up in the DB. I thought that I restored the wiz.bin from v7 each time I reinstalled, so v7 never "saw" a v9 wiz.bin, but maybe not. If I didn't, could that be causing this?

Any other suggestions on how to approach this?
__________________
Server: XP, SuperMicro X9SAE-V, i7 3770T, Thermalright Archon SB-E, 32GB Corsair DDR3, 2 x IBM M1015, Corsair HX1000W PSU, CoolerMaster CM Storm Stryker case
Storage: 2 x Addonics 5-in-3 3.5" bays, 1 x Addonics 4-in-1 2.5" bay, 24TB
Client: Windows 7 64-bit, Foxconn G9657MA-8EKRS2H, Core2Duo E6600, Zalman CNPS7500, 2GB Corsair, 320GB, HIS ATI 4650, Antec Fusion
Tuners: 2 x HD-PVR (HTTP tuning), 2 x HDHR, USB-UIRT
Software: SageTV 7
Reply With Quote
  #2  
Old 04-15-2016, 12:06 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
I copied the xml into http://codebeautify.org/xmlvalidate, and it's complaining about invalid utf8 characters in the xml... specifically the ' characters.

What happens if you use json?

append &encoder=json to the url.
Reply With Quote
  #3  
Old 04-15-2016, 03:03 PM
Skirge01's Avatar
Skirge01 Skirge01 is offline
SageTVaholic
 
Join Date: Jun 2007
Location: New Jersey
Posts: 2,599
That seems to work fine.
__________________
Server: XP, SuperMicro X9SAE-V, i7 3770T, Thermalright Archon SB-E, 32GB Corsair DDR3, 2 x IBM M1015, Corsair HX1000W PSU, CoolerMaster CM Storm Stryker case
Storage: 2 x Addonics 5-in-3 3.5" bays, 1 x Addonics 4-in-1 2.5" bay, 24TB
Client: Windows 7 64-bit, Foxconn G9657MA-8EKRS2H, Core2Duo E6600, Zalman CNPS7500, 2GB Corsair, 320GB, HIS ATI 4650, Antec Fusion
Tuners: 2 x HD-PVR (HTTP tuning), 2 x HDHR, USB-UIRT
Software: SageTV 7
Reply With Quote
  #4  
Old 04-16-2016, 06:32 PM
Skirge01's Avatar
Skirge01 Skirge01 is offline
SageTVaholic
 
Join Date: Jun 2007
Location: New Jersey
Posts: 2,599
I was going to edit my last post, but then I figured you wouldn't see it.

Anyhow, thanks for the workaround! Out of curiosity, do you have any idea where the XML issue lies? Is it from the source (TVDB, I assume), the scraper, or something else?
__________________
Server: XP, SuperMicro X9SAE-V, i7 3770T, Thermalright Archon SB-E, 32GB Corsair DDR3, 2 x IBM M1015, Corsair HX1000W PSU, CoolerMaster CM Storm Stryker case
Storage: 2 x Addonics 5-in-3 3.5" bays, 1 x Addonics 4-in-1 2.5" bay, 24TB
Client: Windows 7 64-bit, Foxconn G9657MA-8EKRS2H, Core2Duo E6600, Zalman CNPS7500, 2GB Corsair, 320GB, HIS ATI 4650, Antec Fusion
Tuners: 2 x HD-PVR (HTTP tuning), 2 x HDHR, USB-UIRT
Software: SageTV 7
Reply With Quote
  #5  
Old 04-16-2016, 07:46 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Skirge01 View Post
I was going to edit my last post, but then I figured you wouldn't see it.

Anyhow, thanks for the workaround! Out of curiosity, do you have any idea where the XML issue lies? Is it from the source (TVDB, I assume), the scraper, or something else?
It's hard to say... it could be in the source (ie, tvdb) or it could be a bug in sagetv (ie, Wiz.bin is not storing/reading the utf chars correctly)
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
sagex-api Plugin MISSING: sagex-api-FAILED http://ubuntone.com/5NNCHGlywxvXBgRw8B3nMr antplugger SageTV v7 Customizations 10 06-10-2014 01:34 AM
sagex-api - how can I tell if it works? gveres SageTV v7 Customizations 2 01-27-2012 10:56 PM


All times are GMT -6. The time now is 06:58 PM.


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