Skip to content

Commit

Permalink
V 0.7.6
Browse files Browse the repository at this point in the history
* Add nocheck attribute for EpgImporter sources (fix for new EpgImporter version)
* Add m3u8 VOD stream matching
  • Loading branch information
DougMac committed Sep 14, 2018
1 parent 213abf0 commit 1bcbc3b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ which makes editing the crontab easier)
### v0.7.5
* Additional stream url type checking (e.g. live or VOD)

### v0.8
* When providers boquet is downloaded (-b or -bd option) use full service references
instead of just the epg releveant part incase it's used for picon naming
### v0.7.6
* Add nocheck attribute for EpgImporter sources (fix for new EpgImporter version)
* Add m3u8 VOD stream matching

Visit https://www.suls.co.uk/enigma2-iptv-bouquets-with-epg/ for further information on the script
16 changes: 10 additions & 6 deletions e2m3u2bouquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
from argparse import RawDescriptionHelpFormatter

__all__ = []
__version__ = '0.7.5'
__version__ = '0.7.6'
__date__ = '2017-06-04'
__updated__ = '2018-06-08'
__updated__ = '2018-09-14'

DEBUG = 0
TESTRUN = 0
Expand Down Expand Up @@ -342,7 +342,11 @@ def set_streamtypes_vodcats(self, channeldict, all_iptv_stream_types, tv_stream_
"""
parsed_stream_url = urlparse.urlparse(channeldict['stream-url'])

# check for vod streams ending .*.m3u8 e.g. 2345.mp4.m3u8
is_m3u8_vod = re.search('\..+\.m3u8$', parsed_stream_url.path)

if (parsed_stream_url.path.endswith('.ts') or parsed_stream_url.path.endswith('.m3u8')) \
and not is_m3u8_vod \
and not channeldict['group-title'].startswith('VOD'):
channeldict['stream-type'] = '4097' if all_iptv_stream_types else '1'
if tv_stream_type:
Expand Down Expand Up @@ -988,7 +992,7 @@ def create_epgimport_source(self, sources, provider, group=None):
with open(os.path.join(EPGIMPORTPATH, source_filename), "w+") as f:
f.write('<sources>\n')
f.write('{}<sourcecat sourcecatname="IPTV Bouquet Maker - E2m3u2bouquet">\n'.format(indent))
f.write('{}<source type="gen_xmltv" channels="{}">\n'
f.write('{}<source type="gen_xmltv" nocheck="1" channels="{}">\n'
.format(2 * indent, channels_filename))
f.write('{}<description>{}</description>\n'.format(3 * indent, self.xml_escape(source_name)))
for source in sources:
Expand Down Expand Up @@ -1107,11 +1111,11 @@ def makeconfig(self, configfile):
f = open(configfile, 'wb')
f.write("""<!--\r
E2m3u2bouquet supplier config file\r
Add as many suppliers as required and run the script with no parameters\r
this config file will be used and the relevant bouquets set up for all suppliers entered\r
Add as many suppliers as required and run the script with no parameters\r
this config file will be used and the relevant bouquets set up for all suppliers entered\r
0 = No/false\r
1 = Yes/true\r
For elements with <![CDATA[]] enter value between brackets e.g. <![CDATA[mypassword]]>\r
For elements with <![CDATA[]] enter value between brackets e.g. <![CDATA[mypassword]]>\r
-->\r
<config>\r
<supplier>\r
Expand Down

0 comments on commit 1bcbc3b

Please sign in to comment.