[Bug]: Can't play content added from RSS feed such as podcast from soundcloud CORS issue? #1620
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#1620
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.2.2
Are you using the portable version of the YouTube Music Application?
What operating system are you using?
Other Linux
Operating System Version
Garuda Linux 6.7.0-AMD-znver2 (64-bit), KDE Plasma 5.27.10
What arch are you using?
x64
Last Known Working YouTube Music (Application) version
No response
Reproduction steps
To add an RSS source:
Expected Behavior
External track plays from YT music.
Actual Behavior
External resource shows a 403 error, followed by an info message stating that the audio outputs all 0's due to CORS access restrictions. (This doesn't happen in Chrome or Firefox), and I assume is due to a client side CORS restriction.
Enabled plugins
Additional Information
No response
I can reproduce this issue, but I can't figure out why - maybe it's a bug in Electron?
Would be great if we could listen to podcasts in the app now that Google Podcasts is folding into YTM. On macOS in this app, podcasts visually appear to be playing (the time/duration advances each second, play icon switches to pause) but no audio is heard.
Issue still present on v3.3.6 portable for me. Youtube made me move my podcast today since they are shutting down but Youtube Music app doesn't work to play them. No issue on music.youtube website so doesn't seem to be on their side.
same Issue on v3.3.12
This is probably an issue with the CSP headers being received from YouTube, the app needs a way to remove these or disable CSP entirely.
https://github.com/electron/electron/issues/19775#issuecomment-1001643667
Any updates on this Issue?
Just moved my Spotify library over to YT Music and found out about this app
Sadly also running into this issue with 3.6.0 :(
Edit:
Just added this line into the
index.ts
file and ran it from the console usingpnpm dev
and it started playing the podcast without any issueshttps://github.com/electron/electron/issues/19775#issuecomment-834649057
(specifically after this line to have it neatly organized with the
NODE_OPTIONS
setting)0fcbe38837/src/index.ts (L75)
I've also tried listening to other songs and so far I've not encountered any issues
fixed at
77bfe8e218
Thanks to @MulverineX and @Lordmau5!
The protocol approach seems like the more elegant way - very happy to hear that it was an easy fix
Didn't mention it before but thank you and the team for making a nice, extensible wrapper around the YT Music app! 😁
@Lordmau5 Still reproducible this issue after 3.6.2?
I am getting this error now when trying to play back a podcast added via RSS and while it looks like it's playing, there is no sound outputting
The podcast / RSS feed in question:
https://feeds.megaphone.fm/trashtaste
And yes, I just updated to 3.6.2 (was still on 3.6.1) - still happening on that unfortunately (or rather, happening again?)
In my synced-lyrics PR I had to fix CORS because the current fix was not working for me, maybe that also fixes this issue?
https://github.com/ArjixWasTaken/youtube-music/blob/synced-lyrics/src/index.ts#L901-L916
Tried with this code in the master branch, unfortunately still getting the same error and no audio
fixed by
533b96d1f6
Not sure why it was closed when I said it wasn't fixed.
It still doesn't play with 3.7.0 and throws this error in the console:
I can't reproduce this issue when testing with this link (https://feeds.soundcloud.com/playlists/soundcloud:playlists:432476748/sounds.rss)
Can you try with this one I linked further up?
https://feeds.megaphone.fm/trashtaste
Still not working in version 3.7.1.0. I am using portable and trying to listen to BBC podcast or any of the MSNBC ones. I don't see where I can find the link to share within the app.
Podcast added from within the app by "Add a podcast" then find the podcast I want will work fine.
My podcasts were added "from a RSS feed" automatically by Google when I asked them to move my podcasts from the old Podcast app to youtube Music. I tried to find some of them on youtube music without much success.
Right now the msnbc ones refuse to even try to play. But BBC do and show these 2 errors in console:
GET https://i1.ytimg.com/vi/QMGuBJJ0EQ0/mqdefault.jpg 404 (Not Found)
watch?v=Bc7er_kdCuE:1 MediaElementAudioSource outputs zeroes due to CORS access restrictions for https://dl.iono.fm/epi/prov_4/epi_1516150_medium.m4a?p=rss
Both link change each different stream but the errors are the same.
I also experience this bug referring to a CORS problem - will append the error and link URL for further solution of the bug. Maybe that helps:
Justo confirm this issue is still present on 3.10.0.0
Caused by this code..
26fa1f85b2/src/renderer.ts (L308-L311)
I have no idea how to fix it.