torttube/addon/plugin.video.torttube
Kayos 11eecbccc2 v1.0.3 — bundle pv.youtube + service-level SponsorBlock
Two big changes:

- service.py is a new background-service component (xbmc.service
  extension). On first run it extracts the bundled pv.youtube 7.4.3 zip
  into Kodi's addons dir, forces a rescan, enables it. No more two-step
  install. The bundle stays as a separate Kodi addon at runtime; we just
  ship + auto-install it.

- The service also subclasses xbmc.Player and runs SponsorBlock for
  ANY YouTube playback, not just plays initiated by torttube. The
  TorttubePlayerMonitor watches onAVStarted globally, pulls the YouTube
  ID from the playing-file URL (matches ?v=, ?file=XXX.mpd, ?video_id=
  — covers pv.youtube's resolved URLs in every shape), then runs a poll-
  skip loop on a background thread. Critical: this means SponsorBlock
  now works when a video is cast to Kodi from the phone YouTube app —
  the cast hits pv.youtube directly and our plugin code is never
  invoked, but the service is always alive and catches it.

- Dropped the three _attach_sponsorblock call sites in main.py._play()
  and the SponsorBlockMonitor class. The DASH path still needs to block
  until playback ends so it can shut down its localhost MPD server;
  that's now a tiny _wait_for_playback_end() that doesn't do SB.

- Removed the <import addon="plugin.video.youtube"> from addon.xml since
  we bundle it; kept inputstream.adaptive as an optional import.
2026-05-23 16:18:49 -07:00
..
resources M7 DONE via delegation — pv.youtube plays HD with audio 2026-05-23 11:58:12 -07:00
addon.xml v1.0.3 — bundle pv.youtube + service-level SponsorBlock 2026-05-23 16:18:49 -07:00
main.py v1.0.3 — bundle pv.youtube + service-level SponsorBlock 2026-05-23 16:18:49 -07:00
service.py v1.0.3 — bundle pv.youtube + service-level SponsorBlock 2026-05-23 16:18:49 -07:00