2022-08-16, 10:49 PM
Hello. I have been in separate discussions about recurring re-recordings, and I think it is because the UniqueID element is missing from the Event column of SCHEDULED_RECORDINGS.
I can see from the XML generated at the time of recording (and in the scheduled recording, before the recording starts) that the UniqueID element is populated. What I now want to do is use NextTool to update the Database with the UniqueID from the XML.
I have tried --importXML, which works great if the recording is not there (which then includes UniqueID), however, if the recording exists, then the metadata is not updated. I have also tried the --file, and this provides the same result, as the recording exists.
What I really need is a way to use NextTool to perform this command on the Database, by providing the recording name (example '/recordings/tv/path-to-series/episode-name.mkv') and the uniqueid (example 'EP013032340098')
This is the command I used in sqlite to achieve my goal:
UPDATE SCHEDULED_RECORDING SET event_details = REPLACE(event_details, '</Event>', ' <UniqueID>EP013032340098</UniqueID>
</Event>') WHERE event_details NOT LIKE 'UniqueID' AND filename LIKE '/recordings/tv/path-to-series/episode-name.mkv';
Something like this would be useful to me.
dotnet NextTool.dll --importUID "/recordings/tv/path-to-series/episode-name.mkv" EP013032340098
Is there any possibility of getting this added to the tool?
I can see from the XML generated at the time of recording (and in the scheduled recording, before the recording starts) that the UniqueID element is populated. What I now want to do is use NextTool to update the Database with the UniqueID from the XML.
I have tried --importXML, which works great if the recording is not there (which then includes UniqueID), however, if the recording exists, then the metadata is not updated. I have also tried the --file, and this provides the same result, as the recording exists.
What I really need is a way to use NextTool to perform this command on the Database, by providing the recording name (example '/recordings/tv/path-to-series/episode-name.mkv') and the uniqueid (example 'EP013032340098')
This is the command I used in sqlite to achieve my goal:
UPDATE SCHEDULED_RECORDING SET event_details = REPLACE(event_details, '</Event>', ' <UniqueID>EP013032340098</UniqueID>
</Event>') WHERE event_details NOT LIKE 'UniqueID' AND filename LIKE '/recordings/tv/path-to-series/episode-name.mkv';
Something like this would be useful to me.
dotnet NextTool.dll --importUID "/recordings/tv/path-to-series/episode-name.mkv" EP013032340098
Is there any possibility of getting this added to the tool?