Skip to content

Fixed issue in Bing POTD provider where Title is text Info and wrong parse of author.

George Travelbacon requested to merge (removed):titlefix into master

The issue where the title was displayed as "Info" has been fixed. This problem occurred when the JSON retrieved from https://www.bing.com/HPImageArchive.aspx?format=js&idx=1&n=1 contained the value "Info" for the title keyword. This was due to a change Microsoft implemented several years ago.

Additionally, in the copyright field, the author's name always appears after the symbol "©". The previous implementation incorrectly identified the author when multiple sets of parentheses () were present in the text. For example:

"Sattais Katcheri (Court of 27 pillars), Amber Fort, Rajasthan, India (© Yury Taranik/Shutterstock)"

In this case, the earlier code extracted "Court of 27 pillars" as the author instead of "Yury Taranik/Shutterstock." This error has also been corrected. Now, the code correctly handles cases with multiple parentheses and identifies the author's name accurately.

Merge request reports

Loading