casualsnek / onthespot

qt based music downloader written in python
GNU General Public License v2.0
913 stars 78 forks source link

[BUG] Playlist not getting refreshed #120

Open trooper opened 7 months ago

trooper commented 7 months ago

Describe the bug After adding more songs to a playlist in Spotify, and trying to download the same playlist again, Onthespot does not pick up the newly added songs

To Reproduce Steps to reproduce the behavior:

  1. Have a playlist in Spotify with a few songs
  2. Share the link, download the songs via Onthespot
  3. Add more songs to the same playlist in Spotify
  4. Share the link, download the songs via Onthespot
  5. Onthespot does not detect / download newly added songs

System Information (please complete the following information):

UntriexTv commented 6 months ago

You might need to remove cache. It has the playlist cashed. For me it was in homedir/.cache/casualOnTheSpot I deleted the whole folder but needed to log in again. EDIT: sorry now I noticed you use windows. I am not sure where it saves cache.

trooper commented 6 months ago

This worked, thanks!

The only downside is that, as you said, you need to log in again

On Windows the cache is at:

c:\Users\$USERNAME\.cache\casualOnTheSpot

I'll keep this as open as it's still an unresolved bug technically

oskarparsim commented 5 months ago

If you don't want to re-log every time you clear the cache, you can delete everything but the "sessions" folder. This way you stay logged in but it still clears the cache

lunndal commented 4 months ago

As a workaround I wrote a little script to optionally delete any cache desired and hide the log console, before starting onthespot.

If it can be useful to anyone, it can be found here: https://github.com/lunndal/onthespot-cachefix/

Syntax

All arguments are optional.

.\Start-OnTheSpot.ps1
    -DeleteCahce    What parts of the cache to delete before starting onthespot.
        All         Delete entire cache. Forcing all files to be downloaded.
        Playlists   Delete only cached playlists. Will only download new files in list.
        None        (Default) Delete nothing.
    -HideConsole    Hide the log console.
    -Executable     Path and filename to onthespot executable.
    -Cache          Path to the reqcache directory.

Example

.\Start-OnTheSpot.ps1 `
    -HideConsole `
    -DeleteCache Playlists `
    -Executable "C:\Program Files\onthespot\onthespot_win_ffm.exe"`
    -Cache "C:\Users\USERNAME\.cache\casualOnTheSpot\reqcache"