mirror of
https://github.com/Rafiuth/Soggfy.git
synced 2026-04-25 23:25:58 +03:00
[GH-ISSUE #20] Offline mode support #18
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Soggfy#18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @YehudaEi on GitHub (Mar 2, 2022).
Original GitHub issue: https://github.com/Rafiuth/Soggfy/issues/20
No, this is not a duplication of #19 .
I wanted to ask if in case the songs already exist on the computer offline, is it possible to cancel the requests to Spotify's server (because then it blocks me after some time).
The information should be stored locally on the computer, and there is no need to make a new request to the server.
Thanks.
@YehudaEi commented on GitHub (Mar 2, 2022):
I now looked at the code and saw that only some of the information was saved.
I understand that this question is irrelevant (I myself edited the js so that he would not make a request, and I give up this information).
@WhEntrecote commented on GitHub (Mar 3, 2022):
If you solved it, can you share?
@YehudaEi commented on GitHub (Mar 7, 2022):
I edited the "getTrackMetaProps" function (attached below code).
In addition, I wrote a script in AutoIt3 that reopen Spotify when she crashes (for me it would happen when I was there at high speed).
@owovin commented on GitHub (Apr 26, 2022):
i find that the snippet you have written above does not properly work, in the version provided in the readme (version 1.1.84.716), the written code ends up erroring out:
[DBG] Requesting metadata for playback 395498fa6bcefdf3e58b8be7b51971e2... [INF] Discarding playback 395498fa6bcefdf3e58b8be7b51971e2: Cannot set properties of null (setting 'innerText')commenting out the innertext works fine, but then it still depends on making fetch to the spotify servers to obtain metadata, of which is undesirable since i want to run this without any connection to the spotify servers
if you have any clue on how to fix this, that would be nice, thank you!
@Rafiuth commented on GitHub (Apr 27, 2022):
I think commenting out
document.getElementById("console").innerText = testArt.toString();will work just fine,let extraMeta = await _resources__WEBPACK_IMPORTED_MODULE_2__["default"].getTrackMetadataWG(track.uri);is the line making the extra request, which is already commented out in the snippet.(that request will almost always be cached, since Spotify always makes it whenever a song starts playing for some reason).