Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
hello, translation from english to chinese does not work in the translation widget. in the translation.js file, not the parser, i changed the "iso" value from "zh-Hans" to just "zh". this seemed to fix it. although now i am unsure if it is simplified or traditional.
 
alright! new widget fix drop! i managed to get the espn widget working using espn's "official" undocumented api endpoint, http://site.api.espn.com/apis/site/v2/sports/basketball/nba/news. it uses json instead of xml, so i had to ask gemini for a bit of help with "converting" it. someone reported that the score numbers dont show up, but it works fine for me. anyways, news does work and scores will display the team names. please let me know if the scores show up!
 

Attachments

  • ESPN.zip
    2.9 MB · Views: 2
hello, translation from english to chinese does not work in the translation widget. in the translation.js file, not the parser, i changed the "iso" value from "zh-Hans" to just "zh". this seemed to fix it. although now i am unsure if it is simplified or traditional.
Thank you! I've fixed this, in the same way you did; it looks like Deepl changed something since I'm pretty sure this used to work. "zh" should still be simplified, although Deepl's API docs are not entirely clear.

I've also taken this opportunity to add a few new languages to the widget, which Deepl now supports.

Is it okay if I add your fixed widgets to mavericksforever.com? I'll say "created by iPodNano3", of course!
 
Thank you! I've fixed this, in the same way you did; it looks like Deepl changed something since I'm pretty sure this used to work. "zh" should still be simplified, although Deepl's API docs are not entirely clear.

I've also taken this opportunity to add a few new languages to the widget, which Deepl now supports.
alright, thanks!
Is it okay if I add your fixed widgets to mavericksforever.com? I'll say "created by iPodNano3", of course!
yes, that would be great. thank you!
 
  • Like
Reactions: Wowfunhappy
sorry, i didnt realize until now, that i set the path for the espn widget parser to /library/widgets/espn.wdgt, instead of the current directory. this meant the widget would not function if it was not placed inside /library/widgets. here is the updated version to use the parser in its current directory. i apologize!
 

Attachments

  • ESPN.zip
    3 MB · Views: 1
  • Like
Reactions: Wowfunhappy
espn update:
enabled golf (pga), soccer (intl, us, eu, uk), tennis (atp) and auto racing (f1). golf, tennis and racing scores are currently broken. i haven't had much luck with golf as it cannot be parsed the same as other sports. it is an individual sport as opposed to a team sport, so no <home> and <away> values. news is ok on all of them. soccer scores are functional.
stocks update:
nothing much, just enabled the ability to view more up to date, live stock data on yahoo finance's website. you can activate this feature by double clicking on the symbols on the front side of the widget. it will open the page in your default browser.
 

Attachments

  • ESPN 2.zip
    3 MB · Views: 1
  • Stocks 2.zip
    925.8 KB · Views: 1
  • Like
Reactions: Wowfunhappy
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.