Wednesday, 17 October 2018

Bugfix on Society6 Nifty CPanel and its promo tools

Someone reported that they couldn't get the Society6 Nifty CPanel to work with their store's name nor with a collection they made.

http://www.kdl.to/society6-rss/society6-nifty-cpanel.html


It was a weird one that took a bit of digging. It turns out that when an artist's name is longer than a certain number of characters, that's when the bug surfaces. Once I'd found that out, the fix was easy.

My thanks to the person who reported the problem 💐


-----------------------------------------------

🤓

The page from Society6 I'm turning into an RSS feed treats long artist names slightly differently than short ones. If an artist's name is too long, the page uses a shortened version and adds a horizontal elipsis character. And that was the problem.

You see, the horizintal elipses (a "..." character) is represented by the html entity … And that's an illegal character in some places in an RSS feed. And that was breaking the feed so that it wasn't producing anything.

Luckily its equivalent, … is ok so I swapped it wherever it appeared and now it's ok.