Forums » Tutorial and setups »
Migrate DVR logs from Tvheadend 4.0 to Tvheadend 4.2
Added by Nicolas Boullis over 6 years ago
Hi,
I’m currently using Tvheadend 4.0.9 installed with Libreelec 8.0.2. I’d like to switch to some more up-to-date versions of Tvheadend and Libreelec. I already have installed and configured Tvheadend 4.2.2 alongside with 4.0.9.
The trouble is I have a bunch of recordings that I’d rather not loose. Is there a way to migrate Tvheadend 4.0.9’s dvr logs for Tvheadend 4.2.2 to find my recordings?
I tried to have a look at the logs generated by both versions and they look like simple JSON files, so it looks like it might be possible to convert them either with a jq
script or with a python
program. But there are some attributes that are somewhat unclear for me, such as the info
, start
and stop
attributes in the files
entries…
Is there a specification for the format of those log files, so I can tell what should be in each attribute and if there are attributes I might just ignore for the sake of simplicity?
I would also love to synthetize some dvr log files to include in the recordings some shows that i got from different means…
Any suggestion is welcome.
Replies (4)
RE: Migrate DVR logs from Tvheadend 4.0 to Tvheadend 4.2 - Added by Mark Clarkstone over 6 years ago
Coping of the files should just be enough to get them to show up, provided the paths are the same, if not just create a symlink so you don't have to modify the logs, otherwise all transferred entries will show up as failed.
RE: Migrate DVR logs from Tvheadend 4.0 to Tvheadend 4.2 - Added by Nicolas Boullis over 6 years ago
Thanks for your reply.
Following your suggestion, I first tried to copy the individual log files, but the recording did not show up in Kodi.
So I tried to go further and copy my whole Tvheadend 4.0 configuration directory to a new Tvheadend 4.2 configuration directory and now my recordings do show up! :)
But it’s still not perfect. With Tvheadend 4.0, the recordings use to show up in per-title directories. Hence, my recordings were nicely sorted. But the migrated recordings do not show up in folders. New recordings with Tvheadend 4.2 show up in folders, as expected.
Any idea how to fix that?
RE: Migrate DVR logs from Tvheadend 4.0 to Tvheadend 4.2 - Added by Mark Clarkstone over 6 years ago
Hmm, might be a missing option in the config file, compare an old dvr log with a new one.
RE: Migrate DVR logs from Tvheadend 4.0 to Tvheadend 4.2 - Added by Nicolas Boullis over 6 years ago
Mark Clarkstone wrote:
Hmm, might be a missing option in the config file, compare an old dvr log with a new one.
I tried but I did not find anything that looked relevant. Only the "content_type"
looked relevant (3 for migrated log, 1 for new log), but changing it did not make a difference…