[Bug]: Playback stops at 49 seconds #3336
Labels
No labels
awaiting-reply
breaking changes
bug
cannot-reproduce
dependencies
documentation
duplicate
electron-issue
enhancement
fix-available
good first issue
help wanted
invalid
javascript
need more information
need rebase
official-youtube-music-issue
plugin request
question
release
security
stale
Status: blocked
typo
wontfix
ytmd-issue
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: YTMD/youtube-music#3336
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Preflight Checklist
YouTube Music (Application) Version
3.9.0
Checklists
What operating system are you using?
Other Linux
Operating System Version
Fedora 42
What CPU architecture are you using?
x64
Last Known Working YouTube Music (Application) version
No response
Reproduction steps
Expected Behavior
to play full song
Actual Behavior
stops at 49 seconds
Enabled plugins
default
Additional Information
tested with latest appimage
Could you disable the adblocker plugin and try again?
same thing, i did notice while testing (this is with and without adblock) that while most of the time its stuck at 49 seconds, sometimes it'll load up to 1minute, but overall it hasn't loaded a full song yet. the ads load fine without adblocker.
Not sure if it matters or not but I havent been logged in.
Update: just testing using an alternate network, seems to work there. Though tested the official site on my home network and it works fine so not sure what might be the difference here.
I first thought it was my DNS server doing this but I changed the AdBlock plugin from "In Player" to "with blocklist" and now it plays the full songs. Haven't encountered any ads yet but this seems to have fixed the problem.
Why would a DNS server by at fault in the first place?
I run AdGuard Home on my network, it's not uncommon for large blocklists like the one I use to block a whole ton of services, including YouTube videos and other stuff
Do you understand how the DNS protocol works?
Do you know how DNS filtering works? AdGuard does that. It can filter or entirely block DNS queries. If you've ever used something like AdGuard Home or PiHole you'd know that it can break a ton of services by blocking their DNS queries. You don't have to talk down on me for this, it's out of topic anyways.
I have written a DNS server from scratch, and I have been an Adguard user for many years.
If a DNS is going to block a domain, it will do so at the start.
It can't block a domain after it has loaded.
That's just how DNS works, your browser says "hey, what is the IPv4 address for music.youtube.com" and the DNS replies with "music.youtube.com is a CNAME for youtube-ui.l.google.com, and an IPv4 for youtube-ui.l.google.com is 172.217.169.174".
After that, your browser directly communicates with the IP given, it can't communicate with the domain name.
Edit: One way for this to not work, is when the browser doesn't remember what IP a domain resolves to.
If your browser makes the DNS request every time you make a request to a domain, then it could make sense for Adguard to have the ability of blocking a domain even after it has already loaded.
But why would Adguard consistently block the domain not the first time you load it, but after 49 seconds of playing a song?
I don't know, hence why I tried disabling it to check if it does work afterwards. It didn't appear to fix the problem so I tried different troubleshooting steps.
And to add to my original comment where switching the adblock from "in player" to "with blocklists" fixed the issue, it didn't, worked for some time and then stopped again, it is incredibly inconsistent