2019-08-06, 18:58
2019-08-07, 10:42
(2019-08-06, 18:58)M89SE Wrote: @moshoodo123@M89SE , thanks for your help so far, unfortunately, it still same result. below is my code after the edit.
Sorry I forgot about that, try adding this on row 9.
Code:s = re.sub(':00min$', '', s)
startDelta = datetime.datetime.now() - program.startDate
endDelta = datetime.datetime.now() - program.endDate
s = (startDelta - endDelta)
s = re.sub(r'^0:', '', str(s))
s = re.sub(r':00$', 'm', str(s))
s = re.sub(':', 'h ', str(s))
s = re.sub(':00m$', '', s)
matchHour = re.search(r'h\s\d+m$', s)
matchMin = re.search(r'^0\s\dm', s)
if matchMin:
s = re.sub(r'^0', '', str(s))
self.setControlLabel(self.C_MAIN_CALC_TIME_EPG, '%s' % (s))
Regards
2019-08-07, 11:22
2019-08-07, 22:05
@moshoodo123
This should do the trick, made a mistake earlier adding a colon.
This should do the trick, made a mistake earlier adding a colon.
python:startDelta = datetime.datetime.now() - program.startDate
endDelta = datetime.datetime.now() - program.endDate
s = (startDelta - endDelta)
s = re.sub(r'^0:', '', str(s))
s = re.sub(r':00$', 'min', str(s))
s = re.sub(':', 'h ', str(s)) #<--- Added a space after "h".
s = re.sub(r'00min$', '', str(s)) #<--- Removed 00min if single hour.
matchHour = re.search(r'h\s\d+min$', s) #<--- Added a "\s" after "h".
matchMin = re.search(r'^0\s\dmin', s) #<--- Added a "\s" after "0".
#if matchHour: #<--- Commented this with a "#".
#s = re.sub(r'min$', '', str(s)) #<--- Commented this with a "#".
if matchMin: #<--- Changed from "elif" to "if".
s = re.sub(r'^0', '', str(s))
self.setControlLabel(self.C_MAIN_CALC_TIME_EPG, '%s' % (s))
2019-08-08, 09:35
(2019-08-07, 22:05)M89SE Wrote: @moshoodo123@M89SE , you are a wonderful person. you just saved my life lol... that did the trick.
This should do the trick, made a mistake earlier adding a colon.
python:startDelta = datetime.datetime.now() - program.startDate
endDelta = datetime.datetime.now() - program.endDate
s = (startDelta - endDelta)
s = re.sub(r'^0:', '', str(s))
s = re.sub(r':00$', 'min', str(s))
s = re.sub(':', 'h ', str(s)) #<--- Added a space after "h".
s = re.sub(r'00min$', '', str(s)) #<--- Removed 00min if single hour.
matchHour = re.search(r'h\s\d+min$', s) #<--- Added a "\s" after "h".
matchMin = re.search(r'^0\s\dmin', s) #<--- Added a "\s" after "0".
#if matchHour: #<--- Commented this with a "#".
#s = re.sub(r'min$', '', str(s)) #<--- Commented this with a "#".
if matchMin: #<--- Changed from "elif" to "if".
s = re.sub(r'^0', '', str(s))
self.setControlLabel(self.C_MAIN_CALC_TIME_EPG, '%s' % (s))
Thanks s lot
2019-08-09, 08:09
(2019-05-23, 20:36)Cangeoboy Wrote:(2019-05-22, 15:32)francismm Wrote: How do i set this up?I sometimes get this error if I have a channel selected with foreign characters in its epg. See my post above. If you are able to remove that channel from your xmltv file then it may solve this problem.
I keep getting "oops, sorry about that". It was not possible to load program data, because the settings are invalid.
I used zip repository.primaeval-0.0.2
I load version 0.17.445
I don't know what i need to put on the settings considering there is no provision for username or password.
This is on Kodi 17.6 both on Windows and Android.
Probably need to add utf-8 encoding to the parser in TVGF, I think that should fix the problem of reading foreign channels.
2019-08-22, 00:04
(2019-08-08, 09:35)moshoodo123 Wrote:@moshoodo123 , are you using this script on Android box or on PC? just asking because it works perfect on my PC but the timing are not correct on Android, is show like 39h 3999999999 if using on android can you please confirm.(2019-08-07, 22:05)M89SE Wrote: @moshoodo123@M89SE , you are a wonderful person. you just saved my life lol... that did the trick.
This should do the trick, made a mistake earlier adding a colon.
python:startDelta = datetime.datetime.now() - program.startDate
endDelta = datetime.datetime.now() - program.endDate
s = (startDelta - endDelta)
s = re.sub(r'^0:', '', str(s))
s = re.sub(r':00$', 'min', str(s))
s = re.sub(':', 'h ', str(s)) #<--- Added a space after "h".
s = re.sub(r'00min$', '', str(s)) #<--- Removed 00min if single hour.
matchHour = re.search(r'h\s\d+min$', s) #<--- Added a "\s" after "h".
matchMin = re.search(r'^0\s\dmin', s) #<--- Added a "\s" after "0".
#if matchHour: #<--- Commented this with a "#".
#s = re.sub(r'min$', '', str(s)) #<--- Commented this with a "#".
if matchMin: #<--- Changed from "elif" to "if".
s = re.sub(r'^0', '', str(s))
self.setControlLabel(self.C_MAIN_CALC_TIME_EPG, '%s' % (s))
Thanks s lot
Thanks
2019-08-24, 00:30
With the loss of tvtv.us, I redid my epg source and then did a full reset of TV Guide Fullscreen. For some reason all of my logos are gone. I have a separate folder configured with all of the logos so I know they are there.
Is there some way to force TV Guide FullScreen to reload the logos?
Thank you
Is there some way to force TV Guide FullScreen to reload the logos?
Thank you
2019-08-26, 09:55
(2019-08-22, 00:04)samueljones Wrote:(2019-08-08, 09:35)moshoodo123 Wrote:@moshoodo123 , are you using this script on Android box or on PC? just asking because it works perfect on my PC but the timing are not correct on Android, is show like 39h 3999999999 if using on android can you please confirm.(2019-08-07, 22:05)M89SE Wrote: @moshoodo123@M89SE , you are a wonderful person. you just saved my life lol... that did the trick.
This should do the trick, made a mistake earlier adding a colon.
python:startDelta = datetime.datetime.now() - program.startDate
endDelta = datetime.datetime.now() - program.endDate
s = (startDelta - endDelta)
s = re.sub(r'^0:', '', str(s))
s = re.sub(r':00$', 'min', str(s))
s = re.sub(':', 'h ', str(s)) #<--- Added a space after "h".
s = re.sub(r'00min$', '', str(s)) #<--- Removed 00min if single hour.
matchHour = re.search(r'h\s\d+min$', s) #<--- Added a "\s" after "h".
matchMin = re.search(r'^0\s\dmin', s) #<--- Added a "\s" after "0".
#if matchHour: #<--- Commented this with a "#".
#s = re.sub(r'min$', '', str(s)) #<--- Commented this with a "#".
if matchMin: #<--- Changed from "elif" to "if".
s = re.sub(r'^0', '', str(s))
self.setControlLabel(self.C_MAIN_CALC_TIME_EPG, '%s' % (s))
Thanks s lot
Thanks
Try this, I haven't tested it myself but may work.
python:startDelta = datetime.datetime.now() - program.startDate
endDelta = datetime.datetime.now() - program.endDate
osAndroid = xbmc.getCondVisibility('system.platform.android')
if osAndroid is True:
s = (endDelta - startDelta)
else:
s = (startDelta - endDelta)
s = re.sub(r'^0:', '', str(s))
s = re.sub(r':00$', 'min', str(s))
s = re.sub(':', 'h ', str(s)) #<--- Added a space after "h".
s = re.sub(r'00min$', '', str(s)) #<--- Removed 00min if single hour.
matchHour = re.search(r'h\s\d+min$', s) #<--- Added a "\s" after "h".
matchMin = re.search(r'^0\s\dmin', s) #<--- Added a "\s" after "0".
#if matchHour: #<--- Commented this with a "#".
#s = re.sub(r'min$', '', str(s)) #<--- Commented this with a "#".
if matchMin: #<--- Changed from "elif" to "if".
s = re.sub(r'^0', '', str(s))
self.setControlLabel(self.C_MAIN_CALC_TIME_EPG, '%s' % (s))
2019-08-29, 02:53
(2019-08-26, 09:55)M89SE Wrote:thanks @M89SE , i will test it and feed you back(2019-08-22, 00:04)samueljones Wrote:(2019-08-08, 09:35)moshoodo123 Wrote: @M89SE , you are a wonderful person. you just saved my life lol... that did the trick.@moshoodo123 , are you using this script on Android box or on PC? just asking because it works perfect on my PC but the timing are not correct on Android, is show like 39h 3999999999 if using on android can you please confirm.
Thanks s lot
Thanks
Try this, I haven't tested it myself but may work.
python:startDelta = datetime.datetime.now() - program.startDate
endDelta = datetime.datetime.now() - program.endDate
osAndroid = xbmc.getCondVisibility('system.platform.android')
if osAndroid is True:
s = (endDelta - startDelta)
else:
s = (startDelta - endDelta)
s = re.sub(r'^0:', '', str(s))
s = re.sub(r':00$', 'min', str(s))
s = re.sub(':', 'h ', str(s)) #<--- Added a space after "h".
s = re.sub(r'00min$', '', str(s)) #<--- Removed 00min if single hour.
matchHour = re.search(r'h\s\d+min$', s) #<--- Added a "\s" after "h".
matchMin = re.search(r'^0\s\dmin', s) #<--- Added a "\s" after "0".
#if matchHour: #<--- Commented this with a "#".
#s = re.sub(r'min$', '', str(s)) #<--- Commented this with a "#".
if matchMin: #<--- Changed from "elif" to "if".
s = re.sub(r'^0', '', str(s))
self.setControlLabel(self.C_MAIN_CALC_TIME_EPG, '%s' % (s))
2019-09-17, 10:55
Hi,
Firstly a preemptive thank you for any help provided, its appreciated.
Very new user of Kodi.
Just setting up the live TV section and the tv guide is fairly basic. I was wondering if this one works for Sydney Australia free to air channels and if so how would I go about setting it up?? ITs currently all running and the pause, timeshift, record etc is all working, but I would like a more detailed tv guide and one with a lot more channels per page to avoid having to scroll too much.
So....will it work for Aussie channels....and will I still have the same recording options to select and record directly out of the tv guide?
Again thank you.
Firstly a preemptive thank you for any help provided, its appreciated.
Very new user of Kodi.
Just setting up the live TV section and the tv guide is fairly basic. I was wondering if this one works for Sydney Australia free to air channels and if so how would I go about setting it up?? ITs currently all running and the pause, timeshift, record etc is all working, but I would like a more detailed tv guide and one with a lot more channels per page to avoid having to scroll too much.
So....will it work for Aussie channels....and will I still have the same recording options to select and record directly out of the tv guide?
Again thank you.
2019-09-18, 21:52
(2019-09-17, 10:55)longworthdean Wrote: Hi,
Firstly a preemptive thank you for any help provided, its appreciated.
Very new user of Kodi.
Just setting up the live TV section and the tv guide is fairly basic. I was wondering if this one works for Sydney Australia free to air channels and if so how would I go about setting it up?? ITs currently all running and the pause, timeshift, record etc is all working, but I would like a more detailed tv guide and one with a lot more channels per page to avoid having to scroll too much.
So....will it work for Aussie channels....and will I still have the same recording options to select and record directly out of the tv guide?
Again thank you.
Seems the primordial one has been on a hiatus since last May. But to your question. To get TVGF to display channel / program data, you'll either have to find a provider, or learn how to install, configure and run the relatively complicated Webgrab+Plus software to generate your own XMLTV data files. Once you have either a local or remote a program data file, you can set the path to it in: Settings > Source.
To record, you need to find a copy of ffmpeg that works on your OS / device, and set its path and output folder in: Settings > Program Scheduler. You can also use Mr P's very handy IPTV Recorder Kodi addon.
2019-09-30, 02:32
Anybody know how to clear the Playlists? I've imported a couple m3u playlists in the Stream Setup screen, but would like to delete them.
2019-09-30, 02:36
2019-09-30, 02:41
Won't that also remove all linked channels, logos, channel order and categories?