onthespot icon indicating copy to clipboard operation
onthespot copied to clipboard

[BUG] Playlist not getting refreshed

Open trooper opened this issue 10 months ago • 4 comments

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

  • OS: Windows 10
  • OnTheSpot Version: 0.5

trooper avatar Mar 28 '24 22:03 trooper

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.

UntriexTv avatar Apr 14 '24 09:04 UntriexTv

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

trooper avatar Apr 21 '24 18:04 trooper

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

oskarparsim avatar May 15 '24 12:05 oskarparsim

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"

lunndal avatar Jun 30 '24 09:06 lunndal