Skip to content

Fix LIVE_STREAM_OFFLINE showing generic 'Content unavailable' error#13541

Open
Manthann-05 wants to merge 1 commit into
TeamNewPipe:devfrom
Manthann-05:fix/live-stream-offline-error
Open

Fix LIVE_STREAM_OFFLINE showing generic 'Content unavailable' error#13541
Manthann-05 wants to merge 1 commit into
TeamNewPipe:devfrom
Manthann-05:fix/live-stream-offline-error

Conversation

@Manthann-05
Copy link
Copy Markdown

What this PR does

Fixes the bug where opening a scheduled YouTube live stream that hasn't
started yet shows a generic "Content unavailable" error.

Changes

  • ErrorInfo.kt: Detect LIVE_STREAM_OFFLINE in ContentNotAvailableException
    and extract YouTube's start-time hint for a meaningful error message
  • VideoDetailFragment.java: Auto-retry after 60s when stream is not started yet;
    properly cancel the timer on navigation/manual reload
  • strings.xml: Two new strings for the live-stream-offline state
  • Bonus fix: ConcurrentModificationException risk in Bandcamp error filtering

Testing

Tested by opening a scheduled YouTube live stream URL before it goes live.
Before: "Content unavailable" (monkey screen)
After: "This live stream starts in: This live event will begin in X minutes."
with Retry button and auto-reload after 60 seconds.

Closes #13539

- Detect LIVE_STREAM_OFFLINE in ContentNotAvailableException and show
  a user-friendly message with YouTube's start-time hint if available
- Mark LIVE_STREAM_OFFLINE errors as non-reportable (expected behavior)
- Auto-retry loading after 60s so user doesn't have to tap Retry
- Cancel pending auto-retry on navigation or manual reload
- Fix ConcurrentModificationException in Bandcamp error filtering

Fixes TeamNewPipe#13539
@github-actions github-actions Bot added the size/medium PRs with less than 250 changed lines label May 24, 2026
@ShareASmile ShareASmile added the template ignored The user didn't follow the template/instructions (or removed them) label May 24, 2026
@ShareASmile
Copy link
Copy Markdown
Collaborator

ShareASmile commented May 24, 2026

Please restore the default PR template and properly fill it out and follow our contribution guidelines!

Issue you linked to the PR has been closed as duplicate & build is failing due to checkstyle issue, can you check both!

@ShareASmile ShareASmile added feature request Issue is related to a feature in the app YouTube Service, https://www.youtube.com/ labels May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature request Issue is related to a feature in the app size/medium PRs with less than 250 changed lines template ignored The user didn't follow the template/instructions (or removed them) YouTube Service, https://www.youtube.com/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

YouTube live stream won't open, reads "Content unavailable"

2 participants