2024-04-13, 12:37 PM
(This post was last modified: 2024-04-13, 02:12 PM by mvallevand.)
No it is not directly related to the first post. NextPVR is sending this valid SQL command
insert into CAPTURE_SOURCE (name, recorder_plugin_class, present, enabled, priority) values (@name, 'NShared.DigitalRecorder', 'Y', 'Y', -1)
but an issue in NextPVR's current netcore implementation for at least the Swedish locale and a few other Nordic countries Norway, Finland, and Faroe islands, (but not Denmark,Iceland or Greenland) is interpreting the negative value incorrectly. Submitting it in sqlite3 works. I tried a couple of other non-English locales and there wasn't the same problem so I don't see a specific pattern.
Using other negative values gives similar misleading error messages. Positive values are fine.
I thought at first Sweden used another format, for negation brackets or a space but I couldn't find anything saying that. In the future the change will be passing the -1 in a string NextPVR will use a sqlite parameter.
For now try the workaround. The environment setting only impacts NextPVR.
Martin
insert into CAPTURE_SOURCE (name, recorder_plugin_class, present, enabled, priority) values (@name, 'NShared.DigitalRecorder', 'Y', 'Y', -1)
but an issue in NextPVR's current netcore implementation for at least the Swedish locale and a few other Nordic countries Norway, Finland, and Faroe islands, (but not Denmark,Iceland or Greenland) is interpreting the negative value incorrectly. Submitting it in sqlite3 works. I tried a couple of other non-English locales and there wasn't the same problem so I don't see a specific pattern.
Using other negative values gives similar misleading error messages. Positive values are fine.
Code:
insert into CAPTURE_SOURCE (name, recorder_plugin_class, present, enabled, priority) values (@name, 'NShared.DigitalRecorder', 'Y', 'Y', -666)
Unhandled exception. Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'no such column: −666'.
at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
at Microsoft.Data.Sqlite.SqliteCommand.PrepareAndEnumerateStatements(Stopwatch timer)+MoveNext()
at Microsoft.Data.Sqlite.SqliteCommand.Prepare()
at NextTool.Program.Main(String[] args)
at NextTool.Program.<Main>(String[] args)
I thought at first Sweden used another format, for negation brackets or a space but I couldn't find anything saying that. In the future the change will be passing the -1 in a string NextPVR will use a sqlite parameter.
For now try the workaround. The environment setting only impacts NextPVR.
Martin