epg icon indicating copy to clipboard operation
epg copied to clipboard

m.tv.sms.cz is broken

Open freearhey opened this issue 1 year ago • 4 comments

Site

m.tv.sms.cz

Description

npm run grab -- --site=m.tv.sms.cz

> grab
> npx tsx scripts/commands/epg/grab.ts --site=m.tv.sms.cz

staring...
config:
  output: guide.xml
  maxConnections: 1
  gzip: false
  site: m.tv.sms.cz
loading channels...
  found 525 channel(s)
run #1:
  [1/1050] m.tv.sms.cz (bs) - BNTV.ba - Nov 20, 2023 (0 programs)
    ERR: write EPROTO C04D101B01000000:error:0A000172:SSL routines:tls12_check_peer_sigalg:wrong signature type:ssl/t1_lib.c:1594:

  [2/1050] m.tv.sms.cz (bs) - BNTV.ba - Nov 21, 2023 (0 programs)
    ERR: write EPROTO C04D101B01000000:error:0A000172:SSL routines:tls12_check_peer_sigalg:wrong signature type:ssl/t1_lib.c:1594:

  [3/1050] m.tv.sms.cz (cs) - AMC.cz - Nov 21, 2023 (0 programs)
    ERR: write EPROTO C04D101B01000000:error:0A000172:SSL routines:tls12_check_peer_sigalg:wrong signature type:ssl/t1_lib.c:1594:

https://check-host.net/check-report/135d7e05kb9d

freearhey avatar Nov 20 '23 12:11 freearhey

From what i understand the cause for this is that nodejs updated to a new OpenSSL version in some recent release which doesn't like their signature. As a workaround you can add the --tls-cipher-list=DEFAULT@SECLEVEL=0 command line switch.

"grab": "npx tsx --tls-cipher-list=DEFAULT@SECLEVEL=0 scripts/commands/epg/grab.ts",

Not sure if this can be done in code. Probably not a great idea to loosen signature verification in general.

GenericMale avatar Nov 21 '23 08:11 GenericMale

Probably not a great idea to loosen signature verification in general.

It doesn't look very safe to me either.

freearhey avatar Nov 21 '23 09:11 freearhey

Yeah i definitely wouldn't commit that as a change in the package.json. Just wanted to leave that here for ppl looking for a workaround. I feel the only proper way to fix this is for the website to fix their server side ssl config.

GenericMale avatar Nov 21 '23 09:11 GenericMale

"grab": "npx tsx --tls-cipher-list=DEFAULT@SECLEVEL=0 scripts/commands/epg/grab.ts",

how should i correctly write this into terminal? I think this is wrong: image

bt4ibwem8 avatar Jul 04 '24 15:07 bt4ibwem8