-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scrobbling is not always working after newest update #9
Comments
Looks like the update changed something that the scraper is relying on:
I'm seeing that in Windows Event Viewer... |
Here's what's going on, but I'm not sure what the fix is yet as I don't really understand the scraping of elements from the window. Vincent can hopefully weight in. It appears that the new version of the app kind of "hides" the time elapsed and time remaining elements when a new song plays. If you hover over them once, the values appear and things are good for the remainder of that song. But when the scraper can't see the element, it fails on this:
When those are null, things are not happy. I suppose there should at least be a try/catch around that to avoid the exception, but I don't know if the scraping completely breaks if it can't find the true times since the timer may depend on that (the thing that detects when there is a new song). |
This should at least get past the null reference exception:
But once again, I'm not sure what that does to the scraping and timer side of things. I'll play around with it some more and see if things keep scrobbling with that change. |
The timestamps are only used for Discord's Rich Presence - they aren't used in the scraping logic. |
thanks for your hard work |
After i updated Apple Music Preview, scrobbling sometimes work and sometimes does not work. I tried restarting the app and issue isnt fixed, but after some time it start working again
The text was updated successfully, but these errors were encountered: