Comments (29)
I'm experiencing this issue too. But I'm logged in. I added "https://easylist.to/easylist/easylist.txt"
to additionalBlockLists
and it didn't work.
App version: 1.7.2
from youtube-music.
It is now possible to add the easy lists without presenting the Javascript problem. Meanwhile, boring ads continue to circumvent the list.
from youtube-music.
Still getting ads, currently on version 1.7.2., adblocker is on, I'm signed into my google account. Tried it with both easylist in and not in additional blocklists.
EDIT: Reverting to version 1.6.3 is a temporary fix that seems to have worked for me. You'll have to uninstall the application and remove the entry in Most likely something to do with the adblocker or adblocker list in general, doesn't work regardless of the reason you use however add frequencies seem to be less with an older version.%APPDATA%\Youtube Music
(if you're on windows) in order to reinstall it without an error though.
from youtube-music.
{
"window-size": {
"width": 1100,
"height": 550
},
"url": "https://music.youtube.com/watch?v=Wz3PD8c4eSo&list=OLAK5uy_mhbIHrfp5Tw3f-qfaH4d-zfsXAnulfqTE",
"options": {
"tray": false,
"appVisible": true,
"autoUpdates": true,
"hideMenu": false,
"startAtLogin": false,
"disableHardwareAcceleration": false,
"restartOnConfigChanges": false
},
"plugins": {
"navigation": {
"enabled": true
},
"shortcuts": {
"enabled": true
},
"adblocker": {
"enabled": true,
"cache": false,
"additionalBlockLists": [
"https://easylist.to/easylist/easylist.txt"
]
},
"downloader": {
"enabled": false,
"ffmpegArgs": []
}
},
"internal": {
"migrations": {
"version": "1.7.1"
}
},
"window-position": {
"x": 410,
"y": 250
}
}
I put it that way but the error persists. The error is of the type: ENOENT: There is no such file or directory. And it keeps showing directories that link to "adblock engine.bin" and app.asar
from youtube-music.
Just to give a heads-up, this issue is actively being tracked and I am now able to reproduce, will work on it!
from youtube-music.
Hey everyone, v1.7.4 is in pre-release and should fix ad blocking! It seems to work fine for me, free free to give it a try and update this issue accordingly! If you changed adblock settings, you can revert to the default:
"adblocker": {
"enabled": true,
"cache": true,
"disableDefaultLists": false,
"additionalBlockLists": []
},
from youtube-music.
Seems to work for me! Thanks a bunch.
from youtube-music.
Hey everyone, v1.7.4 is in pre-release and should fix ad blocking! It seems to work fine for me, free free to give it a try and update this issue accordingly! If you changed adblock settings, you can revert to the default:
"adblocker": { "enabled": true, "cache": true, "disableDefaultLists": false, "additionalBlockLists": [] },
It's working now! Thank you!
from youtube-music.
Hey everyone, v1.7.4 is in pre-release and should fix ad blocking! It seems to work fine for me, free free to give it a try and update this issue accordingly! If you changed adblock settings, you can revert to the default:
"adblocker": { "enabled": true, "cache": true, "disableDefaultLists": false, "additionalBlockLists": [] },
Seems to work, Thanks!!
from youtube-music.
I'm having the same problem. The ad-blocker worked fine until this morning. It does work when I'm not logged in though.
from youtube-music.
Hey @triplecan & @martinjoeledwards, thanks for the issue! It might be the same issue as #55 - from the screenshot, config looks ok - out of curiosity, what OS are you using? I don't have the issue (logged in or not) on MacOS so it could be linked to the OS and/or the country you are in.
One idea could be that the default filters are not enough - I will try to reproduce on my end, if you want to experiment on your side, you can:
- toggle dev tools in options to see blocked requests and identify the domains the ads come from
- add other filter lists in the adblocker config by setting
cache
to false and adding adblocking lists toadditionalBlockLists
(e.g. https://easylist.to/easylist/easylist.txt)
from youtube-music.
I'm using Windows 10. USA.
Here's a screenshot of the dev tools log, in case that's helpful. Also the text in my options right now.
{
"window-size": {
"width": 1432,
"height": 927
},
"url": "https://music.youtube.com/watch?v=eqV8vxI0u-Q&list=OLAK5uy_n6jG9pX-JJy8T3tPyA4ph7ZWMj2CGEYeg",
"plugins": {
"adblocker": {
"enabled": true,
"cache": true,
"additionalBlockLists": []
},
"downloader": {
"enabled": true,
"ffmpegArgs": []
},
"shortcuts": {
"enabled": true
},
"navigation": {
"enabled": true
},
"auto-confirm-when-paused": {
"enabled": true
},
"hide-video-player": {
"enabled": true
},
"no-google-login": {
"enabled": false
}
},
"options": {
"tray": false,
"appVisible": true,
"autoUpdates": false,
"startAtLogin": false,
"restartOnConfigChanges": true
},
"window-position": {
"x": -8,
"y": -8
},
"window-maximized": true,
"internal": {
"migrations": {
"version": "1.7.1"
}
}
}
from youtube-music.
Hey @triplecan & @martinjoeledwards, thanks for the issue! It might be the same issue as #55 - from the screenshot, config looks ok - out of curiosity, what OS are you using? I don't have the issue (logged in or not) on MacOS so it could be linked to the OS and/or the country you are in.
So as I read the other thread, I think it is exactly the same issue as #55. Today I can't even reproduce the issue any more. No settings changed.
I will keep updating if something changes.
EDIT: So now there is again an ad playing before every song. I wanted to implement the blocklist as you suggested. But I'm getting a JSON Error when starting the application when I try to set the cache to false. I use Windows 10 Pro 2004, Country is Austria.
I think this has something to do with how Google handles the account. Because it worked fine today until I watched a YouTube Video in my main Browser with an ad. The the ads started appearing again in the YouTube Music application. Could be a coincidence. But still. I'm logged in to the same Google account in my browser.
So this is an image of the Debugger when I play a video when not logged in (no ad)
And this is logged in (ad is playing)
I noticed that there are all of the sudden 2 entry's with "googlevideo.com" when logged in. But I don't know if this helps or not, If you need further information. I will do what I can
from youtube-music.
I am also having problems with Adblocker in my Brazil region. Early on Saturday morning, when I opened the app, an ad started popping up for every song played. I tried to follow the steps of adding Blocklists, but I had the same problem that the previous friend presented. When placing the cache in "false" the application opened but with a javascript error related to the modified JSON.
from youtube-music.
From this AdBlock page and this reddit thread, it seems it's a known issue that appears randomly (still unable to reproduce on my end even on Windows) - you can try the following:
- being logged out seems to be enough if that's ok for you
- otherwise, as mentioned in #83 (comment) you can try to set
cache
to false and add some known lists likehttps://easylist.to/easylist/easylist.txt
toadditionalBlockLists
to see if it helps (not sure it will, though)
the application opened but with a javascript error
@ricardo404 thanks for the feedback! can you share your edited JSON config? If it's a simple JSON error, it should be fixable!
from youtube-music.
{
"window-size": {
"width": 1100,
"height": 550
},
"url": "https://music.youtube.com/watch?v=r5-qPZdT9pA&list=OLAK5uy_mhbIHrfp5Tw3f-qfaH4d-zfsXAnulfqTE",
"options": {
"tray": false,
"appVisible": true,
"autoUpdates": true,
"hideMenu": false,
"startAtLogin": false,
"disableHardwareAcceleration": false,
"restartOnConfigChanges": false
},
"plugins": {
"navigation": {
"enabled": true
},
"shortcuts": {
"enabled": true
},
"adblocker": {
"enabled": true,
"cache": false,
"additionalBlockLists": "https://easylist.to/easylist/easylist.txt"
},
"downloader": {
"enabled": false,
"ffmpegArgs": []
}
},
"internal": {
"migrations": {
"version": "1.7.1"
}
},
"window-position": {
"x": 410,
"y": 250
}
}
from youtube-music.
@ricardo404 Blocklist must be an array so config should look like:
…
"adblocker": {
"enabled": true,
"cache": false,
"additionalBlockLists": [
"https://easylist.to/easylist/easylist.txt"
]
},
…
With that, it should work fine! 🤞
from youtube-music.
Definitely a bug, good catch, thanks for the report! Pre-release 1.7.2 should fix it, allowing to test additional blocklists like "https://easylist.to/easylist/easyprivacy.txt", feel free to give it a try!
from youtube-music.
Just a quick update: Now it's even playing ads when not logged in:
I have added easylist to the config and disabled cache.
from youtube-music.
Same here.
from youtube-music.
@triplecan I played a bit with adblock settings, it seems adding easylist to additional blocklists does not play well with default settings and might be responsible for the ads when being logged out - you can try removing easylist from settings to see if it improves things for you!
@martinjoeledwards thanks for the feedback! It's unfortunate that you are affected too - this issue is being slowed down by the inability to reproduce on my side but I will keep this issue open to track progress on this. Feel free to post updates if you think it can help!
from youtube-music.
Doesn't work here either. With ublock origin in the browser it works perfectly.
from youtube-music.
@C4illin thanks for the feedback! Could you share your ublock list of filters? They should be supported by the integrated adblock so we might have a potential solution here! (and if the default list does not play well with it, I will add an option to disable it and only use user-provided blocklists)
(You can export ublock settings as JSON, the list of filters will be in externalLists
)
from youtube-music.
These seems to be the ones that have any impact:
"https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_2_English/filter.txt",
"https://github.com/uBlockOrigin/uAssets/blob/master/filters/filters.txt",
Could have an impact:
"https://easylist.to/easylist/easylist.txt",
"https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_3_Spyware/filter.txt",
"https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/experimental.txt",
"https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters-2020.txt"
But it still doesn't work.
from youtube-music.
It should be supported - Pre-release 1.7.3 allows to disable default lists so you can try these settings:
"adblocker": {
"enabled": true,
"cache": false,
"disableDefaultLists": true,
"additionalBlockLists": [
"https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_2_English/filter.txt",
"https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters.txt"
]
},
And other combinations with your different blocklists (use raw.githubusercontent.com
URLs instead of github.com
ones) to check if it works!
from youtube-music.
Thanks, It seems to work now!
This worked the most consistently, but it was quite a pain to test so it could definitely be improved.
"adblocker": {
"enabled": true,
"cache": false,
"disableDefaultLists": true,
"additionalBlockLists": [
"https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_2_English/filter.txt",
"https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters.txt",
"https://easylist.to/easylist/easylist.txt"
]
},
EDIT:
After a few more tests it seems that it still doesn't work 100%, but it seems better than before.
from youtube-music.
"adblocker": { "enabled": true, "cache": false, "disableDefaultLists": true, "additionalBlockLists": [ "https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_2_English/filter.txt", "https://raw.githubusercontent.com/uBlockOrigin/uAssets/blob/master/filters/filters.txt", "https://easylist.to/easylist/easylist.txt", "https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_3_Spyware/filter.txt", "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/experimental.txt", "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters-2020.txt" ] },
I tried, but not a single ad gets blocked for me.
from youtube-music.
i am getting ads today as well. I am on the latest version 1.7.3.
from youtube-music.
No luck for me either. youtube.com/get_video_info
(for a valid song video_id) returns all of the ad video information. Possibly this request could be intercepted and the ad information stripped from it. I don't think a standard blocklist will be able to accomplish this.
After logging out and clearing site data (from devtools Application tab), I'm not getting any ads.
from youtube-music.
Related Issues (20)
- [Bug]: Audio Randomly Cuts Out HOT 1
- [Bug]: Youtube music having 50% cpu usage, when it used to be 4-5% HOT 5
- [Bug]: MPRIS loop controls no longer used
- [Bug]: Unable to run the project HOT 1
- [Feature Request]: Reinitialize tray icon on scale change HOT 1
- [Feature Request]: Interface elements disappear when scaled HOT 5
- [Bug]: Ads not being blocked while using the " In-Player " adblocker
- [Feature Request]: Chrome cast? HOT 2
- [Bug]: "Disable Autoplay" plugin doesn't work when "Applies only on startup" is enabled
- [Bug]: "Starting papage" is always "Home" no matter what the option is actually set to
- [Bug]: `Music Together` Unable to play any playlists
- [Bug]: `Music Together` Listener not being able to view current playing song
- [Bug]: `Music Together` Listeners still stays when Host closes app without closing session and creates a new session
- [Bug]: `Music Together` Playing selected song resumes another random song while in session bug
- [Suggestion]: `Music Together` feat. Dynamic Sessions
- [Bug]: Windows Defender claims YouTube Music 3.0.2 is malware? HOT 1
- [DOCS] Complete Features section
- Full downloader for Windows HOT 1
- [Bug]: Scrollbar appears in custom titlebar
- Ads playing all of a sudden HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from youtube-music.