BETA: API & Feeds

Does it work if you select RSS or ATOM instead of JSON for Videos?

Nope.

It is only outputs a null response if "All Video Groups" is selected with Videos. If I change the "All Video Groups" pulldown to select one of my video groups, then it output the correct response, showing all the videos in the selected group.

Wierd.
Do you see anything when you open this link in a browser?
http://<DVR_IP>:8089/api/v1/videos

Yah, unless you read the whole Topic my post was in, you probably took it out of context.
It's not supposed to work that way, but currently is.

Thanks for adding Video Groups

Only thing I see missing so far is the channel recorded from.
Can you add this to Recordings?
/dvr/files .Airing.Channel

I just noticed that this URL throws an error in the log when called or when selected in the API page.

2023/02/22 02:09:29 [Recovery] 2023/02/22 - 02:09:29 panic recovered:
runtime error: invalid memory address or nil pointer dereference
runtime/panic.go:260 (0x450d55)
runtime/signal_unix.go:835 (0x450d25)
github.com/fancybits/channels-server/dvr/group.go:126 (0x168bd05)
github.com/fancybits/channels-server/http_api_utils.go:181 (0x168bcd8)
github.com/fancybits/channels-server/objstore/bucket.go:31 (0x16f4e5a)
github.com/fancybits/channels-server/objstore/store.go:383 (0xc45647)
go.etcd.io/[email protected]/db.go:780 (0x791501)
github.com/fancybits/channels-server/objstore/store.go:372 (0xc453cf)
github.com/fancybits/channels-server/objstore/bucket.go:30 (0x1147870)
github.com/fancybits/channels-server/http_api_utils.go:163 (0x168b7de)
github.com/fancybits/channels-server/http_api_video.go:19 (0x168fac4)
github.com/gin-gonic/[email protected]/context.go:169 (0x168b593)
github.com/fancybits/channels-server/http_api_utils.go:139 (0x168b4c8)
github.com/gin-gonic/[email protected]/context.go:169 (0x1681963)
github.com/fancybits/channels-server/http.go:273 (0x1681657)
github.com/gin-gonic/[email protected]/context.go:169 (0x16815ca)
github.com/fancybits/channels-server/http.go:250 (0x16815af)
github.com/gin-gonic/[email protected]/context.go:169 (0x1681487)
github.com/fancybits/channels-server/http.go:242 (0x1680dfa)
github.com/gin-gonic/[email protected]/context.go:169 (0xa7d7a1)
github.com/gin-gonic/[email protected]/recovery.go:107 (0xa7d78c)
github.com/gin-gonic/[email protected]/context.go:169 (0xa7c8e6)
github.com/gin-gonic/[email protected]/logger.go:240 (0xa7c8c9)
github.com/gin-gonic/[email protected]/context.go:169 (0x119b7b9)
github.com/gin-contrib/[email protected]/sessions.go:65 (0x119b7a5)
github.com/gin-gonic/[email protected]/context.go:169 (0x11959e1)
github.com/gin-contrib/[email protected]/gzip.go:47 (0x11959b9)
github.com/gin-gonic/[email protected]/context.go:169 (0x1682205)
github.com/fancybits/channels-server/http.go:363 (0x16821f1)
github.com/gin-gonic/[email protected]/context.go:169 (0xa7b9b0)
github.com/gin-gonic/[email protected]/gin.go:598 (0xa7b618)
github.com/gin-gonic/[email protected]/gin.go:554 (0xa7b151)
net/http/server.go:2947 (0x7162cb)
net/http/server.go:1991 (0x7115a6)
runtime/asm_amd64.s:1594 (0x46eb40)

Which version of the server? A lot changed last night. Do you have videos in your library? Please submit diagnostics.

People find typos in my code often. It is kind of embarrassing, but it happens to the best of us.

What's worse is when the higher ups make me change the whole narrative in a msgbox. You're blessed to work with a small company.

Documentation for the Server API just went up.

3 Likes

Are Movie identifiers strings or numbers?

All the ids are strings

1 Like

I'm digging in and exploring, very cool stuff! Are the thumbnails for "videos" supposed to be the artwork for the "video groups" they are in? Or can they be the thumbnails that each video gets generated?

1 Like

I'm going to set them to thumbnails to match what's happening on tvOS.

Also, right now, uploaded art is broken in the API responses as they have no host name, they are just paths. This is how it works in Channels as the clients handle adding the host on to it since they know what they're communicating with. It's trickier with API responses, but obviously important, as the URLs will be useless to anything consuming the API data.

This was resolved in the latest pre-release.

Image upload URLs are full URLs now.

1 Like

Very cool stuff! :sunglasses:

It's great to be able to get a lot information related to recordings and video contents.

Would it also be possible to add information about channels and their sources?

I know you can get information about channels at http://127.0.0.1:8089/devices/ANY/channels but that's a lot to digest without any kind of filtering/sorting. Some API magic would help. :slight_smile:

Some channels are present in multiple sources and it would be cool to be able to look up one channel and see all the sources it is in. Just one example.

1 Like

There’s no plans for exposing channels or guide data in the api right now. It’s focused on your library contents.

Thank you for your reply. The fact that you said "right now" gives me hope for the future. I'm good with that. :grin:

Until then, I'll implement my own script for handling the data from the URL I mentioned. That will keep me busy and out of trouble. :laughing:

2 Likes

Great work on the documentation for the API's!

Is it possible to add the channel number that something was recorded from to the Recordings API for Episodes and Movies?
It currently appears under DVR > Manage > Movies&Shows and Library > Movies&TV Shows.