the-batfish / spotify-downloader

Download songs,playlists and even albums from spotify within a matter of seconds in a variety of different formats like m4a,mp3,wav and even flac with spotify downloader
GNU General Public License v3.0
298 stars 29 forks source link

latest release asks for an update #15

Closed Skywalker25 closed 2 years ago

Skywalker25 commented 2 years ago

the latest release file v1.70 when run asks to update exe to the latest v1.70. it seems the version number was bumped in github but not in the file it self. it still thinks it's v1.68.

lanadelplaya commented 2 years ago

I can confirm this above statement, even after downloading and adding to path, it still asks the user to redownload, also, the gui portion will crash upon ANY and ALL changes made via the gui as well! Previous version worked F L A W L E S S L Y.

lanadelplaya commented 2 years ago

Thank you @dev by the way, for this project. It is great to utilize!

lanadelplaya commented 2 years ago

also figured out what to do with this scenario to stop crashing/asking for the latest repo, open "downloader.py" in any text editor, remove all this sectioning:

lanadelplaya commented 2 years ago

def checkversion(): response = ( get( "https://api.github.com/repos/rickyrorton/spotify-downloader/releases/latest" ) ).json() data = response["tag_name"] if data.lower() != version.lower(): ch = messagebox.askokcancel( "UPDATE APP", f"Press OK to update your app to the latest version {data} from the github repository", ) if ch: from webbrowser import open_new_tab

        open_new_tab("https://github.com/rickyrorton/spotify-downloader/releases")
    elif __name__ != "__main__":
        exit()

t = Thread(target=checkversion()) t.start() t.join()

lanadelplaya commented 2 years ago

save the copy of the "downloader.py" back in the file, and open your cmd.exe/terminal.app and cd the spotify-downloader folder you saved it to.

also for the latest version, you can also just "git clone "download repo link insertion here" after deleting the previous spotify-downloader file from git

rickyrorton commented 2 years ago

the latest release file v1.70 when run asks to update exe to the latest v1.70. it seems the version number was bumped in github but not in the file it self. it still thinks it's v1.68.

@Skywalker25 yes i had forgot to update the version variable to v1.7 so the program thinks it was 1.68 even tho it was v1.7 I have fixed this issue now and modified the v1.7 release you can redownload the exe and it should be fixed, I apologize for the inconvenience caused.

rickyrorton commented 2 years ago

can confirm this above statement, even after downloading and adding to path, it still asks the user to redownload, also, the gui

gui.py was fine as is.The downloader.py file required a minor change.The change is: __version__ = "v1.7" from __version__ = "v1.68" on line 28

rickyrorton commented 2 years ago

def checkversion(): response = ( get( "https://api.github.com/repos/rickyrorton/spotify-downloader/releases/latest" ) ).json() data = response["tag_name"] if data.lower() != version.lower(): ch = messagebox.askokcancel( "UPDATE APP", f"Press OK to update your app to the latest version {data} from the github repository", ) if ch: from webbrowser import open_new_tab

        open_new_tab("https://github.com/rickyrorton/spotify-downloader/releases")
    elif __name__ != "__main__":
        exit()

t = Thread(target=checkversion()) t.start() t.join()

kindly do not modify version checker code