Giter VIP home page Giter VIP logo

Comments (14)

RogerSelwyn avatar RogerSelwyn commented on August 15, 2024 1

OK, I'll look at it over the week-end

from home_assistant_skyq_mediaplayer.

RogerSelwyn avatar RogerSelwyn commented on August 15, 2024

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?

from home_assistant_skyq_mediaplayer.

ollo69 avatar ollo69 commented on August 15, 2024

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...

from home_assistant_skyq_mediaplayer.

RogerSelwyn avatar RogerSelwyn commented on August 15, 2024

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

from home_assistant_skyq_mediaplayer.

RogerSelwyn avatar RogerSelwyn commented on August 15, 2024

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…

from home_assistant_skyq_mediaplayer.

ollo69 avatar ollo69 commented on August 15, 2024

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?

from home_assistant_skyq_mediaplayer.

RogerSelwyn avatar RogerSelwyn commented on August 15, 2024

It should fix it, though I'm testing out some better code improvements overnight, before I put another beta out.

from home_assistant_skyq_mediaplayer.

ollo69 avatar ollo69 commented on August 15, 2024

Ok, so I wait for next beta, thanks

from home_assistant_skyq_mediaplayer.

RogerSelwyn avatar RogerSelwyn commented on August 15, 2024

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.

from home_assistant_skyq_mediaplayer.

ollo69 avatar ollo69 commented on August 15, 2024

Let me know if you need any kind of support for testing...

from home_assistant_skyq_mediaplayer.

RogerSelwyn avatar RogerSelwyn commented on August 15, 2024

Thanks

from home_assistant_skyq_mediaplayer.

RogerSelwyn avatar RogerSelwyn commented on August 15, 2024

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

from home_assistant_skyq_mediaplayer.

ollo69 avatar ollo69 commented on August 15, 2024

Just installed last beta3. Will let you now results tomorrow.
Thanks again.

from home_assistant_skyq_mediaplayer.

RogerSelwyn avatar RogerSelwyn commented on August 15, 2024

Fixed by https://github.com/RogerSelwyn/Home_Assistant_SkyQ_MediaPlayer/releases/tag/v2.2.2

from home_assistant_skyq_mediaplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.