SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v7 Customizations > Sage My Movies

Notices

Sage My Movies This forums is for discussing the user-created Sage My Movies for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-22-2010, 07:56 PM
Hyrules's Avatar
Hyrules Hyrules is offline
Sage User
 
Join Date: Sep 2008
Location: Canada
Posts: 60
[solved] Api Failing with 1.190 Beta

Hi Plucky,

Today i've started my media center to an SMM not showing in my menu. So i went and look the state of the plugin in the setup menu which was disable. Tried to enable it to find out that the Api failed. Tried to uninstall / reinstall both but didn't fix the issue any way i can help you fixing this ?

Thanks,


**** Nevermind i found out that if your mediaserver has crashed or is down SMM API fails its now fix.
__________________
Computer Technician A+ Certified
HTPC : Asrock Ion330HT-BD, Atom 330HT 1.6 Ghz, 4 GB DDR 2, Bluray drive, 320 GB HDD, Win 7 x64
SERVER : Core i7-920 2.4 Ghz , 6 GB DDR3 , 2x1.5 TB HDD + 320 GB HDD (os) , DVD-RW, GB LAN, Win 7 x64

Last edited by Hyrules; 09-22-2010 at 08:15 PM.
Reply With Quote
  #2  
Old 09-23-2010, 06:32 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by Hyrules View Post
**** Nevermind i found out that if your mediaserver has crashed or is down SMM API fails its now fix.
Correct if it can't connect to the mymovies database it will fail.
Reply With Quote
  #3  
Old 09-23-2010, 04:52 PM
Hyrules's Avatar
Hyrules Hyrules is offline
Sage User
 
Join Date: Sep 2008
Location: Canada
Posts: 60
Would it be possible to have it display a meaningfull message instead of just failing ? Like unable to connect to the media server.
__________________
Computer Technician A+ Certified
HTPC : Asrock Ion330HT-BD, Atom 330HT 1.6 Ghz, 4 GB DDR 2, Bluray drive, 320 GB HDD, Win 7 x64
SERVER : Core i7-920 2.4 Ghz , 6 GB DDR3 , 2x1.5 TB HDD + 320 GB HDD (os) , DVD-RW, GB LAN, Win 7 x64
Reply With Quote
  #4  
Old 09-23-2010, 06:13 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by Hyrules View Post
Would it be possible to have it display a meaningfull message instead of just failing ? Like unable to connect to the media server.
Out of my control because it throws a exception and sage will just have it fail which is the correct way for them to handle it. Once it fails nothing of smm loads so there is no way for me to display a message.

That being said I can tell pretty quickly from a log.
Reply With Quote
  #5  
Old 09-23-2010, 07:13 PM
Hyrules's Avatar
Hyrules Hyrules is offline
Sage User
 
Join Date: Sep 2008
Location: Canada
Posts: 60
Programmatically it's a way of doing it. It can prevent problem but can cause some like having a plugin failed just because a server cannot be reached. Well... who am i to judge how sage is programmed. I'm thinking myself of programming something for sage but i dont know where to start. I'm pretty advanced in c++, c and .net. I'll have to take some time and look at the code of apis.
__________________
Computer Technician A+ Certified
HTPC : Asrock Ion330HT-BD, Atom 330HT 1.6 Ghz, 4 GB DDR 2, Bluray drive, 320 GB HDD, Win 7 x64
SERVER : Core i7-920 2.4 Ghz , 6 GB DDR3 , 2x1.5 TB HDD + 320 GB HDD (os) , DVD-RW, GB LAN, Win 7 x64
Reply With Quote
  #6  
Old 09-23-2010, 07:41 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by Hyrules View Post
Programmatically it's a way of doing it. It can prevent problem but can cause some like having a plugin failed just because a server cannot be reached. Well... who am i to judge how sage is programmed. I'm thinking myself of programming something for sage but i dont know where to start. I'm pretty advanced in c++, c and .net. I'll have to take some time and look at the code of apis.
Well in this use case it should fail if the SQL server can't be reached then it is a failure that is what the logs are for if it didn't stop it it would keep throwing errors and slow things down considerably.
Reply With Quote
Reply


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

Advanced Search
Display Modes

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 API install keeps failing craigap Sage My Movies 25 10-06-2010 08:42 AM
Sage API - sagetvmsg.txt - Can API tell if HDPVR Crashed? personalt SageTV Customizations 4 08-25-2010 04:56 PM
File Conversions Failing dadams SageTV Software 37 10-11-2007 11:14 AM
Activation failing Dekard SageTV Linux 10 05-23-2006 06:54 AM


All times are GMT -6. The time now is 02:42 AM.


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