I wanted to add the vod streams from my iptv provider into emby and make it look like the other movie and tv show directories. I couldn't find a free tool to do this ridiculously simple task, and so I decided to put my python skills to work for other my other emby enthusiasts.
Hope it helps someone.
Depending on the type of m3u file you have, one of these scripts may support it, or you may need to post a few lines of your TV shows and Movies in order for me to add parsing for it.
Check below in the updates to see which script you want to use depending on how your m3u file is formatted.
code Last Updated 3/26/2020
Update on 3/26/2020
I have released a new version which is more versitile. You can find it at
This one handles more m3u types, and has support for live tv streams (though live tv is not yet implemented.)
I was able to generate about 10000 stream files with this in less than 2 minutes.
Update on 3/14/2020
In order to make this script more globally compatible... if anyone can PM me the first 25 lines of your m3u file for your VOD TV (please edit out your username and password before sending it) it will allow me to add parsing for other companies m3u files.
The current supported formats are as follows:
For TV Shows:
#EXTINF:0 group-title="TV VOD",HD : My Hero Academia S04E10 #EXTGRP:TV VOD http://URL
(for daily running shows like "The Late Show" or "Jimmy Fallon"
#EXTINF:0 group-title="TV VOD",HD : Jimmy Fallon 2019 12 20 Eddie Murphy 720p WEB x264-XLF #EXTGRP:TV VOD http://tURL
#EXTINF:0 group-title="Movie VOD",HD : The Adventure Of A R I My Robot Friend 2020 #EXTGRP:Movie VOD http://URLS
Update on 3/18/2020
I have created a second script for the other VOD m3u files mentioned. It can be found located at : https://github.com/s...r/m3u2strm-2.py
Eventually when I have some time I will make it just a single script, right now the code is not very clean, I need to break stuff into separate classes and functions, then I can have a single script to parse them all, but for now this works.
This one supports TV shows in the following formats:
#EXTINF:-1,|FR| Blindspot S01 |FR| Blindspot 01x12 - Super soldat http://serverIPTV.co...ssword/9975.mkv #EXTINF:-1,|FR| Burger Quiz S01 |FR| Burger Quiz 01x05 http://serverIPTV.co...word/751209.mkv
#EXTINF:-1,|FR| Le plan B http://serverIPTV.co...word/755418.mkv
Edited by t1m, 26 March 2020 - 08:55 PM.