Item URL encoding - Strange problem...

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
AddonScriptorDE Offline
Fan
Posts: 310
Joined: May 2012
Reputation: 14
Location: Germany
Post: #11
(2012-06-06 01:37)jmarshall Wrote:  Even if that was the case it doesn't necessarily solve the problem: The authentication details have also been removed prior to URL decoding.
Would it not be possible to add an InfoLabel with the encoded url and the authentication details, or is this not possible because of security reasons?
When receiving the currently played URL with:
Code:
playlist[playlist.getposition()].getfilename()
are the authentication details also removed?
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
Post: #12
The problem is infolabels are designed for display in the skin - you're using them for quite a different purpose. I'm wary of exposing anything credentials-wise as it's too hard to restrict it.

The playlist stuff likely exposes directly as that's restricted to python.

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.


[Image: badge.gif]
find quote
AddonScriptorDE Offline
Fan
Posts: 310
Joined: May 2012
Reputation: 14
Location: Germany
Post: #13
(2012-06-06 01:59)jmarshall Wrote:  The problem is infolabels are designed for display in the skin - you're using them for quite a different purpose. I'm wary of exposing anything credentials-wise as it's too hard to restrict it.

The playlist stuff likely exposes directly as that's restricted to python.
Ok, thanks. I hope there is another "raw python" way for getting the Url of the selected item.
Would be too bad if its technical impossible because except of this my add-on is working fine and i think it could be really useful.
(This post was last modified: 2012-06-06 02:42 by AddonScriptorDE.)
find quote
Nuka1195 Online
Skilled Python Coder
Posts: 3,916
Joined: Dec 2004
Reputation: 17
Post: #14
You could set your own property on each listitem formatted the way you want it.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
AddonScriptorDE Offline
Fan
Posts: 310
Joined: May 2012
Reputation: 14
Location: Germany
Post: #15
(2012-06-06 06:40)Nuka1195 Wrote:  You could set your own property on each listitem formatted the way you want it.
Thx, but I DONT want to access a single controllist, which i created by myself (with custom listitems).

I had to access the focused controllist (of the currently shown media) and the selected item in it.
The listitems i have to access are from the media library (video/audio/image) and from add-ons.

The problem is i need to get this value. I cant set anything i dont have.

Sorry, was not very clear. When you read the description of my add-on, i think you understand what i mean.
find quote
AddonScriptorDE Offline
Fan
Posts: 310
Joined: May 2012
Reputation: 14
Location: Germany
Post: #16
I just discovered "ListItem.Property()".
So, getSelectedItem() is no longer the problem. Because i wanted to use getProperty(key) on the selected Item, but now i can also use "ListItem.Property()" for that.

The only problem is, that "ListItem.Property(Path)" returns an empty string.

Any idea?

Edit:
Or would this "Path" property (if it exists with another name) would be the same as "ListItem.FileNameAndPath" or "ListItem.Path" anyway (removed user authentification and decoded)?

Thanks again,
I dont thought it would be impossible / so complicated.
(This post was last modified: 2012-06-11 19:30 by AddonScriptorDE.)
find quote
AddonScriptorDE Offline
Fan
Posts: 310
Joined: May 2012
Reputation: 14
Location: Germany
Post: #17
(2012-06-06 01:59)jmarshall Wrote:  The problem is infolabels are designed for display in the skin - you're using them for quite a different purpose. I'm wary of exposing anything credentials-wise as it's too hard to restrict it.

The playlist stuff likely exposes directly as that's restricted to python.
If its really not possible to solve my problem right now, it would be so great if it can be fixed with Frodo. A python function for getting the currently selected item url, or (a really simple solution):
A new InfoLabel. I know, its not the best way because of the user credentials. BUT: There's also an InfoLabel "Player.Filenameandpath", which contains the raw URL of the currently played media:
With user credentials and correctly encoded. Why is this not possible for the currently selected item?

When the only problem are the authentification infos, why is it okay with "Player.Filenameandpath"?

This new RAW Url InfoLabel "ListItem.FileNameAndPathRAW" would solve the problems in my add-on.

Cheers,
asde
find quote
AddonScriptorDE Offline
Fan
Posts: 310
Joined: May 2012
Reputation: 14
Location: Germany
Post: #18
(2012-06-19 15:06)AddonScriptorDE Wrote:  
(2012-06-06 01:59)jmarshall Wrote:  The problem is infolabels are designed for display in the skin - you're using them for quite a different purpose. I'm wary of exposing anything credentials-wise as it's too hard to restrict it.

The playlist stuff likely exposes directly as that's restricted to python.
If its really not possible to solve my problem right now, it would be so great if it can be fixed with Frodo. A python function for getting the currently selected item url, or (a really simple solution):
A new InfoLabel. I know, its not the best way because of the user credentials. BUT: There's also an InfoLabel "Player.Filenameandpath", which contains the raw URL of the currently played media:
With user credentials and correctly encoded. Why is this not possible for the currently selected item?

When the only problem are the authentification infos, why is it okay with "Player.Filenameandpath"?

This new RAW Url InfoLabel "ListItem.FileNameAndPathRAW" would solve the problems in my add-on.

Cheers,
asde
@jmarshall: So there is no chance for a new InfoLabel?
find quote
doveman2 Offline
Senior Member
Posts: 230
Joined: Nov 2012
Reputation: 0
Post: #19
Please fix this so that AddonScriptorDE's awesome Smart Playlists addon can work properly.
find quote
Post Reply