-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Labels
Description
vhs-teletext/teletext/finders.py
Line 144 in 088da39
Finder("100\x02ARD/ZDF\x07Mo 26.12.88\x0222:00:00", |
Currently finders use two strings. One contains a literal example of a header and the other contains special characters that define how the header can vary. It works well for UK Teletext/Oracle/Ceefax but has problems with other broadcasts from countries:
- No way to define numeric month/year dates.
- Text patterns expect the English spellings.
- The system is quite confusing to use.
One possible way to improve the finders would be to use regular expressions. This would allow any arbitrary type of header to be matched. However the finder needs to do fuzzy matching with ranking based on the type of match. Also, regular expressions would probably be even harder to understand - although they are at least a standard rather than something I have made up.