mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-05-06 10:07:36 +02:00
- using AnyCPU to support x64 and ARM based CPUs (e.g. running on Win10-arm on a Mac Pro with M1 CPU)
- upgraded to latest Sqlite libraries to support ARM - finished implementation for Hisense Vidaa U5.2 file format (using servicelist.db with renamed tables and columns)
This commit is contained in:
@@ -61,8 +61,8 @@
|
||||
<LangVersion>latest</LangVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.Data.Sqlite, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.Data.Sqlite.Core.5.0.7\lib\netstandard2.0\Microsoft.Data.Sqlite.dll</HintPath>
|
||||
<Reference Include="Microsoft.Data.Sqlite, Version=5.0.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.Data.Sqlite.Core.5.0.8\lib\netstandard2.0\Microsoft.Data.Sqlite.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="SQLitePCLRaw.batteries_v2, Version=2.0.4.976, Culture=neutral, PublicKeyToken=8226ea5df37bcae9, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SQLitePCLRaw.bundle_e_sqlite3.2.0.4\lib\net461\SQLitePCLRaw.batteries_v2.dll</HintPath>
|
||||
|
||||
@@ -54,7 +54,7 @@ left outer join Lcn l on l.ServiceId=fi.ServiceId and l.ServiceListId=fi.Service
|
||||
";
|
||||
|
||||
public string ShortName => "Service9";
|
||||
public string ParentalLock => "0"; // supposedly "Service11", but that's not plausible
|
||||
public string ParentalLock => "Service11";
|
||||
public string UpdateService =>
|
||||
"update Service set Name=@name, Service9=@sname, Service11=@lock, Visible=@vis, Selectable=@sel, Service16=@fav1, Service17=@fav2, Service18=@fav3, Service19=@fav4 where Pid=@servId";
|
||||
public string UpdateChannelItem => "update ServiceItem set ChannelNumber=@ch, ServiceItem6=@del, ServiceItem7=@prot, ServiceItem3=@sel, ServiceItem4=@vis where ServiceListId=@favId and ServiceId=@servId";
|
||||
|
||||
@@ -416,9 +416,11 @@ left outer join {dbSchema.DvbServiceTable} digs on digs.ServiceId=s.Pid
|
||||
#endif
|
||||
}
|
||||
|
||||
ci.Skip = r.GetInt32(3) == 0;
|
||||
ci.Lock = r.GetInt32(6) != 0;
|
||||
ci.Hidden = r.GetInt32(4) == 0;
|
||||
// for skip/lock/hide (selectable/protected/visible) the TV supports values in the service table directly and overrides in each favorite-list
|
||||
// ChanSort only supports per-channel values and not per-list, so they are combined here
|
||||
ci.Skip |= r.GetInt32(3) == 0; // -1 = use "Selectable" from Service table, 0=skip, 1=selectable
|
||||
ci.Lock |= r.GetInt32(6) == 1; // -1 = use "ParentalLock/Service11" from Service table, 0=not locked, 1=locked
|
||||
ci.Hidden |= r.GetInt32(4) == 0; // -1 = use "Visible" from Service table, 0=hidden, 1=visible
|
||||
ci.IsDeleted = r.GetInt32(5) != 0;
|
||||
if (list.ShortCaption != "$all")
|
||||
ci.Source = list.ShortCaption;
|
||||
|
||||
@@ -2,10 +2,6 @@
|
||||
<configuration>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Microsoft.Data.Sqlite" version="5.0.7" targetFramework="net48" />
|
||||
<package id="Microsoft.Data.Sqlite.Core" version="5.0.7" targetFramework="net48" />
|
||||
<package id="Microsoft.Data.Sqlite" version="5.0.8" targetFramework="net48" />
|
||||
<package id="Microsoft.Data.Sqlite.Core" version="5.0.8" targetFramework="net48" />
|
||||
<package id="SQLitePCLRaw.bundle_e_sqlite3" version="2.0.4" targetFramework="net48" />
|
||||
<package id="SQLitePCLRaw.core" version="2.0.4" targetFramework="net48" />
|
||||
<package id="SQLitePCLRaw.lib.e_sqlite3" version="2.0.4" targetFramework="net48" />
|
||||
|
||||
Reference in New Issue
Block a user