mrpond / BlockTheSpot

Video, audio & banner adblock/skip for Spotify
MIT License
10.6k stars 700 forks source link

Ads are popping up and it doesn't seem to be working for me. #461

Closed Aspredo closed 1 year ago

Aspredo commented 1 year ago

Ever since like 2 days ago, I noticed I started getting ads even though I had used the program. Not sure if this is an issue on my side or the program needs to be updated.

ikki4 commented 1 year ago

Same here. Spotify just updated automatically, without my permission, and it doesn't look like it's patched anymore. Banners everywhere.

Lives through Spotify updates. No need to patch Spotify after every update anymore.

That no longer seems to be the case.

Current Spotify version: Spotify for desktop-about.platform-win-x86-64 1.2.14.1149.ga3ae422d


edit: I just ran the Powershell script again, and it seems that the latest patch is working. It was removed when Spotify updated, but it can be applied again.

LercheKa commented 1 year ago

Second this, updating through the .bat doesn't work.

wwweixD commented 1 year ago

Second this, updating through the .bat doesn't work.

i uninstalled spotify, then ran the .bat and its working now (no ads)

zedd-0 commented 1 year ago

i replaced the "dpapi.dll" again, and it seems to work.

f*k do not work :(

ikki4 commented 1 year ago

@LercheKa @wwweixD @zedd-0 @Aspredo have you tried the Powershell command? It fixed for me.

zedd-0 commented 1 year ago

i do not like scrips, that i do not understand, or is not really necessary. i'm still reading and i will do it by hand. It would be easier if someone told me what the script does exactly, or listing the essential commands. there no comments in it. :(

edit: i think, it only do extract the zip in the program directory for "patching" there is nothing special about it. or am I wrong?

edit2: i reinstalled/overwrite spotify + patch maybe there is a difference between the live-uptater version and the offline-installer. maybe a lost file that confused the pacher. i do not know, but it seems to work now. UI is cleaner than before now.

galactic-monkey commented 1 year ago

Also experienced this issue today, but reinstalling spotify and redownloading to make sure I'm using the latest patch seems to have fixed it for now.

Chromos-Def commented 1 year ago

Is there any reasoning behind as to why the PowerShell Script would work but manual installation does not?

zedd-0 commented 1 year ago

the installation by hand works, or at least it should work. only when the app updated itself, it didn't work.

extracting 'dpapi.dll' again did not help.

my suspicion is, that there is a file/setting somewhere that blocked 'dpapi.dll', or there might be differences between the update version and the offline installer.

I didn't delete Spotify but installed it over with the offline installer. I do not know, if this process deleted or modified cache/settings or other generated files. I do also not know, if the update and offline versions are truly different.

I can only describe the experienced behavior. here's what I did:

tested with: Spotify v1.2.14.1149 2023-06-22 chrome_elf.zip v2023.5.20.80 2023-05-20

I hope this helps. mrpond could update his 'README.md' a litte bit to include the part with Spotify.

[edit:] I modified the 'config.ini' file and set the 'Log' parameter to 1. when I checked the 'blockthespot_log.txt' file, it seemed that the patching did not work. In the end, it appears to be the same old patch applied to a new Spotify version, making it difficult to determine what exactly happened.

classy09az commented 1 year ago

Ever since like 2 days ago, I noticed I started getting ads even though I had used the program. Not sure if this is an issue on my side or the program needs to be updated.

I had this same problem but found a fix.

  1. Download the latest version of block the spot.
  2. Then on your windows device, in the search bar search for "add or remove programs." Look for spotify in there and uninstall it fully.
  3. Run block the spot.

The block the spot will automatically download a version of spotify that it works with so you just need to log in after and you're all set. Hope this helps <3

Joashh404 commented 1 year ago

Reinstalling Spotify then running the .bat file seems to have sorted it out for me.

TooYoungTooSimp commented 1 year ago

The key point is that the newest version of spotify loads system dpapi.dll instead of this patcher. It can be investigated from procexp64's DLL view. I installed an older version of spotify and blocked the update to temporary solve this problem.

ikki4 commented 1 year ago

@TooYoungTooSimp how did you stop Spotify from auto updating?

TooYoungTooSimp commented 1 year ago

@TooYoungTooSimp how did you stop Spotify from auto updating?

You can use any hex editor to open Spotify.exe and find a string wg://desktop-update

change its following to a nonexistent path, for example, change v2 to v5 or anything have the same length

image

verbes4 commented 1 year ago

i downloaded SpotifyFullSetup.exe and ran it with /extract. I then hex-edited the exe as TooYoungTooSimp said, and manually installed block the spot. then i ran spotify and now its working perfectly

PwccaCode commented 1 year ago

Anyone has a link for older version of spotify installer?

ElysRealm commented 1 year ago

Anyone has a link for older version of spotify installer? @PwccaCode

I found an older version of the installer from UpToDown (Spotify 1.1.98.691), and then did a clean install of BlackTheSpot and it seems to be working for me for now. Also here is a report from VirusTotal for that Spotify exe for the paranoid like me lol.

zedd-0 commented 1 year ago

i have installed "Spotify - 2023-07-07 - v1.2.15.828" (offline installer), and it works. why? i do not know! it makes no sense.

every over the air update (the last 2 versions cause problems) will not work with "BlockTheSpot - 2023-05-20 - v2023.5.20.80".

i just overwriting the files with the offline installer, and it works again...

it is strange why Spotify is act so differently. i forgot to proof, if there are differences between OTA & offline files.


[edit:]

i could get both versions of "Spotify v1.2.15.828.g79f41970"

and i uploaded the files to: https://anonfiles.com/G9YaE910zb

but i do not know, this could help. because everything is different in all binary files. picture --> https://imgur.com/a/CEdW7ns

but you can try to find something... ;)


[edit2:]

Spotify changed my 32bit installation (offline installer) to a 64bit installation (ota-update). so the "dpapi.dll" cannot work, because it is a 32bit version.

zedd-0 commented 1 year ago

update: found the problem.

if you install spotify with the offline installer, you get the 32bit version of spotify.

if spotify update itself, your 32bit installation get replaced with 64bit files. but "dpapi.dll" is still 32bit.

@mrpond can you make a 64bit version of "dpapi.dll" ?

[edit:] i found the offline installer of the 64-bit desktop version: https://download.scdn.co/SpotifyFullSetupX64.exe

RootedByKali commented 1 year ago

run this in powershell in admin:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-Expression "& { $(Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/mrpond/BlockTheSpot/master/install.ps1') } -UninstallSpotifyStoreEdition -UpdateSpotify"

zedd-0 commented 1 year ago

did you read the full thread?

the script was already offered as a solution. this does not solve the problem, that spotify changes the program from 32bit to 64bit. and I assume that the majority of users have a 64-bit operating system.

I must excuse myself.

RootedByKali commented 1 year ago

did you read the full thread?

the script was already offered as a solution. this does not solve the problem, that spotify changes the program from 32bit to 64bit. and I assume that the majority of users have a 64-bit operating system.

I must excuse myself.

Worked for me so idrc tbh

mrpond commented 1 year ago

update: found the problem.

if you install spotify with the offline installer, you get the 32bit version of spotify.

if spotify update itself, your 32bit installation get replaced with 64bit files. but "dpapi.dll" is still 32bit.

@mrpond can you make a 64bit version of "dpapi.dll" ?

[edit:] i found the offline installer of the 64-bit desktop version: https://download.scdn.co/SpotifyFullSetupX64.exe

Hi. I had been tinkering with it, since I can't reproduce spotify ads. Seem 64bit Spotify version is the cause. thank for pointing this out.

disruptedtech commented 1 year ago

I tried following these steps, installing that spotify and running blockthespot again and the issue is still there :/

zedd-0 commented 1 year ago

witch steps? ;)

did you install this: https://download.scdn.co/SpotifyFullSetup.exe ? (32bit) did you load this: https://github.com/mrpond/BlockTheSpot/releases/download/2023.5.20.80/chrome_elf.zip ? (last version) did you extract the zip to: "%appdata%\Spotify" or "C:\Users\YourProfileName\AppData\Roaming\Spotify" ?

with MediaInfo you can check if your exe-file (%appdata%\Spotify\Spotify.exe) is 32bit. https://imgur.com/a/aYNKAUl

jack11e commented 1 year ago

i just used the powershell script without uninstalling anything and it worked

OIKYO commented 1 year ago

Ever since like 2 days ago, I noticed I started getting ads even though I had used the program. Not sure if this is an issue on my side or the program needs to be updated.

Yeahh honestly idk whats wrong orwhat should i do bruh, guys please fix this!!!

disruptedtech commented 1 year ago

so u cant update spotify if u want ad blocker working? cause i updated today spotify and ad blocked stopped working

I didn't update mine it just automatically updates :/

zedd-0 commented 1 year ago

@all please wait till the update is coming.

in the meantime:

Aryan1Kalra commented 1 year ago

I tried installing with the script but still not working.

chandrachristian commented 1 year ago

I tried installing with the script, and other method but still not working.

Subroutine7901 commented 1 year ago

so u cant update spotify if u want ad blocker working? cause i updated today spotify and ad blocked stopped working

You can, but you have to reinstall BlockTheSpot and maybe Spotify.

I didn't update mine it just automatically updates :/

You have to edit the .exe to stop updates, according to @TooYoungTooSimp

You can use any hex editor to open Spotify.exe and find a string wg://desktop-update

change its following to a nonexistent path, for example, change v2 to v5 or anything have the same length

image

brewolf commented 1 year ago

just installed new dpapi.dll and all good so far, many thanks.

zedd-0 commented 1 year ago

works fine. live-updater works, too. i keep my eye open for bugs. :D

how did you find these files?

disruptedtech commented 1 year ago

for windows x64: dpapi.zip virustotal

source code: AdBlocker.zip

I am very new to all of this so I'm sorry for my ignorance, do I just open the dpapi file and then it's fixed? No more ads again?

Nuzair46 commented 1 year ago

for windows x64: dpapi.zip virustotal

source code: AdBlocker.zip

Can you explain what these files do? are they modified to support 64bit? If so, please consider making a PR.

ghost commented 1 year ago

I have modified the BlockTheSpot project, you can check it out here.

BlockTheSpot.zip

Nuzair46 commented 1 year ago

@ejaxh can you comment the issues this solves? And can you make a PR for this so we can release it, if not, let me know, I will make one. But your own PR is greatly appreciated. Thanks

Subroutine7901 commented 1 year ago

for windows x64: dpapi.zip virustotal source code: AdBlocker.zip

I am very new to all of this so I'm sorry for my ignorance, do I just open the dpapi file and then it's fixed? No more ads again?

You follow the manual instructions in the README.md, but using the new dpapi from this thread instead of the old one.

disruptedtech commented 1 year ago

I guess I'll just wait for mrpond to update it, going to use spotify on web version for a while since adblock works...

PwccaCode commented 1 year ago

I guess I'll just wait for mrpond to update it, going to use spotify on web version for a while since adblock works...

the x64 version is working fine.

Hussi98 commented 1 year ago

I guess I'll just wait for mrpond to update it, going to use spotify on web version for a while since adblock works...

the x64 version is working fine.

can you help me find this x64 version?

Subroutine7901 commented 1 year ago

can you help me find this x64 version?

for windows x64: dpapi.zip virustotal

source code: AdBlocker.zip

@Hussi98 Here.