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

[AutoTimer & OpenWebif] tags join/separation space character issue #418

Open
wedebe opened this issue Feb 22, 2021 · 0 comments
Open

[AutoTimer & OpenWebif] tags join/separation space character issue #418

wedebe opened this issue Feb 22, 2021 · 0 comments

Comments

@wedebe
Copy link
Contributor

wedebe commented Feb 22, 2021

Adding (for example) tags AAA and BBB CCC to an AutoTimer via OpenWebif saves correctly to autotimer.xml as

<tag>AAA</tag>
<tag>BBB CCC</tag>

However, the e2tags are ingested by OpenWebif as AAA%20BBB%20CCC -> AAA BBB CCC.

/autotimer/src/AutoTimerConfiguration.py:

		# Tags
		if webif and timer.tags:
			extend(('  <e2tags>', stringToXML(' '.join(timer.tags)), '</e2tags>\n'))
		else:
			for tag in timer.tags:
				extend(('  <tag>', stringToXML(tag), '</tag>\n'))
wedebe added a commit to wedebe/enigma2-plugins that referenced this issue Mar 22, 2021
Output space-separated tags correctly (oe-alliance#418)

This change outputs autotimer tags individually instead of providing a space-separated list which splits space-separated tags incorrectly.
`<e2tags>` is kept so as not to break existing consumers.
jbleyel added a commit that referenced this issue Mar 22, 2021
[AutoTimer] Output space-separated tags correctly (#418)
jbleyel pushed a commit that referenced this issue Mar 22, 2021
Output space-separated tags correctly (#418)

This change outputs autotimer tags individually instead of providing a space-separated list which splits space-separated tags incorrectly.
`<e2tags>` is kept so as not to break existing consumers.
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