4gray / iptvnator

:tv: Cross-platform IPTV player application with multiple features, such as support of m3u and m3u8 playlists, favorites, TV guide, TV archive/catchup and more.
https://iptvnator.vercel.app
MIT License
2.51k stars 347 forks source link

Link letters in Cyrillic(?) #310

Open nobef opened 10 months ago

nobef commented 10 months ago

I have a couple of links in Cyrillic (I forgot the encoding). In short, the links were originally in Cyrillic, but now they are transliterated. Many players play them, but not here. I understand that these are outdated solutions, and yet links are rare. But if it’s not difficult and the author has the desire, then it would be good. Here is the original link: http://213.172.73.133:8081/nimble_live/9008_Премиальное_HD/playlist.m3u8 Here after transliteration: http://213.172.73.133:8081/nimble_live/9008_%D0%9F%D1%80%D0%B5%D0%BC%D0%B8%D0%B0%D0%BB%D1%8C%D0%BD%D0%BE%D0%B5_HD/playlist.m3u8

Add support for certain links in Cyrillic encoding(?)

4gray commented 10 months ago

Both links work with mpv player and not one of them with videojs, so it's not about encoding.

nobef commented 10 months ago

@4gray Well, I know it's not in the video encoding, if that's what you meant. And it works in about all players if you insert a second link. The point is in Cyrillic characters, and the fact that Iptvnator does not understand such a link (the second one). The second transliterates characters into Latin designations, like that. This is done when the program does not understand the Cyrillic alphabet. I converted such symbols for radio to ETS2. It turns out like "AAABBBB%%%", and the program translates it into normal letters. But there were names, and here are links... In short, I have been Googling for a long time, and found the designations, but I forgot. Tomorrow I will try to find and understand what it is.

nobef commented 10 months ago

@4gray I had a similar problem for a long time, then I wrote to the developer of IPTV Player (PC). Saved in the mail. Then there were also Cyrillic letters in the link, but I did not transliterate. In short, I didn’t play any other player besides that one. This is what he replied: **All modern software, including browsers, encodes characters in URLs in UTF-8, and IP-TV Player, due to the old code, works in a single-byte encoding, in this case Windows-1251. Probably the server has the same encoding.

To make it work in VLC, you can try to urlencode the names there like this: ip/первыйканал.m3u8 -> **ip/%EF%E5%F0%E2%FB%E9%EA%E0%ED%E0%EB.m3u8

http://www.codenet.ru/services/urlencode-urldecode/ "Windows-1251 encoded text"**

Here the second option does not help either, but I wrote his answer for understanding. I think something similar