meetube icon indicating copy to clipboard operation
meetube copied to clipboard

[Feature]: Cache SponsorBlock segments for offline video playback

Open MAKAKAIglitch opened this issue 6 days ago • 0 comments

Which app?

MeeTube (phone or tablet)

What would you like MeeTube to do?

Please add support for downloading and caching SponsorBlock segment metadata alongside videos, allowing SponsorBlock to work during offline playback.

MeeTube already supports SponsorBlock during online playback and allows users to download videos. However, SponsorBlock data is normally retrieved from its API, meaning that downloaded videos may lose automatic sponsor skipping when the device is offline.

Proposed behavior

When downloading a video:

  • Fetch its SponsorBlock data while an internet connection is available.
  • Save segment timestamps and their categories locally alongside the downloaded video's metadata.
  • Associate the cached data with the correct video ID.

During offline playback:

  • Load cached SponsorBlock data without making network requests.
  • Automatically skip segments according to the user's existing category preferences.
  • Preserve existing actions: Skip, Ask, Show and Off.
  • Keep seek-bar segment indicators working.
  • Preserve cached data after restarting the application.

Compatibility

The feature should ideally support:

  • Regular video downloads.
  • Manual downloads.
  • Automatic channel and playlist downloads.
  • Smart Offline downloads (#301).

Existing downloads

It would also be useful to provide an option to fetch or refresh SponsorBlock metadata for videos that were downloaded before this feature was introduced.

Important technical detail

SponsorBlock segments here mean timestamp ranges and category metadata, not separate video chunks. The original downloaded video should remain unchanged.

Expected result

I should be able to download a video while online, enable airplane mode, open the downloaded video and still have SponsorBlock automatically skip cached sponsor segments, intros, outros and other enabled categories.

If no SponsorBlock metadata was available when downloading, the video should simply play normally.

Thank you for developing MeeTube!

How would you use it?

No response

Anything else

No response

MAKAKAIglitch avatar Nov 27 '26 00:11 MAKAKAIglitch