questions about tvheadend/var/log/ files and importing old recordings
Added by Bobby H almost 4 years ago
I have an Odroid HC2 which used to have TVHE set up in a Portainer container, and that was working. Until it didn't. Port 9982 and Kodi stopped working, to be more precise, and I couldn't figure out why. One day I stopped the container and restarted it, and Kodi could no longer connect after that. So, sod that, I just installed TVHE as a regular service and not in a container at all; the permissions looked weird with the container which made me uneasy anyway. I got TVHE working outside a container with little problem and Kodi is happy again, and recordings and the installation all have owner/group hts/video which makes me happy.
So now of course I have some old recordings which the new TVHE does not recognize. Not that many, so I'm quite willing to manually modify each recording file. Which I believe are the guid files stored in the /dvr/log/ folder, correct? I made a new recording of the same show I want to import, and then copied a dvr/log/ file from the old TVHE and changed the particulars to match the new recording. (The old and new recordings are stored on the same HDD). But no joy there, the old recording doesn't show up. I assume all of the dvr/log/ files are referenced somewhere else and I'm afraid it's in the database. Is this true? If so then I guess I'll have to use a Python script or some-such, yes?
Replies (1)
RE: questions about tvheadend/var/log/ files and importing old recordings - Added by Dave Pickles almost 4 years ago
Tvheadend doesn't have a database, all the information is in text files.
What you've tried should, I believe, work. A couple of things to try:
- The log files are read at start-up, so you'd have to restart Tvheadend after adding or editing files.
- The "owner", "creator" and "config_name" fields of your log files must match the other recordings on your new TVH instance.
- The "channel" field should match other recordings on the same channel with your new instance, otherwise the media tags won't be picked up (Kodi may not know whether this is a TV recording or radio).