Skip to content

Able to load playlists, but playlists won't play; PyTube update #391

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
XalaTheShepard opened this issue Jan 22, 2025 · 12 comments
Open
Labels
bug Something isn't working

Comments

@XalaTheShepard
Copy link

Dear @KoljaWindeler ,

I was able to extract the cookie and set up the YtubeMusicPlayer.
All playlists are able to load, but since yesterday, when I select a playlist to play, the player skips through the songs of the playlist (without playing them) and turns eventually off.

I am running HA Core 2025.1.3 and version 20241229.01 of the Ytube Music integration.

Please find below the error messages:

Logger: custom_components.ytube_music_player.media_player
Source: custom_components/ytube_music_player/media_player.py:1342
integration: yTubeMediaPlayer (documentation, issues)
First occurred: January 21, 2025 at 4:50:18 PM (38 occurrences)
Last logged: 1:54:04 PM

  • Retry with: (3)
  • Retry with: (2)
  • Retry with: (1)

Logger: custom_components.ytube_music_player.media_player
Source: custom_components/ytube_music_player/media_player.py:255
integration: yTubeMediaPlayer (documentation, issues)
First occurred: January 21, 2025 at 4:08:44 PM (101 occurrences)
Last logged: 1:54:04 PM

  • self decoded url return 403 status code, attempt 60/60
    signature not found, decoding

Logger: custom_components.ytube_music_player.media_player
Source: custom_components/ytube_music_player/media_player.py:1586
integration: yTubeMediaPlayer (documentation, issues)
First occurred: January 21, 2025 at 4:50:18 PM (49 occurrences)
Last logged: 1:54:04 PM

  • Failed to get URL with YouTube methode

Logger: custom_components.ytube_music_player.media_player
Source: custom_components/ytube_music_player/media_player.py:1587
integration: yTubeMediaPlayer (documentation, issues)
First occurred: January 21, 2025 at 4:50:18 PM (49 occurrences)
Last logged: 1:54:04 PM

fFPAs3UExjc This request was detected as a bot. Use use_po_token=True to view. See more details at JuanBindez/pytubefix#209
7_K622yIbRM This request was detected as a bot. Use use_po_token=True to view. See more details at JuanBindez/pytubefix#209
IpDbJjV33Mo This request was detected as a bot. Use use_po_token=True to view. See more details at JuanBindez/pytubefix#209
Ztcs8j3pjxI This request was detected as a bot. Use use_po_token=True to view. See more details at JuanBindez/pytubefix#209
KagvExF-ijc This request was detected as a bot. Use use_po_token=True to view. See more details at JuanBindez/pytubefix#209

Most likely this issue has to be caused by the latest PyTube update.

Could you please have a look at this issue?

Many thanks.

Kind regards,

Robin

@XalaTheShepard XalaTheShepard added the bug Something isn't working label Jan 22, 2025
@XalaTheShepard XalaTheShepard changed the title Able to load playlists, but playlists won't play Able to load playlists, but playlists won't play; PyTube update Jan 22, 2025
@SirEndii
Copy link

I have the same issue here sadly

@SirEdvin
Copy link

Same issue here too.

@tosimerpreet
Copy link

I am having the same issue

@yuickey
Copy link

yuickey commented Jan 23, 2025

Same issue here too.

@kuteo-git
Copy link

kuteo-git commented Jan 23, 2025

  • We have the fix from @felipeucelli here. Thanks a lot 🙏
  • Please update the manifest.json in the /custom_components/ytube_music_player/manifest.json
  • After that, restart your HA
{
  "domain": "ytube_music_player",
  "name": "YouTube Music Player",
  "codeowners": [
    "@KoljaWindeler",
    "@mang1985"
  ],
  "config_flow": true,
  "dependencies": [
    "persistent_notification"
  ],
  "documentation": "https://github.com/KoljaWindeler/ytube_music_player",
  "iot_class": "cloud_polling",
  "issue_tracker": "https://github.com/KoljaWindeler/ytube_music_player/issues",
  "requirements": [
    "ytmusicapi==1.9.1",
    "git+https://github.com/felipeucelli/pytubefix.git@botGuard#egg=pytubefix",
    "integrationhelper==0.2.2"
  ],
  "version": "20241229.01"
}

Other:

  • Same issue here from pytubefix

@Pharylon
Copy link

I'm getting Invalid requirement 'git+https://github.com/felipeucelli/pytubefix.git@botGuard#egg=pytubefix

@XalaTheShepard
Copy link
Author

Works like a charm for me. Thank you very much :)

@gnlgrim
Copy link

gnlgrim commented Jan 23, 2025

I hope the repo is going to be updated so i can just redownload it please

@SjorsMaster
Copy link

also having this issue, when playing it'll report as playing in HA, but my soundbar doesn't play any audio, when outputting to my tv, it gives an alert on the screen that it is unable to start live playback?

@dimas-renanda
Copy link

This fix music cannot play and suddenly media player off. thankyou so much !

  • We have the fix from @felipeucelli here. Thanks a lot 🙏
  • Please update the manifest.json in the /custom_components/ytube_music_player/manifest.json
  • After that, restart your HA
{
  "domain": "ytube_music_player",
  "name": "YouTube Music Player",
  "codeowners": [
    "@KoljaWindeler",
    "@mang1985"
  ],
  "config_flow": true,
  "dependencies": [
    "persistent_notification"
  ],
  "documentation": "https://github.com/KoljaWindeler/ytube_music_player",
  "iot_class": "cloud_polling",
  "issue_tracker": "https://github.com/KoljaWindeler/ytube_music_player/issues",
  "requirements": [
    "ytmusicapi==1.9.1",
    "git+https://github.com/felipeucelli/pytubefix.git@botGuard#egg=pytubefix",
    "integrationhelper==0.2.2"
  ],
  "version": "20241229.01"
}

Other:

  • Same issue here from pytubefix

@Pharylon
Copy link

Pharylon commented Feb 2, 2025

I was getting Invalid requirement 'git+https://github.com/felipeucelli/pytubefix.git@botGuard#egg=pytubefix when I tried that fix, but adding the package name fixed it for me. Here's the working manifest.json I'm using:

{
  "domain": "ytube_music_player",
  "name": "YouTube Music Player",
  "codeowners": [
    "@KoljaWindeler",
    "@mang1985"
  ],
  "config_flow": true,
  "dependencies": [
    "persistent_notification"
  ],
  "documentation": "https://github.com/KoljaWindeler/ytube_music_player",
  "iot_class": "cloud_polling",
  "issue_tracker": "https://github.com/KoljaWindeler/ytube_music_player/issues",
  "requirements": [
    "ytmusicapi==1.9.1",
    "pytubefix@git+https://github.com/felipeucelli/pytubefix.git@botGuard#egg=pytubefix",
    "integrationhelper==0.2.2"
  ],
  "version": "20241229.01"
}

@dongore
Copy link

dongore commented Feb 4, 2025

A bump from v8.8.5 to v8.12.1 in the manifest should do the trick now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests