What's new

VU+ Plugins - Streaming & IPTV Suls e2m3u2bouquet IPTV Bouquet Maker Latest Version

Ten Below

Staff member
Admin
Joined
Sep 9, 2014
Messages
8,126
Points
628
Location
@vuplusimages
Website
vuplus-images.co.uk
Suls e2m3u2bouquet 0.6 IPTV Bouquet Maker

shot1.jpg

v0.6
  • Better m3u parsing
  • Plugin
Plugin (beta)
We’ve now released a plugin for the script. As it’s still in beta please only use if you are comfortable knowing it’s only had limited testing and know how to re-flash your box if you encounter any issues.
Update: Not had any negative reports so should be safe to use

Plugin features:-

  • Named provider support
  • Ability to set commonly used options
  • Ability to set an update schedule
Plugin install
  • Download the ipk and ftp it to the /tmp folder on the box.
  • Either install it from the box GUI (in OpenVix this will be ‘Menu -> Setup -> ViX -> Install local extension
    or SSH/Telnet to to the box and run ‘opkg install /tmp/enigma2 [TAB – to autocomplete path]
  • Reboot box
  • Open your plugins menu, there should now be a plugin named ‘IPTV Bouquet Maker (IPTV for Enigma2 – E2m3u2bouquet plugin)’

Potential Issues
Custom sorting – If you have an override.xml file then when the bouquet update is happening you may see the spinner graphic and the box ui may be unresponsive for around a minute

Downloading Picons (especially on first run) takes a long time. Your box will show the spinner graphic and the ui will be unresponsive while this happening.

Thanks to ..
You’ll notice that the plugin looks a lot like Epg-Importer. Epg-Importer was used as the starting point of the plugin so all credit to the Epg-Importer team for developing their great plugin.

Code:
https://www.suls.co.uk
 

Attachments

Ten Below

Staff member
Admin
Joined
Sep 9, 2014
Messages
8,126
Points
628
Location
@vuplusimages
Website
vuplus-images.co.uk
v0.6.1
Script changes
  • Dedicated config directory ‘/etc/enigma2/e2m3u2bouquet’
  • Pre Python 2.7.9 SSL context workaround
  • Remove delimiter options (command arguments -d1, -d2, -d3, -d4)
  • Option to place IPTV bouquets at top or bottom ‘-bt’
  • Consistent channel numbering (best results when IPTV bouquets are set to top). Each new IPTV category will start numbering +100 from start of last category
Plugin changes
  • Add /picon option for download path
  • Show last playlist update
  • Add override service refs option
  • Add IPTV bouquet position option
  • Add option download providers bouquet (for custom service refs)
Notes
The delimiter command arguments have been removed (-d1, -d2, -d3, -d4). Due to improvement in the m3u parsing these are no longer needed

The script and plugin will now save e2m3u2bouquet-sort-current.xml and look for e2m3u2bouquet-sort-override.xml in the new config directory ‘/etc/enigma2/e2m3u2bouquet’. If the override file can’t be found in the config folder it will also check in the current working directory ‘/hoem/root’ in most cases.

Plugin Potential Issues
Custom sorting – If you have an override.xml file then when the bouquet update is happening you may see the spinner graphic and the box ui may be unresponsive for around a minute

Downloading Picons (especially on first run) takes a long time. Your box will show the spinner graphic and the ui will be unresponsive while this happening.
 

Attachments

Ten Below

Staff member
Admin
Joined
Sep 9, 2014
Messages
8,126
Points
628
Location
@vuplusimages
Website
vuplus-images.co.uk
v0.7
Updated release today of the script only. This update adds the following functionality to the script

  • Config file based settings
  • Support for multiple providers
If you are a plugin user on 0.6.3 with a single IPTV provider there is no need to upgrade to script version 0.7 (Plugin v0.7 is in the pipe line).

However as probably the largest out standing feature on our list I thought it worth releasing the script alone for those that don’t mind the command line.

Install Guide
Download and extract the e2m3u2bouquet.py file.

FTP it to /etc/enigma2/e2m3u2bouquet on your enigma2 box.

SSH into your enigma box, then;

Code:
cd /etc/enigma2/e2m3u2bouquet
chmod 755 e2m3u2bouquet.py
./e2m3u2bouquet.py
The script on first run will create a config.xml in /etc/enigma2/e2m3u2bouquet and tell you to fill it in.

Edit the config.xml and populate provider details and settings for as many providers as your require, the XML is commented so should be pretty straight forward.

NB: You need to change the supplier name field for the script to know you have updated the file.

nano config.xml
or
vi config.xml

Or use FTP to transfer the file for editing and replace it.

Then run the script again.

Code:
./e2m3u2bouquet.py
This will create bouquets for all the providers specificed and enabled in the config file.

Automation
To automate this use cron.

Code:
crontab -e
enter

Code:
0 5 * * * /etc/enigma2/e2m3u2bouquet/e2m3u2bouquet.py >> /tmp/e2.log
and press ESC follwed by :wq to exit the cron editor and save the entry. This will update your bouquets at 5am daily.
 

Attachments

Ten Below

Staff member
Admin
Joined
Sep 9, 2014
Messages
8,126
Points
628
Location
@vuplusimages
Website
vuplus-images.co.uk
v0.7.1
Script changes
  • Make sure comments are xml safe
  • Extract username and password from m3u url if they are not passed in
  • Set services to stream type ‘1’ in epg config so that the epg can be imported if
    serviceapp is overriding stream type ‘4097’ to exteplayer3
  • Minor fixes & tidy
  • Option for custom stream type for TV and VOD
  • Allow https & rtmp services
  • Unicode fixes
  • Url encoding fixes
Plugin changes
  • Multi custom provider support
  • File based setup (values can be edited in an xml file instead)
    of entered using the remote
  • Provider managed update system
  • Fixed time schedule type
  • Option for custom stream type for TV and VOD

Installation
  • Download the ipk and ftp it to the /tmp folder on the box.
  • Either install it from the box GUI (in OpenVix this will be ‘Menu -> Setup -> ViX -> Install local extension
    or SSH/Telnet to to the box and run ‘opkg install /tmp/enigma2 [TAB – to autocomplete path]
  • Reboot box
  • Open your plugins menu, there should now be a plugin named ‘IPTV Bouquet Maker (IPTV for Enigma2 – E2m3u2bouquet plugin)’
Upgrading
If you install over the previous version it should migrate your existing settings and provider to the config file based setup

Configuration
plugin-screen-1-219x300.png

Start the plugin and then select configure to set general options

plugin-screen-2-219x300.png

Select providers to configure providers

plugin-screen-3-219x300.png

Press the green button add a new provider or press ok to edit an existing provider

plugin-screen-4-219x300.png

Enter at least the name and press green to save. For entering long urls instead of using the remote control it is recommended to edit the config file (see below)

Config file

The config file is located in /etc/enigma2/e2m3u2bouquet/config.xml and an example is below. You should be able to edit this file from your ftp client (or download, edit, upload back to box)

Code:
<!--
 E2m3u2bouquet supplier config file
 Add as many suppliers as required
 this config file will be used and the relevant bouquets set up for all suppliers entered
 0 = No/False
 1 = Yes/True
 For elements with <![CDATA[]] enter value between empty brackets e.g. <![CDATA[mypassword]]>
-->
<config>
 <supplier>
 <name>SULS</name><!-- Supplier Name -->
 <enabled>1</enabled><!-- Enable or disable the supplier (0 or 1) -->
 <settingslevel>simple</settingslevel>
 <m3uurl><![CDATA[http://www.suls.co.uk/get.php?username=USERNAME&password=PASSWORD&type=m3u_plus&output=ts]]></m3uurl><!-- Extended M3U url -->
 <epgurl><![CDATA[http://www.suls.co.uk/xmltv.php?username=USERNAME&password=PASSWORD]]></epgurl><!-- XMLTV EPG url -->
 <username><![CDATA[myusername]]></username><!-- (Optional) will replace USERNAME placeholder in urls -->
 <password><![CDATA[mypassword]]></password><!-- (Optional) will replace PASSWORD placeholder in urls -->
 <providerupdate><![CDATA[]]></providerupdate><!-- (Optional) Provider update url -->
 <iptvtypes>0</iptvtypes><!-- Change all TV streams to IPTV type (0 or 1) -->
 <streamtypetv></streamtypetv><!-- (Optional) Custom TV stream type (e.g. 1, 4097, 5001 or 5002 -->
 <streamtypevod></streamtypevod><!-- (Optional) Custom VOD stream type (e.g. 4097, 5001 or 5002 -->
 <multivod>0</multivod><!-- Split VOD into seperate categories (0 or 1) -->
 <allbouquet>0</allbouquet><!-- Create all channels bouquet (0 or 1) -->
 <picons>0</picons><!-- Automatically download Picons (0 or 1) -->
 <xcludesref>1</xcludesref><!-- Disable service ref overriding from override.xml file (0 or 1) -->
 <bouqueturl><![CDATA[]]></bouqueturl><!-- (Optional) url to download providers bouquet - to map custom service references -->
 <bouquetdownload>0</bouquetdownload><!-- Download providers bouquet (uses default url) must have username and password set above - to map custom service references -->
 <bouquettop>0</bouquettop><!-- Place IPTV bouquets at top (0 or 1) -->
 </supplier>
</config>
Provider url, port, name updates
With the introduction of the config file based setup there is now no need for us the maintain a database of provider details. It’s now up to provider to manage updates themselves. The provider can do this by setting the <providerupdate> element to the url of a text file. The text file should contain ‘Name,M3UURL,EPGURL’ e.g.
Code:
SULS,http://www.suls.co.uk/get.php?username=USERNAME&password=PASSWORD&type=m3u_plus&output=ts,http://www.suls.co.uk/xmltv.php?username=USERNAME&password=PASSWORD
The USERNAME & PASSWORD placeholders will be replaced with the values from the <username> & <password> elements in the config file
 

Attachments

Ten Below

Staff member
Admin
Joined
Sep 9, 2014
Messages
8,126
Points
628
Location
@vuplusimages
Website
vuplus-images.co.uk
Update V0.7.2

Make sure comments are xml safe
Extract username and password from m3u url if they are not passed in
Set services to stream type '1' in epg config so that the epg can be imported if
serviceapp is overriding stream type '4097' to exteplayer3
Minor fixes & tidy
Option for custom stream type for TV and VOD
Allow https & rtmp services
Unicode fixes
Url encoding fixes
[plugin] Multi custom provider support
[plugin] Config file based setup (values can be edited in an xml file instead)
of entered using the remote
[plugin] Provider managed update system
[plugin] Fixed time schedule type
[plugin] Option for custom stream type for TV and VOD
 

Attachments

Last edited:

Ten Below

Staff member
Admin
Joined
Sep 9, 2014
Messages
8,126
Points
628
Location
@vuplusimages
Website
vuplus-images.co.uk
V 0.7.6
We’ve had some reports of issues with epgimport .

Initial investigation suggest that a recent epgimport update will stop it from working with any panel’s epg feed.

We’ll investigate further but in the meantime we suggest not updating to the latest epgimport version.

Update

This issue is caused by the latest version of epgimport checking for a ‘LastUpdate.log’ file on the server that supplies the xmltv epg feed. If the file doesn’t exist or the date within is older than 2 days then the server is considered invalid and not used. Unfortunately this file is used by Rytec feed servers but not IPTV panels.

We’ve released v0.7.6 which sets a flag in the epgimport sources to ignore this check however this flag has only recently been added to epgimport and at the moment only works on the OpenPLI branch and not the OE-Alliance fork. Hopefully the OE-Alliance fork will merge this feature soon.

TL;DR

New versions of epgimport have broken the epg for IPTV panels. You should avoid updating epgimport for now, or revert to a previous version.

Updating to v0.7.6 of this script/plugin should fix the issue on OpenPli and hopefully future OE-Alliance images.
 

Attachments

vusolo2

Staff member
Super Moderator
Joined
Jul 3, 2015
Messages
3,181
Points
188
Age
49
Website
forum.techneteuweb.eu
enigma2-plugin-extensions-e2m3u2bouquet_0.8.1_all

whats new:

-Fix issue where new providers couldn't be added
-When providers bouquet is downloaded (-b or -bd option) now uses full
service references
instead of just the epg relevant part in case it's used for picon naming
-Better multi provider handler e.g. if there is an issue with one provider it
won't stop the script processing others
-If vod categories are out of order in the playlist group together
-Fix file naming issues with non alphanumeric characters
-Much faster when using an override file :)
-Don't retry failed picon downloads
-Option to add placeholder channel in override file (to control channel numbering)
-Allow channels to be moved between categories, use categoryOverride in the override file
-All custom categories, use customCategory="true" in the override file
-Add provider managed update support
 

Attachments

.:MadMax:.

Significant Contributor
Member
Joined
Jan 17, 2019
Messages
42
Points
18
Version .0.8.2

-Fix issue with fixed time update schedule
  • Download the ipk and ftp it to the /tmp folder on the box. N.B. if the config.xml file (see below) is in the /tmp folder it will also be installed if an existing one doesn’t exist
  • Either install it from the box GUI (in OpenVix this will be ‘Menu -> Setup -> ViX -> Install local extension
    or SSH/Telnet to to the box and run
Importing EPG Data



  • Open EPG-Importer plugin (download it if you haven't already got it)
  • Select sources (Blue button on OpenVix)
  • Enable the source created by the script (listed under IPTV Bouquet Maker - E2m3u2bouquet)
  • Kick off a manual EPG import
Add Plugin install Generator Attached

plugin_install_generator-300x188.gif

You can also download a generator that will let you enter your details and generate a one line install command with the plugin preconfigured. Right click on the following link select ‘save link as’ and then save to your PC – generator download. You can then run the generator by opening the downloaded file.

Open your plugins menu, there should now be a plugin named ‘IPTV Bouquet Maker (IPTV for Enigma2 – E2m3u2bouquet plugin)’
 

Attachments

Last edited:

Top Bottom