Posts: 36
Joined: Sep 2015
Reputation:
0
mcrs
Junior Member
Posts: 36
2015-10-29, 15:56
(This post was last modified: 2015-10-29, 15:57 by mcrs.)
Lunatixz, getPlayingFile(...) returns the same as Player.Filenameandpath infolabel (path of currently playing item from the playlist)
I do not see the getter in the Playlist class. It does not have the getter for playlist full path. I already tried it before.
Posts: 36
Joined: Sep 2015
Reputation:
0
mcrs
Junior Member
Posts: 36
I will repost, but it seems you do not get the idea.
I have an m3u list (strm is the same thing) = container.
Each link is http stream. But it does not matter, it can be a list of local items. Each item, of course, has its own path.
There's a path of the container (m3u)
There's a path of each item in the container.
If XBMC/Kodi "forgets" the original container (path of m3u) that is WEIRD.
Posts: 36
Joined: Sep 2015
Reputation:
0
mcrs
Junior Member
Posts: 36
2015-10-29, 18:07
(This post was last modified: 2015-10-29, 18:13 by mcrs.)
Well, OK, I cannot do with both.
It is not important to me where to put the links.
How to get the full playlist (container) path ? (tell me to use ANY extension, basically it's the same, just the list of full paths of http streams or local files)
After all, this container is just a PLAIN TEXT FILE. It has a system path! As we discussed, the Playlist object is an object representation of this file, how on Earth does it not contain its path? The constructor should save it!
Suppose, I put the links to .m3u or .strm or whatever you tell me.
Next I invoke in .py
PlayMedia("full path to playlist")
Now I need to get the container full path (whatever it was - m3u strm pls etc) in another independent script
HOW??
Posts: 36
Joined: Sep 2015
Reputation:
0
mcrs
Junior Member
Posts: 36
Still looking for someone who will tell (and explain why): this is impossible in Kodi.
Posts: 445
Joined: Sep 2015
Reputation:
1
2015-11-16, 21:19
(This post was last modified: 2015-11-16, 23:20 by Torben.)
My guess! Is that all the items in the playlist is simply being added to tje queue of the player as simple playabæe items? At least that is sort of what i see when playing songs from an album. My solution is to write my own script that adds songs to the queue but includes album info as a parameter in the listitem in the queue. A path to the playlist it originates from ahould also be possible to add.
Again, i am just guessing here as probably only a select few very busy people knows anyrhing about the inner workings... good luck :-)
Pardon all tje typos. Idiot phone (with an idiot typing even).
Posts: 359
Joined: Jan 2014
Reputation:
18
sorry, just not understanding the question properly, but if you're passing the stream, how would you not know the stream path? for example if I do,
my_video = "http://example.com/video.m3u8"
PlayMedia(my_video)
I'd know the path by calling my_video.
am I missing something?
Posts: 445
Joined: Sep 2015
Reputation:
1
I think there could be more playlists imported to the queue, so therefore also more paths? Not sure, just trying to be helpful.