Make AddVideo return Id?

What would you like to see in MythTV and why? Find others who might want to help implement your ideas!
Forum rules
Please be reasonable and positive with your feature requests, remember that all contributions to MythTV are by volunteers in their spare time. MythTV won't support piracy in any form, including torrents and use of soft cams, so to avoid embarrassment please do not ask.

* One suggestion per thread please. Do not post new suggestions in replies. *
Post Reply
wmorrison
Senior
Posts: 119
Joined: Sat Dec 01, 2018 12:05 am
United States of America

Make AddVideo return Id?

Post by wmorrison » Sun Jan 19, 2020 11:38 pm

It would be helpful if the Video service 'AddVideo' returned the Id of the newly added video rather than just a boolean.

I am adding a video, then updating its metadata with UpdateVideoMetadata, which requires an Id. In between I get the Id with GetVideoByFileName (the same name as used in AddVideo.) Would be nice to skip GetVideoByFileName, since the Id was already generated during AddVideo (just not currently returned.)

Post Reply