updating metadata of videos

Post Reply
bryandamage
Newcomer
Posts: 2
Joined: Tue Apr 26, 2016 12:16 pm
Australia

updating metadata of videos

Post by bryandamage »

The wiki says that the video api is used to query and modify video metadata and add new videos to the library.

I can add new files with /Video/AddVideo which works great and I can query metadata with /Video/LookupVideo, but that only returns the metadata as xml.
I cannot find a way to attach the metadata to the video in the database. I would rather not have to parse the xml and insert it into the database manually as it defeats the purpose of using the API.

Am I missing something? I'm currently using 0.27 but will move to 0.28 soon.
User avatar
bill6502
Developer
Posts: 2323
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: updating metadata of videos

Post by bill6502 »

Hi,

I don't think you're missing anything. For the Video service, the only 'modify' endpoint
is the new UpdateRecordedWatchedStatus.

As to "but that only returns the metadata as xml", you can also get the response
in JSON. If you speak Perl or Python, there are examples available on the Wiki
that will help you parse the data.

And for "..and insert it into the database manually...", there isn't an UpdateVideo
endpoint in 0.28 either.
Post Reply