2015-08-05, 23:47
Will do. Many thanks.
(2015-09-26, 16:19)enen92 Wrote: Ah and when you're running several videos it is a playlist..so it will stop playing every video. However the videos youve fully watched will be marked as watched which means the next time you play a playlist you'll have only the unwatched videos on the list (and the resume points saved automagically by Kodi itself).
(2015-07-16, 00:58)Namerp Wrote: Is it possible to include an option that the sleep timer only checks for sleep at specific times ?
(2015-10-15, 17:44)Namerp Wrote:(2015-07-16, 00:58)Namerp Wrote: Is it possible to include an option that the sleep timer only checks for sleep at specific times ?
any news on this ? don't want annoy or something but really miss this function
(2015-10-12, 18:05)xbmclinuxuser Wrote: Please see my signature line. What you are telling me is, it can't be done.
14:14:32 T:1532572672 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ValueError'>
Error Contents: invalid literal for int() with base 10: '1414 PM'
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/service.sleeptimer/service.py", line 310, in <module>
service()
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/service.sleeptimer/service.py", line 113, in __init__
kodi_time = get_kodi_time()
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/service.sleeptimer/service.py", line 81, in get_kodi_time
return int(time_string)
ValueError: invalid literal for int() with base 10: '1414 PM'
-->End of Python script error report<--
03:12:17 T:1842444240 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.ValueError'> Error Contents: invalid literal for int() with base 10: '312 AM' Traceback (most recent call last): File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/service.sleeptimer/service.py", line 310, in <module> service() File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/service.sleeptimer/service.py", line 113, in __init__ kodi_time = get_kodi_time() File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/service.sleeptimer/service.py", line 81, in get_kodi_time return int(time_string) ValueError: invalid literal for int() with base 10: '312 AM' -->End of Python script error report<-- 03:12:30 T:1786167608 ERROR: Unable to activate the previous window 03:22:18 T:1920429280 NOTICE: Thread JobWorker start, auto delete: true
def get_kodi_time():
am_pm = xbmc.getInfoLabel('System.Time(xx)').lower()
system_time = xbmc.getInfoLabel('System.Time')
hour = system_time.split(':')[0]
minute = system_time.split(':')[1]
system_time = xbmc.getInfoLabel('System.Time(hh:mm)')