Project

General

Profile

Getting files to show up in recordings

Added by Giles Puckett about 7 years ago

Have tried copying .wtv files (recorded by WMC) into TVH's recordings directory. Kodi is perfectly able to play these files (they're just MPEG-2 streams), but they don't show up under TVH's recordings list, so Kodi doesn't show them under its list of recordings.

Is there any way to make this work, or is TVH just not going to recognise them?


Replies (2)

RE: Getting files to show up in recordings - Added by ullix tv about 7 years ago

You can make an api call, as it had been discussed very recently here; Python script included:
https://tvheadend.org/boards/5/topics/28252?r=29113#message-29113

RE: Getting files to show up in recordings - Added by Em Smith about 7 years ago

I use a different approach. I don't use pvr.hts on Kodi to view my recordings.

Instead, I point Kodi at the directory storing the files and let it scrape them in to the TV and Movies library. I do this because I find Kodi skins tend to have great support for movies for getting and showing extra information such as cast, keywords, etc., but the views for pvr are currently less advanced.

Kodi then merges the shows from all my sources in to its library, whether it be from wmc, tvh, or other sources.

For legacy recordings, I'd rename them so they can be scraped. They don't even need to be in the same directories as your tvheadend recordings. For example if you had an episode of Simpsons you might name it "win/tv/The Simpsons/S05E04.wtv" and then in Kodi you navigate to "tv" in the Files menu, press context menu, set-content to tvshows+scan recursive. Similarly for movies. If they're not on the same machine then you could use samba to retrieve them. Kodi is generally flexible to the names of files, check their wiki for details.

Then for tvheadend recordings you could record to "tvh/tv/The Simpsons/S05E05.wtv" and the two would be merged be Kodi in to one library entry of The Simpsons. If you're running a development version of tvheadend and have good guide data then look at "$q" format string for recordings which simplifies generating the filenames and directory hierarchy.

There are a number of tools for automatically renaming files. Search the Kodi wiki/forum tools section for a few such as tmm, mediaelch, etc.

No need to download pictures/fanart to disk since Kodi will download and store them in its db without writing to the directory.

Of course it all depends on what you record. I'm guessing the built-in scrapers might not be able to scrape "Breakfast News".

    (1-2/2)