Release IPTV Recorder - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154) +---- Thread: Release IPTV Recorder (/showthread.php?tid=329991) |
RE: IPTV Recorder - Chychy - 2018-03-24 I done multiple tests, it works with some date but not with some others I tried to hardcode with 2018-03-25 02:00:00 giving the following tupple : (2018, 3, 25, 2, 0, 0, 6, 84, -1) Code: time.mktime((2018, 3, 25, 2, 0, 0, 6, 84, -1)) On my PC this line is working, but not in the box, maybe relative to python's version ? Code: Error Contents: mktime argument out of range Kodi : 17.6 Android : 6.0.1 RE: IPTV Recorder - primaeval - 2018-03-24 That is quite a bizarre bug in Android. On the next release I'm totally bypassing the jsonrpc calls and grabbing all the data from the xmltv file. Hopefully there is a way to not use that time conversion. The code is in the db branch on github if you want a preview. RE: IPTV Recorder - primaeval - 2018-03-24 I think this db branch is about ready to release but I'll sleep on it and see if I can deal with the spaces and timetamp problems before I do. RE: IPTV Recorder - Chychy - 2018-03-25 I fixed the timestamp with the following code :
But now I have another issue when the record starts : Code:
RE: IPTV Recorder - primaeval - 2018-03-25 Good work. If you want to add in pull requests I'd be grateful. I'm working on the db branch for the next release. Check that the job file is pointing to the /data/data directory for the ffmpeg program. /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/plugin.video.iptv.recorder/jobs/2bac69f0-2faf-11e8-9f7b-19e8357f1bb0.py It should have copied ffmpeg to the right place and made it executable here: https://github.com/primaeval/plugin.video.iptv.recorder/blob/master/main.py#L308 It works ok for me but there can be lots of variations in the android world. RE: IPTV Recorder - primaeval - 2018-03-25 Using now() won't quite work as the utc2local function might be converting a time that is after summer time changes but now is still in winter time. RE: IPTV Recorder - Chychy - 2018-03-25 What about this one ? Working for me and should be compatible
The job is correctly pointing to "/data/data/org.xbmc.kodi/ffmpeg", but I cannot access to /data directory, permission denied RE: IPTV Recorder - ray2301 - 2018-03-25 for me everything works great as long as i keep my tags clean: Quote:#EXTINF:-1 tvg-id="Nova_TV" tvg-name="Nova TV" tvg-logo="" group-title="",Nova TVif the guide contains id with a space like "Nova TV", then i must have tvg-id="Nova_TV" and not with a space in the m3u for it to work properly. any space must be replaced by _ Quote:#EXTINF:-1,Nova TVwouldn't work in that case. the tvg-id"" must be named correctly. RE: IPTV Recorder - primaeval - 2018-03-25 (2018-03-25, 03:12)Chychy Wrote: What about this one ? Working for me and should be compatibleThanks. It worked for me on a Nvidia Shield which isn't rooted. Try putting a log message around here to see what the st.st_mode is. https://github.com/primaeval/plugin.video.iptv.recorder/blob/master/main.py#L305 I presume the permission error is with ffmpeg but it might not be. RE: IPTV Recorder - primaeval - 2018-03-25 Warning! The new db version is going to start again with recording jobs and rules. Does anyone need me to write a converter for your old jobs? RE: IPTV Recorder - primaeval - 2018-03-25 (2018-03-25, 03:47)ray2301 Wrote: for me everything works great as long as i keep my tags clean:I've added in a fix in the new db version which can handle spaces and missing tvg_id fields as long as the channel name matches the xmltv channel id. I'll release it later. RE: IPTV Recorder - Chychy - 2018-03-25 Looks like it doesn't enter in the if condition, but I guess it should as it's not executable by default (600)
EDIT: Working for me with this condition :
RE: IPTV Recorder - primaeval - 2018-03-25 Thanks. This is probably why. Code: S_IXUSR RE: IPTV Recorder - Chychy - 2018-03-25 Do you want a PR for both modifications ? Now I launched a record job with no error, but I think it's not recording (no file in destination directory, maybe the file is in cache until it's finished ?) And looks like the UTC date is unsed under the job menu, for a program starting at 11:20 (local time +2), I see 09:20, could be related ? RE: IPTV Recorder - primaeval - 2018-03-25 I've added in those changes already so its ok. Anything bigger would be good as a pull request. Are you testing with the released version or my db branch? It would be best to test the new db version so I can release it soon. What are the dates like in your xmltv file? What timezone are they from? Mine are in UTC +0000 so that might be why I don't see any problems. You could try something instead of ffmpeg to debug whether it ran or not. I usually use notepad on Windows. I'm not sure what would work on Android. https://github.com/primaeval/plugin.video.iptv.recorder/blob/master/main.py#L377 |