Skip to content

fixes video is unavailable#191

Closed
Nansess wants to merge 3 commits intolavalink-devs:mainfrom
Nansess:fuck
Closed

fixes video is unavailable#191
Nansess wants to merge 3 commits intolavalink-devs:mainfrom
Nansess:fuck

Conversation

@Nansess
Copy link
Copy Markdown
Contributor

@Nansess Nansess commented Dec 11, 2025

this pr is ass but gives the basic idea to the cause and how to solve idk if this is the best way to get encryptedHostFlags but its fast and seems fine whatever, code below is ass

pr made within github web so its garbage since i basically just had to use the web based editor and its ass checks

code idea worked within my codebase but its slight diff from the regular youtube source so i wrote this without ever building so no idea if this plug and play will even build

@lavalink-devs lavalink-devs deleted a comment from Currypan1229 Dec 12, 2025
@SylveonDeko
Copy link
Copy Markdown
Contributor

Looks like it builds, just need to add the missing imports:

  • org.apache.http.HttpResponse
  • org.apache.http.impl.client.CloseableHttpClient
  • org.apache.http.impl.client.HttpClients
  • java.util.regex.Pattern
  • java.util.regex.Matcher

SylveonDeko added a commit to SylveonDeko/youtube-source that referenced this pull request Jan 26, 2026
…edHostFlags support

- Skip embed workaround (clientScreen: EMBED + embedUrl) for OAuth-supporting clients
  to avoid PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED errors. OAuth authentication
  is sufficient without pretending to be an embedded player.

- For embedded clients, fetch encryptedHostFlags from the YouTube embed page and include
  it in the player request payload to avoid playback restrictions.

- Add withEncryptedHostFlags() method to ClientConfig for setting the encryptedHostFlags
  in the playbackContext.contentPlaybackContext.

Incorporates encryptedHostFlags approach from PR lavalink-devs#191 by @Nansess.
devoxin pushed a commit that referenced this pull request Jan 26, 2026
…edHostFlags support (#195)

- Skip embed workaround (clientScreen: EMBED + embedUrl) for OAuth-supporting clients
  to avoid PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED errors. OAuth authentication
  is sufficient without pretending to be an embedded player.

- For embedded clients, fetch encryptedHostFlags from the YouTube embed page and include
  it in the player request payload to avoid playback restrictions.

- Add withEncryptedHostFlags() method to ClientConfig for setting the encryptedHostFlags
  in the playbackContext.contentPlaybackContext.

Incorporates encryptedHostFlags approach from PR #191 by @Nansess.
@devoxin
Copy link
Copy Markdown
Member

devoxin commented Jan 26, 2026

Superseded by #195

@devoxin devoxin closed this Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants