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

Error handling language #9

Closed
th0ma7 opened this issue May 17, 2021 · 1 comment
Closed

Error handling language #9

th0ma7 opened this issue May 17, 2021 · 1 comment

Comments

@th0ma7
Copy link
Contributor

th0ma7 commented May 17, 2021

Since I've migrated to you python solution I noticed that the french accentuated characters stopped working in tvheadend.
They end-up being showed as:

Pour faire le tour des nouvelles et connaître les sujets qui font les manchettes à Montréal et partout au Québec; pour écouter les reportages de nos journalistes dans toutes les régions, les entrevues sur les sujets les plus chauds.

Where really all éèê... ends-up being î or é ...

I looked at the xmltv output differences and noticed a few things.
First, here is the other perl script output:

	<programme start="20210517053000 -0400" stop="20210517060000 -0400" channel="I2.1.45867.zap2it.com">
		<title lang="fr">Les Schtroumpfs</title>
		<sub-title lang="fr">Larmes de Schtroumpfs; L&apos;étoffe du temps</sub-title>
		<desc lang="fr">Le Grand Schtroumpf crée une substance magique qui permet à une seule rose de devenir aussi odorante que toute une roseraie, mais une petite erreur cause tous les Schtroumpfs dans les alentours de fondre en larmes.</desc>
		<category lang="fr">Family</category>
		<category lang="fr">Series</category>
		<length units="minutes">30</length>
		<icon src="https://zap2it.tmsimg.com/assets/p16054575_e_v4_aa.jpg" />
		<url>https://tvlistings.zap2it.com//overview.html?programSeriesId=SH00158738&amp;tmsId=EP001587380006</url>
		<episode-num system="dd_progid">EP00158738.0006</episode-num>
		<previously-shown />
		<subtitles type="teletext" />
		<rating>
			<value>G</value>
		</rating>
	</programme>

And here the python one for that exact same "french language" tv show:

    <programme start="20210517093000 +0000" stop="20210517100000 +0000" channel="45867">
      <title lang="en">Les Schtroumpfs</title>
      <sub-title lang="en">Larmes de Schtroumpfs; L&amp;apos;étoffe du temps </sub-title>
      <desc lang="en">Le Grand Schtroumpf crée une substance magique qui permet à une seule rose de devenir aussi odorante que toute une roseraie, mais une petite erreur cause tous les Schtroumpfs dans les alentours de fondre en larmes.</desc>
      <length units="minutes">30</length>
      <category>family</category>
  <thumbnail>http://zap2it.tmsimg.com/assets/p16054575_e_v4_aa.jpg</thumbnail>
<episode-num system="SxxExx">S03E00</episode-num><episode-num system="dd_progid">EP00158738.0006</episode-num>    </programme>

Some of the differences I found:

  • <title lang="fr"> set to en instead of fr
  • <sub-title lang="en"> set to en instead of fr
  • <desc lang="en"> set to en instead of fr
  • Missing newline before ending </programme>
  • Missing the <previously-shown />, <subtitles type="teletext" />, <rating>, <url>
  • Using <thumbnail> instead of <icon src=... (not sure it makes any difference)
  • Providing a "single" category instead of multiples (honestly I believe the lang="fr" is both wrong and useless):
<category lang="fr">Family</category>
<category lang="fr">Series</category>
@th0ma7
Copy link
Contributor Author

th0ma7 commented May 23, 2021

Solved with #10

@th0ma7 th0ma7 closed this as completed May 23, 2021
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

1 participant