30 Commits

Author SHA1 Message Date
Horst Beham
3139f3d9f4 Various changes and refactorings to integrate the suggested changes from pull-request https://github.com/PredatH0r/ChanSort/pull/358 to handle the distinction between IP-antenna, IP-cable, IP-sat and DVB-T, DVB-C, DVB-S for Panasonic TVs.
- SignalSource.IP is now treated as a broadcast system (distinguishing Analog/Dvb/Ip) and no longer a broadcast medium (like antenna/cable/sat).
- SignalSource.Digital was renamed to DVB
2023-06-03 10:38:11 +02:00
Horst Beham
d361d51b8b - removed superfluous parameter from SerializerBase.Save()
- added "Pooling=False" parameter to all Sqlite connection strings to prevent open file locks after closing the connection and to avoid extreme delays when using CloseAllPools()
- C# code refactoring "using var" instead of "using ( ) { }" where possible
2022-11-29 22:00:16 +01:00
Horst Beham
4a1a39b1e7 - added function to mark a channel for swapping + swap with current channel
- replaced misuse of "FileLoadException" with a custom LoaderException to handle file loading issues with better continue/fail logic
- removed "Save As" and replaced it with "Convert list" menu item that shows information on how to use a reference list instead of direct conversion
2022-11-29 14:56:23 +01:00
Horst Beham
c9bbf884b6 - updated russian translation
-  fixed max windows size to match available desktop area instead of screen area
- added .ini for experimental Sony sdb.xml changes
2021-09-26 18:52:24 +02:00
Horst Beham
b0b09de733 - DX upgrade
- experimental support for Philips Repair\mgr_chan_s_fta.db file format (DVB-S only)
- fixed missing strings for LG empty-channel-list message box
2021-08-24 19:41:31 +02:00
Horst Beham
d4c30a853d - Sony: Files with incorrect checksum are no longer rejected. Information about a bad checksum is visible
unter File / File Information. (The TV seems to ignore bad checksums during the import and the official
  Sony PC Editor ignores bad checksums and write incorrect ones, depending on the file format version)
- Updated Hungarian translation. Thanks to efi99 on Github!
- Minor cleanup amongst translation (setting @Invariant for constant strings and unifying "..." in menu items that open a new dialog)
2021-07-29 17:51:21 +02:00
Horst Beham
5705a435b4 - added unit tests for Enigma2 and Grundig loaders
- added round-trip unit test for all loaders to check reordering channels and favorites, saving and reloading
- internal code clean-up regarding different favorite list modes (none vs. flags vs. ordered per source vs. mixed source)
2021-03-14 22:13:22 +01:00
Horst Beham
f5010439cb - W.I.P: Enigma2 lamedb / bouquets support for Linux based Set-Top-Boxes (Dreambox, VU+, Octagon, ...)
- Toshiba settingsDB.db: support for lists without analog tuner data (missing TADTunerDataTable)
- Grunding: failed to load lists where the <Digital> element did not contain a <channels> child element
- W.I.P: reworking the reference list system so that a simple list of channels can be applied to the main channel numbers or a particular favorite list.
  (The "Automatically reorder all lists" options currently does not work)
2021-03-13 18:11:30 +01:00
Horst Beham
241f8be0f7 - Sony: fixed incorrect checksum error for Android based TVs which use CR+LF as line separators (normally only LF is used)
- Philips: show info that it may be necessary to unplug and reboot the TV after the import
- Philips ChannelMap_45: show info when there are checksum errors, which indicate that TV's internal list is broken
  and a rescan is required in order to properly export/import the list.
2021-02-09 15:04:40 +01:00
Horst Beham
6584a666c6 - Philips: fixed error saving the Favorite.xml file (effects Philips "ChannelMap_105" and later file format versions)
- added Hungarian translation (credits to Istvan Krisko)
- Sony XML: fixed display of wrong DVB-C cable channel/transponder number
- LG webOS 5: unfortunately no news yet, but the insight that some "CX" models run on webOS 3.6 and others on 5.1, using
  different file formats.
2020-12-05 21:55:43 +01:00
Horst Beham
728e36ef39 - added info screen when opening an empty LG channel list which is most likely caused by selecting a predefined list
during the TV setup or channel search
- fixed: Sony KDL channel lists were not saved correctly
- upgrade to DevExpres 20.1.3
- Loaders can use Api.View.Default.MessageBox(...) to show a DevExpress themed message box without adding a reference to DX libs
2020-05-06 22:07:48 +02:00
Horst Beham
a901a7fa65 - hopefully fixed corrupted Sony lists when channels were deleted
- upgrade to DX 19.2.6
- detect file corruption when all bytes have same value instead of just 0x00 (as there are broken files with 0xFF too)
2020-02-02 23:31:44 +01:00
hbeham
9ba8a357ed - LG GlobalClone: Favorites were not loaded correctly into ChanSort
- LG GlobalClone: some changes that might fix problems where the TV didn't work properly
  with an importet list (ChanSort now modifies less data in the file)
- Menu items for hide/unhide, skip/unskip, lock/unlock are now disabled when these features are not supported by the
  channel list file format
- Applying a .txt reference list (which doesn't contain information about skip/lock/hide) will no longer clear these
  flags in the current channel list
2019-11-24 20:00:48 +01:00
hbeham
737ce9d344 fixed: Philips DVBC.XML files with frequency values in Hz instead of MHz caused an overflow exception 2019-11-11 19:22:00 +01:00
hbeham
5cdf9d0995 - Sony Android (E-Format) now supports independent favorite list ordering
- fixed issue when saving Sony Android list with high program numbers (causing negative int32 values due to bit shift)
- for unknown DVB service types the UI now shows the number instead of an empty string
- loaders are now setting the OldFavIndex (to be consistent with the use OldProgramNr)
- Form shows full file path in title bar
- no longer defaulting to "swap" mode when opening a file and using "current order"
- show "Source" column in the left list when editing a mixed source favorite list
2019-11-10 20:09:27 +01:00
hbeham
449dea8195 fix for loading Sony channel lists with channel numbers 10000 and higher (negative No values in the sdb.xml file) 2019-11-10 11:25:07 +01:00
hbeham
34b281f5fc - unified handling for deleting channels (action based on file format support either mark-as-deleted, remove-from-file, append-at-end)
- added unit tests
- internal code cleanup
2019-11-08 02:31:44 +01:00
hbeham
808ac88be2 changed ChannelList.SignalSource semantics again:
- constructor replaces empty masks with full masks (i.e. if no tv/radio/data bit is set, then all bits get set and the list can hold any such channels)
- DataRoot.GetChannelList(SignalSource) works now accordingly to ignore a mask when it is empty in the search criteria (as opposed to the list's SignalSource)
Added checkbox for Data/Other in the reference list dialog
2019-08-29 18:14:59 +02:00
hbeham
0cf97fe76c - UHD channels using ServiceType 0x9F are now recognized as TV channels (fixes an issue with Panasonic lists where these channels did not show up and their numbers were assigned multiple times)
- ChannelList.SignalSource and DataRoot.GetChannelList(SignalSource) are now handled so that if all bits of a given Mask are left 0, the list will accept anything.
  i.e. if Tv/Radio/Data is left 0, the list can contain all of them as well as channels that have neither of the 3 bits set.
- added basic unit tests for each loader to ensure test files have the expected numbers of channels in the various sub lists
2019-08-29 16:57:20 +02:00
hbeham
0c348ed151 - Sony: DVB-T and DVB-C lists are now separated into "TV", "Radio" and "Other" lists, each with their own unique numbering
- Samsung ZIP: deleting a channel now really deletes it from the file, instead of marking it as deleted
  and assigning -1 as channel number (which appears as 65535 on some models)
2019-08-11 17:27:07 +02:00
hbeham
8aee8a75d0 - various improvements for Sony 1.1.0e format (handling deleted channels that need a unique number)
- DX upgrade to 19.1.5
2019-08-11 10:04:29 +02:00
hbeham
25b2df7734 - added partial support for Philips .xml channel lists
(There are MANY different file formats, only a few are currently supported)
- fixed "most-recently-used" getting reversed every time the program was started
- added "UTF-8 (Unicode)" character set to menu
- fixed disappearing columns when loading different channel lists without restarting the application
2019-08-05 23:50:53 +02:00
hbeham
6786dc5615 - using custom %LOCALAPPDATA%\ChanSort\chansort.xml config file instead of standard .NET Settings with user.config
- .sdx files supported by the "SilvaSchneider" loader are also used by ITT, Medion, Nabo, ok., PEAQ, Schaub Lorenz and, Telefunken
- fixed Sony DVB-T channel lists
- fixed using wrong loader, when a file type was selected in the OpenFileDialog
2019-07-20 14:54:01 +02:00
hbeham
1e26ef9cd4 Generalized Crc32 implementation so it can be used for LG (TLL), Panasonic (.bin and .db) and Sony (sdb.xml) 2019-07-20 02:08:51 +02:00
hbeham
8e6d32e557 fixed support for Sony "FormateVer 1.1.0" DVB-C/T channel lists 2019-07-18 12:24:25 +02:00
hbeham
1acf6435c2 - implemented saving for "e" and normal formats
- correct handling for "e" program numbers
- code cleanup
2019-07-16 12:42:45 +02:00
hbeham
7fa2073c46 code cleanup 2019-07-16 02:27:56 +02:00
hbeham
57d6a7d8c1 partial Save implementation (only "non-E" format) and no checksum update 2019-07-16 01:44:18 +02:00
hbeham
077d08a343 - added support for DVB-T, DVB-C and predefined DVB-S lists (all still read-only) 2019-07-15 14:01:01 +02:00
hbeham
daeb9ffb1b - fixed 200MHz offset for Samsung DVB-C channels
- added support for Sony channel lists (read-only at the moment)
- added option to disable check for updates
2019-07-14 22:54:46 +02:00