You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,4 +12,17 @@ Setup:
12
12
5. Setup the zap2epg grabber in tvheadend
13
13
6. Enjoy your new EPG!
14
14
15
+
Language identification is accomplished through a python module 'LandId'. This module does not have to be installed inside the Kodi interpreter but must be installed in on the device machine.
16
+
For debian based machines
17
+
1. sudo apt-get update
18
+
2. sudo apt-get install pip (if not already installed)
19
+
3. sudo apt-get install python3-numpy
20
+
4. pip install langid
21
+
22
+
If you try to install langid befoure installying numpy, you may get an error as the langid tries to install it but cannot find the required files.
23
+
24
+
The setting "Use Hex values for genre type instead of textual name" will use the hex values from http://www.etsi.org/deliver/etsi_en/300400_300499/300468/01.11.01_60/en_300468v011101p.pdf
25
+
Both Kodi and TVH use those categories as their genre groups. Kodi understands and stores the genre information as a hex value. As of now, I can't figure out how to get TVH to recognize the genre hex values.
26
+
27
+
15
28
* Note that zap2epg is a proof of concept and is for personal experimentation only. It is not meant to be used in a commercial product and its use is your own responsibiility.
dialog.ok("Tvheadend Access Error!",str(err), "", "Please check your username/password in settings.")
82
+
dialog.ok("Tvheadend Access Error!",f"{err}\n\nPlease check your username/password in settings.")
82
83
exceptrequests.exceptions.RequestExceptionase:
83
-
dialog.ok("Tvheadend Access Error!", "Could not connect to Tvheadend server.", "Please check your Tvheadend server is running or check the IP and port configuration in the settings.")
84
+
dialog.ok("Tvheadend Access Error!", "Could not connect to Tvheadend server.\nPlease check your Tvheadend server is running or check the IP and port configuration in the settings.")
dialog.ok('Location not configured!', '', 'Please setup your location before configuring channels.')
133
+
dialog.ok('Location not configured!', 'Please setup your location before configuring channels.')
133
134
ifnotos.path.isfile(Clist):
134
135
create_cList()
135
136
else:
136
-
newList=dialog.yesno('Existing Channel List Found', 'Would you like to download a new channel list or review your current list?', '', 'Select Yes to download new list.')
137
+
newList=dialog.yesno('Existing Channel List Found', 'Would you like to download a new channel list or review your current list?', 'Review', 'Download')
dialog.ok('zap2epg Finished!', 'zap2epg completed in '+str(status[0]) +' seconds.', '',str(status[1]) +' Stations and '+str(status[2]) +' Episodes written to xmltv.xml file.')
243
+
dialog.ok('zap2epg Finished!', 'zap2epg completed in '+str(status[0]) +' seconds.\n'+str(status[1]) +' Stations and '+str(status[2]) +' Episodes written to xmltv.xml file.')
242
244
243
245
244
246
@@ -253,25 +255,25 @@ def index():
253
255
items.append(
254
256
{
255
257
'label': 'Run zap2epg and Update Guide Data',
256
-
'path': plugin.url_for(u'run'),
258
+
'path': plugin.url_for('run'),
257
259
'thumbnail':get_icon_path('run'),
258
260
})
259
261
items.append(
260
262
{
261
263
'label': 'Change Current Location | Zipcode: '+zipcode+' & Lineup: '+lineup,
262
-
'path': plugin.url_for(u'location'),
264
+
'path': plugin.url_for('location'),
263
265
'thumbnail':get_icon_path('antenna'),
264
266
})
265
267
items.append(
266
268
{
267
269
'label': 'Configure Channel List',
268
-
'path': plugin.url_for(u'channels'),
270
+
'path': plugin.url_for('channels'),
269
271
'thumbnail':get_icon_path('channel'),
270
272
})
271
273
items.append(
272
274
{
273
275
'label': 'Configure Settings and Options',
274
-
'path': plugin.url_for(u'open_settings'),
276
+
'path': plugin.url_for('open_settings'),
275
277
'thumbnail':get_icon_path('settings'),
276
278
})
277
279
returnitems
@@ -287,7 +289,7 @@ def index():
287
289
lineup=xbmcaddon.Addon().getSetting('lineup')
288
290
device=xbmcaddon.Addon().getSetting('device')
289
291
ifzipcode==''orlineup=='':
290
-
zipConfig=dialog.yesno('No Lineup Configured!', 'You need to configure your lineup location before running zap2epg.', '', 'Would you like to setup your lineup?')
292
+
zipConfig=dialog.yesno('No Lineup Configured!', 'You need to configure your lineup location before running zap2epg.\n\nWould you like to setup your lineup?')
0 commit comments