Skip to content

Commit

Permalink
Merge pull request #39 from su1s/0.6-updates-dm
Browse files Browse the repository at this point in the history
v0.6.2
  • Loading branch information
DougMac committed Sep 20, 2017
2 parents 3dd9567 + 29927b2 commit 0f9c405
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -266,4 +266,7 @@ which makes editing the crontab easier)
* [plugin] Add IPTV bouquet position option
* [plugin] Add option download providers bouquet (for custom service refs)

#### v0.6.2
* Put epg-importer source in source cat for new epg-importer version

Visit https://www.suls.co.uk/enigma2-iptv-bouquets-with-epg/ for further information on the script
17 changes: 10 additions & 7 deletions e2m3u2bouquet.py
Expand Up @@ -30,9 +30,9 @@
from argparse import RawDescriptionHelpFormatter

__all__ = []
__version__ = '0.6.1'
__version__ = '0.6.2'
__date__ = '2017-06-04'
__updated__ = '2017-08-26'
__updated__ = '2017-09-19'

DEBUG = 0
TESTRUN = 0
Expand Down Expand Up @@ -888,12 +888,14 @@ def create_epgimport_source(self, sources, source_name):

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'
.format(indent, channels_filename))
f.write('{}<description>{}</description>\n'.format(2 * indent, self.xml_escape(source_name)))
.format(2 * indent, channels_filename))
f.write('{}<description>{}</description>\n'.format(3 * indent, self.xml_escape(source_name)))
for source in sources:
f.write('{}<url>{}</url>\n'.format(2 * indent, self.xml_escape(source)))
f.write('{}</source>\n'.format(indent))
f.write('{}<url>{}</url>\n'.format(3 * indent, self.xml_escape(source)))
f.write('{}</source>\n'.format(2 * indent))
f.write('{}</sourcecat>\n'.format(indent))
f.write('</sources>\n')

def read_providers(self,providerfile):
Expand Down Expand Up @@ -1145,7 +1147,8 @@ def main(argv=None): # IGNORE:C0111
print("********************************")
print("\nTo enable EPG data")
print("Please open EPG-Importer plugin.. ")
print("Select sources and enable the new IPTV sources (will be listed as {})".format(provider))
print("Select sources and enable the new IPTV source")
print("(will be listed as {} under 'IPTV Bouquet Maker - E2m3u2bouquet')".format(provider))
print("Save the selected sources, press yellow button to start manual import")
print("You can then set EPG-Importer to automatically import the EPG every day")

Expand Down

0 comments on commit 0f9c405

Please sign in to comment.