Closed iMacThere4iAm closed 2 years ago
This fix needs more testing, at the moment it works well when run from a terminal but not via systemd.
This fix needs more testing, at the moment it works well when run from a terminal but not via systemd.
Fixed by a04b1a5. Everything else is just tinkering.
Pull request closed by accident!
Looks great! I've made a few formatting changes (just being picky, nothing wrong with it) and a few minor changes. If it all looks good to you, I'm happy to merge it now!
All good, be as picky as you like with my noob code! I've got nothing to add to the branch, so merge away.
On newer Chromecast devices which don't return the
videoID
togo-chromecast
, attempt to identify it using an API search query. Not guaranteed to get it right. Requires an API key. Fixes nichobi/sponsorblockcast#16TODO: Needs error handling, in case an API query is attempted but fails. TODO: Needs some validation to confirm back that it's identified the right
videoID
. Perhaps by comparing the duration returned bygo-chromecast
to thevideoDuration
in thesponsorblock
database. TODO: Could scrape a non-API Youtube search as a secondary fallback option if the API query fails. This would be less robust but doesn't require an API key.