NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support v
« Previous 1 … 16 17 18 19 20 … 46 Next »
Import recordings from TvHeadEnd?

 
  • 0 Vote(s) - 0 Average
Import recordings from TvHeadEnd?
aTF6i
Offline

Member

UK
Posts: 136
Threads: 11
Joined: Dec 2021
#1
2021-12-15, 07:49 PM
Hi

Does anyone know if it is possible to import recordings from TVHeadEnd?

Would love to do so, but not sure if it's possible
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 56,678
Threads: 996
Joined: May 2006
#2
2021-12-15, 08:06 PM (This post was last modified: 2021-12-15, 08:56 PM by mvallevand.)
I've written importers for SageTV, TV Mosaic and Emby so I would be glad to have a look. Is there a database or export format available? Maybe http://user:password@tvh:9981/api/dvr/entry/grid_finished gives you a recording list?

Martin
aTF6i
Offline

Member

UK
Posts: 136
Threads: 11
Joined: Dec 2021
#3
2021-12-15, 09:35 PM
There is a webpage that provides a list, however it's not 'exportable'

There is a series of files created in dvr/log/ so I presume it'd need to be something looping and adding to a single .xml?

Here's one of the files (called 83a3aa4a0978dd1bc41a61996188172e)

Code:
{         "enabled": true,         "start": 1622790900,         "start_extra": 0,         "stop": 1622791200,         "stop_extra": 0,         "channel": "524f9641767cd5bcea744ea89b8fafae",         "channelname": "CBeebies",         "title": {                 "eng": "Numberblocks"         },         "subtitle": {                 "eng": "Making Patterns. Twenty-Seven and Twenty-Eight explore the new Pattern Wall at the Gallery. Also in HD. [S]"         },         "description": {                 "eng": "Making Patterns. Twenty-Seven and Twenty-Eight explore the new Pattern Wall at the Gallery. Also in HD. [S]"         },         "pri": 2,         "retention": 0,         "removal": 0,         "playposition": 0,         "playcount": 8,         "config_name": "7a5edfbe189851e5b1d1df19c93962f0",         "owner": "ItsMe",         "creator": "ItsMe",         "errorcode": 0,         "errors": 0,         "data_errors": 0,         "dvb_eid": 0,         "noresched": true,         "norerecord": false,         "fileremoved": 0,         "autorec": "",         "timerec": "",         "parent": "",         "child": "",         "content_type": 5,         "broadcast": 0,         "comment": "Auto recording: Numberblocks",         "files": [ {                         "filename": "/recordings/Numberblocks/Numberblocks-40.ts",                         "info": [                                 {                                         "type": "H264",                                         "width": 1920,                                         "height": 1080,                                         "duration": 3600,                                         "aspect_num": 0,                                         "aspect_den": 0                                 },                                 {                                         "type": "AAC",                                         "language": "eng",                                         "audio_type": 0                                 },                                 {                                         "type": "AAC",                                         "language": "eng",                                         "audio_type": 3                                 },                                 {                                         "type": "DVBSUB",                                         "language": "eng",                                         "composition_id": 1,                                         "ancillary_id": 1                                 }                         ],                         "start": 1622790840,                         "stop": 1622791320                 }         ] }
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 56,678
Threads: 996
Joined: May 2006
#4
2021-12-15, 09:39 PM
Yeah I am not going to try and import individual json files like that. I guess

curl http://user:password@tvh:9981/api/dvr/entry/grid_finished -o filename

doesn't give a list or recordings?

Martin
aTF6i
Offline

Member

UK
Posts: 136
Threads: 11
Joined: Dec 2021
#5
2021-12-15, 10:03 PM
Actually it does work.

Just tidying up and I'll send it over
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 56,678
Threads: 996
Joined: May 2006
#6
2021-12-15, 10:15 PM (This post was last modified: 2021-12-15, 10:15 PM by mvallevand.)
It has to be zipped and under 2MB or an external link is required.

Martin
aTF6i
Offline

Member

UK
Posts: 136
Threads: 11
Joined: Dec 2021
#7
2021-12-15, 10:17 PM
Cheers,

Attached
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 56,678
Threads: 996
Joined: May 2006
#8
2021-12-15, 10:25 PM
That looks good, basic JSON, sub title duplicates description but I can improved that.

Will you be able to map TVHeadend /recordings to the same location in NextPVR?

Martin
aTF6i
Offline

Member

UK
Posts: 136
Threads: 11
Joined: Dec 2021
#9
2021-12-15, 11:18 PM
Sorry; yeah should be able to.

It is the same location I've set up to use in NextPVR; records into the same subfolders apart from 'All Channels'
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 56,678
Threads: 996
Joined: May 2006
#10
2021-12-15, 11:26 PM
Ok good.

Is that a complete list of your recordings? I'd like a sample with movies and some TV episodes, there looks to be more JSON fields available then I see there.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Sudden failure of recordings bruce_rainwater 3 294 2026-07-09, 08:12 PM
Last Post: mvallevand
  Webapp default recordings view to "list" ineffablebob 5 1,667 2026-04-24, 08:46 PM
Last Post: jcole998
  Exporting Recordings The1nOnlyHMatt 4 1,811 2026-02-22, 06:26 PM
Last Post: JohnySmith1010
  tvg-chno - m3u channel numbers seem to be ignored when "Import using XC" brcarls 18 3,871 2026-01-14, 11:48 PM
Last Post: mvallevand
  Occasional HDHR Recordings Failing BrettB 12 1,845 2025-12-05, 10:44 PM
Last Post: mvallevand
  Import using M3U - 401 unauthorized - User-Agent header houdini 3 1,240 2025-10-02, 06:35 PM
Last Post: mvallevand
  m3u import unstable tom_tav 7 2,099 2025-07-12, 07:23 PM
Last Post: sub
  Recurring recording creates multiple recordings of same event txinga 2 1,371 2025-03-29, 12:33 AM
Last Post: txinga
  Successful import from MythTV DB to NextPVR Allan 0 1,301 2025-02-10, 09:51 PM
Last Post: Allan
  Recurring Recordings Not Working After Merging Channels BrettB 2 1,299 2025-02-06, 04:00 AM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode