Skip to content
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

Quotation marks in tvc-guide-description field are not entirely removed #22

Open
CSchlipp opened this issue Nov 25, 2021 · 1 comment
Open

Comments

@CSchlipp
Copy link

I'm using your docker image to import the Pluto Channels to TvHeadend, thanks for providing it!
During import, I saw some weird data parsed from the m3u. I could also reproduce this parsing error with VLC player.

With V1.2.9, not all quotation marks are removed from the tvc-guide-description field of the m3u file.
Example:
#EXTINF:0 channel-id="chaos-city-de" channel-number="130" tvg-logo="http://images.pluto.tv/channels/60afbad343e3840007164348/colorLogoPNG.png" tvc-guide-art="http://images.pluto.tv/channels/60afbad343e3840007164348/featuredImage.jpg?fill=blur&fit=fill&fm=jpg&h=562&q=75&w=1000" tvc-guide-title="Chaos City" tvc-guide-description="In der US Sitcom Chaos City" ist Chaos vorprogrammiert! Begleitet Michael J. Fox und Charlie Sheen dabei, wie sie den chaotischen Arbeitsalltag in einem New Yorker Rathaus meistern." group-title="Serien", Chaos City
(see " after 'US Sitcom Chaos City')

I suppose this is due to index.js:366 removing only the first occurrence of " and ”, not all.

let guideDescription = channel.summary
        .replace(/(\r\n|\n|\r)/gm, " ")
        .replace('"', "")
        .replace("”", "");

Not a js expert, but this might fix it:

let guideDescription = channel.summary
        .replace(/(\r\n|\n|\r)/gm, " ")
        .replaceAll('"', "")
        .replaceAll("”", "");
@tmm1
Copy link
Collaborator

tmm1 commented Jun 1, 2022

Could you submit a PR with that change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants