Any recent change in plugin API? [Need help]

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Temhil Offline
Skilled Python Coder
Posts: 395
Joined: Apr 2008
Reputation: 1
Location: Canada
Question  Any recent change in plugin API? [Need help] Post: #1
Hi guys,

I have a weird things that happen with one plugin. It seems on recent revision of XBMC (SVN) plugins behave differently. Let me explain:

On Windows (tested on r23596 and r23898), part of the URL is lost went I try to read the sys.argv.

For example with the URL passed to the plugin:
Code:
plugin://video/Canal Plus/?listevideos=6|113&referer=SERIES%20/%20FICTIONS>KALI

In get in sys.argv only:
Code:
['plugin://video/Canal Plus/', '0', '?listevideos=6']

So I am missing the last part of the URL:
Code:
|113&referer=SERIES%20/%20FICTIONS>KALI

If I run the same plugin on an older revision of XBMC (Babylon for example), I don't have the issue and get all the URL in sys.argv
That means it is either a change made in the plugin behavior I am not aware of, or a bug.
Since I more aware of scripts than plugin it is totally possible I missed a discution about such changes with plugin.
In this case which change I should do to my URL in order to process all the information?

Thank you in advance for your help.

Big Grin

[Image: passionxbmc_signature.png]
_____________________________

Repositories Installer: select and install unofficial repositories / TAC.TV: watch videos on TAC.TV
Installer Passion-XBMC: Download and Install Add-ons (pre-Dharma only)

[Image: project_thin_badge.gif]
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,181
Joined: Nov 2003
Reputation: 82
Post: #2
yes, the | separator is now reserved for xbmc protocol options (mainly done to set the http user agent for working around apple's trailer evils) . format your url's elsewise, for instance by using a proper format separator (&)

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
ppic Offline
Skilled Python Coder
Posts: 2,663
Joined: Feb 2009
Reputation: 10
Location: France idf
Post: #3
ok, seems that i've done the same way ( | as separator)
thanks for the info.

[Image: widget]
Passion-XBMC Repository Download your SVN skins and addons
TvTunes Addon Download Play your theme while browsing library
TVshow Next Aired display next aired infos from tvrage.com
Logo Downloader Script download Logo/clearart/show thumbs/poster/banner
Bande-Annonce Allociné plugin watch trailers in french and vo
SportLive Script Live score match info in XBMC (not compatible dharma)
find quote
Temhil Offline
Skilled Python Coder
Posts: 395
Joined: Apr 2008
Reputation: 1
Location: Canada
Smile    Post: #4
spiff Wrote:yes, the | separator is now reserved for xbmc protocol options (mainly done to set the http user agent for working around apple's trailer evils) . format your url's elsewise, for instance by using a proper format separator (&)

Thanks spiff, it was what I was guessing but wasn't sure what was wrong. I know how to fix it know.
Thanks a lot!

[Image: passionxbmc_signature.png]
_____________________________

Repositories Installer: select and install unofficial repositories / TAC.TV: watch videos on TAC.TV
Installer Passion-XBMC: Download and Install Add-ons (pre-Dharma only)

[Image: project_thin_badge.gif]
find quote