-
Notifications
You must be signed in to change notification settings - Fork 116
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
All text within square brackets is getting stripped from labels in the browser - Issue with BB code strip regex #223
Comments
There is a regex that removed BB code from labels which addons annoyingly use, it seems as though it thinks your title is a BB code tag (because it is in square brackets). Short term fix... rename your playlist to use round brackets? Long term fix... myself (or someone better at regex than me) see what is going wrong with this |
I looked into this first from the POV of regular expressions (it's challenging to attempt to parse BBcodes with a regex as we know), but now I am wondering why there is a need to strip BBcode in a playlist name? I tried to find references on whether Kodi actually supports this at all but can't find any. So bottom line, is there a need to strip bbcodes in this case to begin with? I can see other interfaces (coming back to Yatse) don't deal with bbcodes in playlist names |
Yes there is a need. Google music addon for example has something like |
Understood I think the key is that the regex needs to only match if the start of the string in square brackets is a valid BBcode expression, as opposed to other non BBcode content such as in my case. Hence this alternate approach seems to fit better: which is in fact multiple chained regexes like so,
This apporach should still address the google music case, and handle [HDAudio] like a champ. |
This works https://regex101.com/r/Z89KU8/2 Will be updated in the next release |
That looks much better :) |
Should be good in 2.4.3 👍 |
Chorus 2 is able to navigate advanced playlists and the functionality works great, but there is one glitch.
I have the following playlist (amongst many others)
This playlist shows in the local machine GUI and also in my smartphone via Yatse, at the top of the playlist list, as "[HD-Audio]". When clicked, many albums in the collection match it.
In Chorus2 (2.4.1), when I list the playlists in Browser > Playlists > Music , I see an "empty playlist" at the top with a description: "no media in this folder", and this line can't be clicked.
It seems that Chorus2 has a problem with the playlist name containing non-letter characters. The reason for the non-letter first chars is that I want this to show at the top of the playlist list, as it does in the GUI and Yatse.
Hope this could be fixed in time for krypton's final release :)
The text was updated successfully, but these errors were encountered: