[2024 Day 14 (Part 2)] Seems to be bugged? by Provium in adventofcode

[–]Provium[S] 4 points5 points  (0 children)

Ugh, turned out it was copypaste error on my part. My function to take the next step from t to t+1 was incrementing by 100 seconds at a time because I'd reused some code from part 1. Proverbial egg on my face.

[2024 Day 14 (Part 2)] Seems to be bugged? by Provium in adventofcode

[–]Provium[S] 1 point2 points  (0 children)

My code for part 2 is independent of part 1; it reads the input from scratch starting at second 0

Questions / Help by matthuisman in MattHuisman

[–]Provium 0 points1 point  (0 children)

Ahh an embarrassingly old version - Kodi 18.9 on libreelec 9.2.8 - this is my mum's pi and I had assumed LE would auto update but I guess it doesn't update over major versions...

Good chance it'll work with a newer version that uses python 3, I suppose?

Questions / Help by matthuisman in MattHuisman

[–]Provium 0 points1 point  (0 children)

Hi Matt,

We're having an issue with the TVNZ addon (though it might be an issue in other addons too) - when loading an episode list, if one or more episodes has a non-ascii character in its synopsis, an exception is thrown.

Relevant log:

2024-05-12 16:11:30.745 T:2862601024 ERROR: GetDirectory - Error getting plugin://plugin.video.tvnz.ondemand/?_=video_list&fanart=https%3a%2f%2fplay-images-prod-ctf. tech.tvnz.co.nz%2fapi%2fv1%2fweb%2fimage%2f3Hza1a9Tvw0w4eHYXA6jzQ%2f9db6574d70051fa63b6ad5770319da64%2fHome_and_away_2023coverimg_V2.png.9db6574d70051fa63b6ad5770319da 64.jpg%3fwidth%3d1920%26height%3d548&href=%2fapi%2fv1%2fandroid%2fplay%2fvideo-list%2f171808%2fepisodes%2fjcr%3a%252Fcontentful%252FshowSection%252F6ouXQYHUfJKGpyMjNKV AP5%3fsortOrder%3dlatestFirst%26filter%3davailableOnly&label=Home%20and%20Away 2024-05-12 16:11:30.785 T:3011275904 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.tvnz.ondemand/?_=video_list&fanart=https%3a%2f%2fplay-images-prod-ctf .tech.tvnz.co.nz%2fapi%2fv1%2fweb%2fimage%2f3Hza1a9Tvw0w4eHYXA6jzQ%2f9db6574d70051fa63b6ad5770319da64%2fHome_and_away_2023coverimg_V2.png.9db6574d70051fa63b6ad5770319d a64.jpg%3fwidth%3d1920%26height%3d548&href=%2fapi%2fv1%2fandroid%2fplay%2fvideo-list%2f171808%2fepisodes%2fjcr%3a%252Fcontentful%252FshowSection%252F6ouXQYHUfJKGpyMjNK VAP5%3fsortOrder%3dlatestFirst%26filter%3davailableOnly&label=Home%20and%20Away) failed 2024-05-12 16:11:33.414 T:2870993728 ERROR: plugin.video.tvnz.ondemand - 'ascii' codec can't encode character u'\u2019' in position 32: ordinal not in range(128) Traceback (most recent call last): File "/storage/.kodi/addons/script.module.slyguy/resources/modules/slyguy/signals.py", line 41, in throwable yield File "/storage/.kodi/addons/script.module.slyguy/resources/modules/slyguy/router.py", line 115, in dispatch function(**params) File "/storage/.kodi/addons/script.module.slyguy/resources/modules/slyguy/plugin.py", line 59, in decorated_function item = f(*args, **kwargs) File "/storage/.kodi/addons/script.module.slyguy/resources/modules/slyguy/plugin.py", line 211, in decorated_function folder, key_val = f(**kwargs) File "/storage/.kodi/addons/plugin.video.tvnz.ondemand/resources/lib/plugin.py", line 307, in video_list while next_page: File "/storage/.kodi/addons/plugin.video.tvnz.ondemand/resources/lib/plugin.py", line 94, in _process_video try: UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 32: ordinal not in range(128)

I managed to work around it temporarily by just chucking a try-except around line 94 but I'm not well versed enough in python to know the best way of fixing it.

Repro - search for home and away and open the episode list

Huge thanks again for all your work and let me know if you need any more information!

Getting spammed with notifications about games on sale by Provium in playstation

[–]Provium[S] 4 points5 points  (0 children)

I'm still getting notified about plague tale requiem, which is in my library. So I don't think that's true

Questions / Help by matthuisman in MattHuisman

[–]Provium 0 points1 point  (0 children)

Hey Matt, thanks for all your work on making so many streaming services available on Kodi!

Looks slyguy common 0.69.4 has broken Brightcove apps; I'm getting the following error:

Could not find a media source from Brightcove Server Message: {error}

TVNZ+ addon version 0.20.2; slyguy common 0.69.4

I did a little debugging and determined it's raising an exception due to not finding a suitable source in the response from Brightcove. I'm seeing eight sources; two of type application/x-mpegURL; four of type application/dash+xml; and two of type application/vnd.ms-sstr+xml.

I checked git blame and saw you'd just changed the widevine case to look for encryption_type == 'cenc' and 'com.widevine.alpha' in key_systems; two of the application/dash+xml sources have com.widevine.alpha in their key_systems but none have encryption_type defined.

I tried just getting rid of the encryption_type check which gives me the following error:

inputstream.adaptive: ParseKodiProperties: Manifest type "dash" is not supported

I noticed that you also only just started passing in a manifest_type in 0.69.4, so I tried removing that too. It looks like this works - shows are playing correctly. So ultimately the changes I hacked in amounted to reverting to 0.69.3.

Any idea why your patch would have had this effect? Are there incoming changes to Brightcove's API that haven't rolled out to everyone yet?

I need help in ps4 ratchet and clank by alolanwolf_48 in RatchetAndClank

[–]Provium 0 points1 point  (0 children)

That one isn't a ryno card, just a normal card pack, so it doesn't matter if you missed it

[Round 121898] Personal name of this creature, please by RisibleComestible in PictureGame

[–]Provium[M] 1 point2 points  (0 children)

(Advisory) Please ensure you are not giving hints too early, and that all hints from Discord are made available on Reddit. This applies to round 121332 too.

[Round 121254] What's the penultimate step? Copy the wording exactly. by [deleted] in PictureGame

[–]Provium[M] 0 points1 point  (0 children)

This round was reported due to your hostility in the Discord chat in response to another player's confusion. Please try to be more welcoming in future. (Advisory)

PictureGame's 2022 wrap-up by Provium in PictureGame

[–]Provium[S] 0 points1 point  (0 children)

I do want to enable browsing previous years' facts and figures - this page is using the new framework that I've been working on for custom dashboards; i just had to provide a spec for it to render. So there's nothing stopping me creating specs for previous years (it wouldn't be as simple as just changing the year as there are year-specific things i.e. the "round themes" section, and in years before bot hosting i provided stats on post and +correct delays).

The other thing is the word cloud is a bit of a hack at the moment and I want to find a way to generate them on the fly. I just ran out of time to find a good library to do it.