Try 30 days of free premium.

API Bugs

AShortcuts wrote 4 years ago: 1

1. For "The Flash" by CW, in its summary in the api it has quotes around the word meta-human which is invalidating the json. Instead you can use ‘’.

2. Can the summaries in the API remove <p> and </p> because sometimes people want to show it in plain text or want to add a class/id to the summary.

This is how it is currently

"summary":"<p>After a particle accelerator causes a freak storm, CSI Investigator Barry Allen is struck by lightning and falls into a coma. Months later he awakens with the power of super speed, granting him the ability to move through Central City like an unseen guardian angel. Though initially excited by his newfound powers, Barry is shocked to discover he is not the only "meta-human" who was created in the wake of the accelerator explosion -- and not everyone is using their new powers for good. Barry partners with S.T.A.R. Labs and dedicates his life to protect the innocent. For now, only a few close friends and associates know that Barry is literally the fastest man alive, but it won't be long before the world learns what Barry Allen has become...The Flash!</p>"

This is how it should be

"summary":"<p>After a particle accelerator causes a freak storm, CSI Investigator Barry Allen is struck by lightning and falls into a coma. Months later he awakens with the power of super speed, granting him the ability to move through Central City like an unseen guardian angel. Though initially excited by his newfound powers, Barry is shocked to discover he is not the only 'meta-human' who was created in the wake of the accelerator explosion -- and not everyone is using their new powers for good. Barry partners with S.T.A.R. Labs and dedicates his life to protect the innocent. For now, only a few close friends and associates know that Barry is literally the fastest man alive, but it won't be long before the world learns what Barry Allen has become...The Flash!</p>"

Thank you for considering this


gazza911 wrote 4 years ago: 3

1. Any quotation marks in the properties are escaped; if you go to https://api.tvmaze.com/shows/13 you'll see that it does \"meta-human\"

2. Simply removing it wouldn't help for plain text as you can have bold & italic formatting in the summary as well. For a class/id, you can easily wrap it in another element.


Jan wrote 4 years ago: 2

The plain text/markup in the api is something that depends on preference. Most users benefit from it.

The formatting is helpful as it provides additional context to the content itself.

If you want it in plain text you'll have to strip out basic tags such as <p> <i> <b> and quotations yourself.

AShortcuts wrote 4 years ago: 1

Okay. Thank you for replying so quickly

Try 30 days of free premium.