-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
id_transforms #83
Comments
That tiny snippet of config looks ok as far as I can see. It not working as expected might be due to other config not shown or input data not supplied. Not much to go on here. |
The full one: |
What's going on with the strange characters? Maybe attach a file rather than pasting it or worst case paste it as code so it's at least known to be intentional. Also still no input data so still not much to go on. |
I have channels with non ascii characters, i guess. But it doesn't seem to be an issue. |
original.zip |
I ran a test with your source data and your json config and it looks to me like your configured transforms are working and are incomplete. i.e. I see this line ends up in the newly created m3u file with no rewritten
For tvg-id transforms to be complete and tvg-id values to be populated where they were originally empty a matching transform rule needs to exist for every There's no bug here as far as I can see, just mismatched config against the source data as mentioned
|
I think I have found why it doesn't work for some channel names. You have to open the json file in utf8 mode like this: This way the accentued characters in channel names are correctly handled. |
I don't think that's the full story to be honest. The config that you supplied above contains a unicode character and it processes against your supplied m3u/epg data without error on Linux without any code change. I see however from that config that you appear to be running on a Windows OS and I suspect some of what's going on is related to OS, the environment you're running Python in and possibly also related to what was previously said in here which was another unicode discussion around your Windows OS and terminal/CLI environment. |
Now I'm using powershell to launch the script. All I can say is that, for me, without the "encoding='utf-8'" parameter it doesn't work for channel names with a "é" and with the parameter, the bug is fixed. |
Hello.
In my json config file I have this :
"id_transforms": [
{ "|FR| CANAL+ 4K HDR UHD (Résolution Exclusive)" : "CanalPlusUhd.fr" },
{ "|FR| DREAMWORKS FHD" : "Dreamworks.fr" },
{ "|FR| L'EQUIPE LIVE 1 FHD" : "LequipeLive1.fr" },
{ "|FR| L'EQUIPE LIVE 2 FHD" : "LequipeLive2.fr" },
{ "|FR| RMC SPORT LIVE 3 FHD" : "rmcsport3.fr" }
],
but in the resulting m3u, the tvg-id remains unchanged. For example :
#EXTINF:-1 tvg-id="" tvg-name="|FR| RMC SPORT LIVE 3 FHD" tvg-logo="https://i.imgur.com/gtuTff6.png" group-title="FR SPORTS (France)",|FR| RMC SPORT LIVE 3 FHD
What's wrong in my config?
Thank you.
The text was updated successfully, but these errors were encountered: