2018-03-25, 00:08
I fixed the timestamp with the following code :
But now I have another issue when the record starts :
python:
def utc2local (utc):
now = time.time()
offset = datetime.fromtimestamp(now) - datetime.utcfromtimestamp(now)
return utc + offset
But now I have another issue when the record starts :
Code:
23:02:41.573 T:18446744072910272816 NOTICE: [xbmcswift2] Request for "/broadcast/1/MyChannel/MyProgram/2018-03-24+21%3A35%3A00/2018-03-24+22%3A30%3A00" matches rule for function "broadcast"
23:02:41.578 T:18446744072910272816 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value
23:02:44.331 T:18446744072910272816 WARNING: Previous line repeats 2 times.
23:02:44.331 T:18446744072910272816 NOTICE: [xbmcswift2] Request for "/record_once/MyChannel/MyProgram/2018-03-24+21%3A35%3A00/2018-03-24+22%3A30%3A00" matches rule for function "record_once"
23:02:44.612 T:18446744072910272816 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value
23:02:44.645 T:18446744073432856880 WARNING: Previous line repeats 3 times.
23:02:44.645 T:18446744073432856880 ERROR: GetDirectory - Error getting plugin://plugin.video.iptv.recorder/record_once/MyChannel/MyProgram/2018-03-24+21%3A35%3A00/2018-03-24+22%3A30%3A00
23:02:44.649 T:18446744073432856880 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.iptv.recorder/record_once/MyChannel/MyProgram/2018-03-24+21%3A35%3A00/2018-03-24+22%3A30%3A00) failed
23:03:09.496 T:18446744072910272816 NOTICE: [xbmcswift2] Request for "/record_once/MyChannel/MyProgram/2018-03-24+21%3A35%3A00/2018-03-24+22%3A30%3A00" matches rule for function "record_once"
23:03:09.769 T:18446744072910272816 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value
23:03:23.521 T:18446744072896903472 WARNING: Previous line repeats 3 times.
23:03:23.521 T:18446744072896903472 WARNING: CPythonInvoker(34): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
23:03:24.793 T:18446744072896903472 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.OSError'>
Error Contents: [Errno 13] Permission denied
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/plugin.video.iptv.recorder/jobs/2bac69f0-2faf-11e8-9f7b-19e8357f1bb0.py", line 3, in <module>
subprocess.call(probe_cmd,shell=False)
File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-21/lib/python2.7/subprocess.py", line 523, in call
File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-21/lib/python2.7/subprocess.py", line 711, in __init__
File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-21/lib/python2.7/subprocess.py", line 1343, in _execute_child
OSError: [Errno 13] Permission denied
-->End of Python script error report<--
23:03:24.883 T:18446744072881699120 NOTICE: [xbmcswift2] Request for "/broadcast/1/MyChannel/MyProgram/2018-03-24+21%3A35%3A00/2018-03-24+22%3A30%3A00" matches rule for function "broadcast"
23:03:24.887 T:18446744072881699120 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value
23:03:24.963 T:18446744073432856880 WARNING: Previous line repeats 2 times.
23:03:24.963 T:18446744073432856880 ERROR: GetDirectory - Error getting plugin://plugin.video.iptv.recorder/record_once/MyChannel/MyProgram/2018-03-24+21%3A35%3A00/2018-03-24+22%3A30%3A00
23:03:24.967 T:18446744073432856880 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.iptv.recorder/record_once/MyChannel/MyProgram/2018-03-24+21%3A35%3A00/2018-03-24+22%3A30%3A00) failed