Skeleton plugin for .m3u?

Note: I had posted this is the user/plug-in forum, but decided ask the question here, since it seems more appropriate.



I am wanting to create a plugin that downloads a playlist from a specifc URL, which will be configured in the plugin. Is there a plugin that I can base my implementation on? The playlist is in m3u format.



The goal is to be able to create a plugin for use with the Free.fr IPTV channels. With that service you can get a list of channels by accessing:



http://mafreebox.freebox.fr/freeboxtv/playlist.m3u



From behind you Freebox, though any work done for this plugin could be used for any other services where a fixed address for the playlist is used. I am still new to the plugin work.



The streams are in rtsp format (not the Realmedia specific version), which can be played back with applications such as VLC. I believe ffmpeg supports this format.



BTW I do realise that you can specify a playlist through the UI already, I just want to make it easier in certain scenarios, and to be able to augment the playlist with channel logos.

You can play directly a m3u playlist in plex. Just copy the file somewhere in a directory. Add this directory as a source in Plex and you can play it with the “my videos” section.

But about free, the playlist uses rtsp streams don’t well supported by xbmc and plex. Some solutions are tested with XBMC by using a proxy which convert rtsp stream in http stream. You should search on XBMC forums.

I never read that some one is developing a solution on Plex but you are welcome to start. Perhaps start a post on the Plex’s French forums since free is a French provider.



Bonne chance :rolleyes:



I realise that I can save the file, but I would like to make it so that it keeps on pointing to the source playlist. This way if it ever changes the user doesn't have go through the steps of downloading it and installing it again. Think of this as a convenience thing.

putting aside that that link seems to be dead, a m3u is just a text file, you should be able to parse it with regex filters or something to get the direct stream urls, then you can just dir.Append each stream as a VideoItem.



Its not dead, you can only access it if you have free.fr as a provider.

I will look into implementing a solution, though I was hoping the work had already been half done ;)

Is there any reason why you can’t just redirect to the playlist URL?

With the work I did on the skeleton xspf plugin (see: http://forums.plexapp.com/index.php?showtopic=9136)) I went ahead and did the same thing for M3U playlists. What I am providing is more a rough and ready solution, simply to get the ball rolling, rather than something that is finely polished, so there is plenty of room for improvement. Eventually it would probably make sense to merge the functionality of the two plugins into one, based on the file name extensions.



<catgories><br />
   <category title="entry 1" type="video"><br />
	  <url>http://localhost/misc/test.m3u</url><br />
   </category><br />
   <category title="entry 2" type="PlaylistGroup"><br />
	  <catgories><br />
		 <category title="entry A" type="video"><br />
			<url>http://localhost/misc/test.m3u</url><br />
		 </category><br />
		 <category title="entry B" type="video"><br />
			<url>http://localhost/misc/test.m3u</url><br />
		 </category><br />
		 <category title="entry C" type="video"><br />
			<url>http://localhost/misc/test.m3u</url><br />
		 </category><br />
	  </catgories><br />
   </category><br />
</catgories>



I based the parser on the m3u provided by free.fr for the television stations there, where a typical entry looks like:

#EXTINF:0,2 - France 2 <br />
rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=201&flavour=sd

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.