Giter Site home page Giter Site logo

eitparser's People

Contributors

wolfgangfahl avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jehoffmann

eitparser's Issues

UK EITs not parsed correctly?

I have a Vu+ Uno 4kSE running OpenVix and have copied a bunch of recordings with .eit and .meta files across. They don't seem to fully parse correctly.

Have uploaded an example pair of files with .txt appended

When I run the .eit through eitparser I get this as the output :

b'New: Endeavour\xc5New: Endeavour\xc5'
(2023, 3, 12)
b''

I would expect to get something more like I have in the .meta file where the name field is "New: Endeavour" and the description field is "Uniform: Crime drama series. A crime wave..." :

New: Endeavour
Uniform: Crime drama series. A crime wave has taken hold of Oxford - a homeless man is grievously assaulted, a young PC is found dead, and a notable artist reported missing. [AD,S,HD] S9 Ep2
(2023, 3, 12)

I've added an 'eng' language entry to eitparser.py but that doesn't change the result. I wondered if :s or []s were problematic characters? Other files parse with xbd rather than xc5 etc. but most seem to have the b'' ?

It looks as if the UK (or at least the UK DVB-S/S2) EIT format uses the short_event_descriptor format with both the Event_name: and the Text: fields used - and there is an 0x15 character before both Event_name and Text fields start?

20230305 1957 - ITV London HD - New_ Endeavour.ts.meta.txt
20230312 1957 - ITV London HD - New_ Endeavour.eit.txt

I have corrected some things in the parser

Dear Mr. Fahl,

I have corrected some things in the eitparser.py.
If you want you can update the changes in your version.

eitparser.zip

Please ignore the line 37:
sys.stdout.reconfigure(encoding='utf-8')

I needed this because I use the program in a pipe within a powershell script.
Before the virtual console characterset was cp1252 and special characters were not shown correctly.

With best regards

Martin Rupp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.