NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support v
« Previous 1 … 13 14 15 16 17 … 43 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
Offline

Posting Freak

Ontario Canada
Posts: 52,768
Threads: 954
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
Offline

Posting Freak

Ontario Canada
Posts: 52,768
Threads: 954
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
Offline

Posting Freak

Ontario Canada
Posts: 52,768
Threads: 954
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
Offline

Posting Freak

Ontario Canada
Posts: 52,768
Threads: 954
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
Offline

Posting Freak

Ontario Canada
Posts: 52,768
Threads: 954
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
  Recurring recording creates multiple recordings of same event txinga 2 303 2025-03-29, 12:33 AM
Last Post: txinga
  Successful import from MythTV DB to NextPVR Allan 0 213 2025-02-10, 09:51 PM
Last Post: Allan
  Recurring Recordings Not Working After Merging Channels BrettB 2 229 2025-02-06, 04:00 AM
Last Post: mvallevand
  Moving recordings to a fileserver SickBoy 1 226 2025-02-01, 02:39 PM
Last Post: mvallevand
  recordings prematurely 'stop' moonmeat 3 415 2025-01-24, 02:08 PM
Last Post: mvallevand
  What would happen if I change file locations and names of the recordings? Luisy44 4 531 2024-10-15, 01:15 AM
Last Post: Luisy44
  Import guide data from HD Homerun tuner jonasx 5 634 2024-10-14, 08:48 PM
Last Post: mvallevand
  Why are my recordings not recording completely? Luisy44 6 795 2024-10-12, 07:01 PM
Last Post: Luisy44
  Recordings import issue Jaggy 4 524 2024-08-25, 12:03 AM
Last Post: Jaggy
  Recurring recordings not getting scheduled ginge6000 1 367 2024-07-12, 10:58 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