Need Help: Online Radio add-on ...

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
DancingFlames Offline
Junior Member
Posts: 6
Joined: Apr 2012
Reputation: 0
Location: France
Post: #1
Hello everybody,

I was playing a bit with XBMC python API and I've made my first plugin. It basically lists an xml file (containing online radio information) and it plays every link.

I have a small issue with it: After I load the item list, xbmc retrieves all the media information about the files I've listed. Is there any possibility to avoid this ? Considering that we are talking about online radio streams, this is a bit slow.

All the best,
O.
find quote
Bstrdsmkr Offline
Posting Freak
Posts: 803
Joined: Oct 2010
Reputation: 17
Post: #2
Not quite understanding what you mean by "xbmc retrieves all the media information about the files I've listed"

Are you talking about where it tries to determine the file type and etc? (Shows up in the log as Creating Demuxer)
(This post was last modified: 2012-04-10 00:05 by Bstrdsmkr.)
find quote
sphere Offline
Team-Kodi Member
Posts: 1,205
Joined: Jul 2009
Reputation: 50
Location: Germany
Post: #3
(2012-04-09 15:08)DancingFlames Wrote:  Hello everybody,

I was playing a bit with XBMC python API and I've made my first plugin. It basically lists an xml file (containing online radio information) and it plays every link.

I have a small issue with it: After I load the item list, xbmc retrieves all the media information about the files I've listed. Is there any possibility to avoid this ? Considering that we are talking about online radio streams, this is a bit slow.

All the best,
O.

XBMC tries to get the mime-type of every listitem's url you provide.
You have two choices:

1.
Do something like:
Code:
listitem.setProperty('mimetype', 'video/x-msvideo')
(of course you should set a matching mimetype!)

2.
[Trick] Faster listing of items

regards,
sphere

My GitHub. My Add-ons:
[Image: IOoywq0.jpg]
find quote
DancingFlames Offline
Junior Member
Posts: 6
Joined: Apr 2012
Reputation: 0
Location: France
Post: #4
Sphere, this is exactly what I wanted to do. Thanks a lot.

It seems that I need to improve my forum search skills, rather than my programming ones Smile
find quote
Martijn Offline
Team Kodi
Posts: 11,411
Joined: Jul 2011
Reputation: 165
Location: Dawn of time
Post: #5
Need a better way of documenting these things in the wiki instead of on the forum

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

For your mediacenter artwork go to
[Image: fanarttv.png]
find quote
DancingFlames Offline
Junior Member
Posts: 6
Joined: Apr 2012
Reputation: 0
Location: France
Post: #6
You should open the wiki for edit or add more members with edit rights ...

I know it could get messy (I had a bad experience already with my students), but it is the only way to survive and be up to date ...
find quote
sphere Offline
Team-Kodi Member
Posts: 1,205
Joined: Jul 2009
Reputation: 50
Location: Germany
Post: #7
(2012-04-10 11:21)DancingFlames Wrote:  You should open the wiki for edit or add more members with edit rights ...

Correct me if I'm wrong but the wiki is open for edits of registered users - and registration is open.

My GitHub. My Add-ons:
[Image: IOoywq0.jpg]
find quote
DancingFlames Offline
Junior Member
Posts: 6
Joined: Apr 2012
Reputation: 0
Location: France
Post: #8
(2012-04-10 11:35)sphere Wrote:  Correct me if I'm wrong but the wiki is open for edits of registered users - and registration is open.

I didn't knew that ... and I was making the assumption based on the fact that there were some people on the forum asking others to post on wiki
find quote
Martijn Offline
Team Kodi
Posts: 11,411
Joined: Jul 2011
Reputation: 165
Location: Dawn of time
Post: #9
(2012-04-10 11:40)DancingFlames Wrote:  
(2012-04-10 11:35)sphere Wrote:  Correct me if I'm wrong but the wiki is open for edits of registered users - and registration is open.

I didn't knew that ... and I was making the assumption based on the fact that there were some people on the forum asking others to post on wiki

Some pages are locked for some reason. Normally you can just register on the wiki page and start editing.
On the front page of the wiki is a link to the help page which lists some nice plugin for editing.

Currently the add-on/plugin section is a bit of a mess. In time will get cleaned up and re-organized.

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

For your mediacenter artwork go to
[Image: fanarttv.png]
find quote