[BetaSeries][Frodo] Can't get subtitles list - deprecated executehttpapi
#1
Hello forum,
Since few weeks, I couldn't get the available subtitles list with BetaSeries service.
According to the debug file wich says :
Code:
DEBUG: ### [XBMC Subtitles-services.BetaSeries.service] - query language: 'VOVF'
ERROR: EXCEPTION: Unimplemented method: executehttpapi::executehttpapi(...)
DEBUG: ### [XBMC Subtitles-services.BetaSeries.service] - getShortTV() failed
I guess it's coming from this part of services/BetaSeries/service.py :
Code:
def getShortTV(title):

    try:
        # search TVDB's id from tvshow's title
        query = 'select c12 from tvshow where c00 = "' + unicode(title) + '" limit 1'
        res = xbmc.executehttpapi("queryvideodatabase(" + query + ")")
...
    except:
        log( __name__ , "getShortTV() failed")
        return url

I understood executehttpapi has been removed in Frodo but I don't know how to replace it.
I could dig further to correct this, but I don't have a clue in wich way.

Maybe I'm wrong but, if someone (like BetaSeries service creator) knows how to fix this...?
Thanks in advance.

By the way I think the "return url" in "except:" of the same getShortTV(title) is an error.
It shows "Error: local variable 'url' referenced before assignement" in the botton of the subtitles menu.

DEBUG LOG
System : LinuxMint 12 x64
XBMC : Frodo Beta , Commit 22795bcfc49b8dd0e7a66e8d3c352ccca3949511
script.xbmc.subtitles : 3.9.0
Reply
#2
First of all let me thank you for taking the time to read the posting rules and helping us provide better support. That doesn't happen often in this forum, I can tell you.

For that alone I'm glad to try and help solve the Betaseries service. Don't now If I'll be able cause I also don't know right now where executehttpapi went. But I'll find out.

Cheers.
Always read the XBMC Online Manual,Frequently Asked Questions and search the forum before posting.
For troubleshooting and bug reporting use -> Log file.

Reply
#3
You're welcome Nerd
I imagine how it can be annoying.
I'm glad to help in my (proper) way.
In case you need more infos... you know where to find me...

Cheers.
Reply
#4
For the record, it seems this function disappear with this commit : af66b90e859c03c6b6ab13e291088f1cf7ad4e55
Reply
#5
Just to be clear, httpapi has been removed from Frodo by design. It was announced back with Eden that it was deprecated and would be removed with Frodo. This has now happened. JSON RPC is the replacement for httpapi, so the script will have to be rewritten accordingly.
Reply
#6
https://github.com/amet/script.xbmc.subt...436f61769c

try with that and let us know if it works
Reply
#7
Hi,

It works well with this version of the service.py.

Thanks for your work.
Reply
#8
Yep, well done. It works again.

However, don't you think the except return of getShortTV(title) need a rewrite?

Thanks anyway. Great job!
Reply
#9
(2012-11-20, 12:06)tedr56 Wrote: Yep, well done. It works again.

However, don't you think the except return of getShortTV(title) need a rewrite?

Thanks anyway. Great job!

sure, I have done the rewrite... seems you know your way around Python, you could have done the same and contributed back Wink

https://github.com/amet/script.xbmc.subt...95b171542c
Reply
#10
Ha, you know, it's one thing to understand a language, another one to speak it.
I wouldn't make it worth.

Thanks for the investigation.
Reply

Logout Mark Read Team Forum Stats Members Help
[BetaSeries][Frodo] Can't get subtitles list - deprecated executehttpapi0