Giter VIP home page Giter VIP logo

Comments (29)

krthr avatar krthr commented on May 14, 2024 3

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.

ricardo404 avatar ricardo404 commented on May 14, 2024 2

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.

blankdvth avatar blankdvth commented on May 14, 2024 2

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 %APPDATA%\Youtube Music (if you're on windows) in order to reinstall it without an error though. 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.

from youtube-music.

ricardo404 avatar ricardo404 commented on May 14, 2024 1

{
"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.

th-ch avatar th-ch commented on May 14, 2024 1

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.

th-ch avatar th-ch commented on May 14, 2024 1

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.

martinjoeledwards avatar martinjoeledwards commented on May 14, 2024 1

Seems to work for me! Thanks a bunch.

from youtube-music.

krthr avatar krthr commented on May 14, 2024 1

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.

triplecan avatar triplecan commented on May 14, 2024 1

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.

martinjoeledwards avatar martinjoeledwards commented on May 14, 2024

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.

th-ch avatar th-ch commented on May 14, 2024

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 to additionalBlockLists (e.g. https://easylist.to/easylist/easylist.txt)

from youtube-music.

martinjoeledwards avatar martinjoeledwards commented on May 14, 2024

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"
}
}
}
ytm_1

from youtube-music.

triplecan avatar triplecan commented on May 14, 2024

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)
image

And this is logged in (ad is playing)
image

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.

ricardo404 avatar ricardo404 commented on May 14, 2024

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.

th-ch avatar th-ch commented on May 14, 2024

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 like https://easylist.to/easylist/easylist.txt to additionalBlockLists 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.

ricardo404 avatar ricardo404 commented on May 14, 2024

{
"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.

th-ch avatar th-ch commented on May 14, 2024

@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.

th-ch avatar th-ch commented on May 14, 2024

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.

triplecan avatar triplecan commented on May 14, 2024

Just a quick update: Now it's even playing ads when not logged in:

image

I have added easylist to the config and disabled cache.

from youtube-music.

martinjoeledwards avatar martinjoeledwards commented on May 14, 2024

Same here.

from youtube-music.

th-ch avatar th-ch commented on May 14, 2024

@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.

C4illin avatar C4illin commented on May 14, 2024

Doesn't work here either. With ublock origin in the browser it works perfectly.

from youtube-music.

th-ch avatar th-ch commented on May 14, 2024

@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.

C4illin avatar C4illin commented on May 14, 2024

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.

th-ch avatar th-ch commented on May 14, 2024

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.

C4illin avatar C4illin commented on May 14, 2024

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.

triplecan avatar triplecan commented on May 14, 2024

"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.

benji009 avatar benji009 commented on May 14, 2024

i am getting ads today as well. I am on the latest version 1.7.3.

from youtube-music.

hackel avatar hackel commented on May 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.