Closed ollo69 closed 4 years ago
What time did this happen at, so I can look at the EPG? What is the channel number you were on? Were you watching live, recorded or on pause?
Time is in the log, (2.00 to 2.29 am) Channel is in the issue info (Sky Cinema Sci-Fi, a thematic channel opened in June at number 303) Watching TV live In any case is not the first time, I received also watching other channels in the past...
OK, I'll look at it over the week-end
I think I can see why you get that error. Seems like the Italian EPG for 5th June starts as 12:30 UTC (2:30 Italian). So now I need to get it to check back a day as well as forward a day (which I do at end of day).
This is the EPG for that channel - https://apid.sky.it/gtv/v1/events?from=2020-06-05T00:00:00Z&to=2020-06-05T23:59:59Z&pageSize=50&pageNum=0&env=DTH&channels=9047
Related information from Maurizio Fabiani:
2020-06-06 02:00:06 ERROR (MainThread) [custom_components.skyq.media_player] X0010M - Current Media retrieval failed: Media(channel='Sky Sport Uno HD', imageUrl='https://ethaneurope.it.imageservice.sky.com/pd-logo/skychb_23skysportunohd/600/600', sid=23, pvrId=None, live=True) : 'str' object has no attribute 'episode'
Traceback (most recent call last):
File "/config/custom_components/skyq/media_player.py", line 421, in _async_getCurrentMedia
self._episode = currentProgramme.episode
AttributeError: 'str' object has no attribute 'episode'
Looking at the hours (from 02:00:00 to 02:45:00) to it seems they appears only at night and maybe when the skyq is in standby mode. Never happened before with previous releases…
I think it happen only at night but not in stand-by mode (I was sleeping watching the TV at that hour :)). Make sense the analysys related to the UTC time used for the EPG. Should I try to install your last beta release?
It should fix it, though I'm testing out some better code improvements overnight, before I put another beta out.
Ok, so I wait for next beta, thanks
And yes 2am is midnight UTC, and Italian EPG brings back programmes starting between the hours searched for, and previously I look for 00:00 to 23:59. So now I'm changing to start at 22:00 the evening before, but again Italian EPG drops previous day listings off, which I'm trying to figure when. If you search to early like midday, then you get nothing back.
Let me know if you need any kind of support for testing...
Thanks
I just posted beta3. Give it a go and leave your Sky box on over 2am if you can, to test the midnight UTC logic.
Thanks
Just installed last beta3. Will let you now results tomorrow. Thanks again.
Describe the bug
With some channel I receive a lot of error in the log as described below
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Catch the exception, simply do not provide info if not available
Screenshots
If applicable, add screenshots to help explain your problem.
Component versions
Your configuration
How have you setup your devices, by UI or YAML?
UI
Your configuration from the options dialogue
Output of HA logs
Paste the relavant output of the HA log here.