iptv-org / epg

Utilities for downloading the EPG (Electronic Program Guide) for thousands of TV channels from hundreds of sources.
https://iptv-org.github.io/
The Unlicense
1.78k stars 194 forks source link

m.tv.sms.cz is broken #2241

Open freearhey opened 10 months ago

freearhey commented 10 months ago

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

GenericMale commented 10 months ago

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.

freearhey commented 10 months ago

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

It doesn't look very safe to me either.

GenericMale commented 10 months ago

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.

bt4ibwem8 commented 2 months ago

"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