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

fix themes not displaying due to double video end tags #315

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joyrider3774
Copy link
Contributor

This should fix the issue with themes not displaying due to double endtags being used in the video xml tag. (issue #310) Not sure why there are so many themes that do this but removing the 1st endtag fixes it in attract and the themes load now, instead of showing just the background. I'm just replacing strings that contain the double video entag, replacing it with one without the double endtag. They always seem to show up on the same place at the same attributes with all the themes i tested/

Copy link
Owner

@mickelson mickelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey there, thanks for this

it seems a bit clunky to separately search for each variation where the only difference is the none, left, top... values.

Did you consider using squirrel's regexp.search functionality to do this search using a regular expression? see: http://www.squirrel-lang.org/squirreldoc/stdlib/stdstringlib.html

a regular expression should be able to do the seatch once without caring what those values are... it might not work though since I understand that squirrel's regexp is pretty broken.

@mickelson
Copy link
Owner

or here's another thought, wouldn't it be simpler to just search for ""/>rest=" and replace that with "" rest="

@joyrider3774
Copy link
Contributor Author

you are exactly right, i did not think about searching for ""/>rest=" and replacing it with ""rest=". I'll change the code to that. The reason i did not use a regular expression is because i was not familiar with it. At work i let me collegue write them. but i'll give it a shot.

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

Successfully merging this pull request may close these issues.

2 participants