forked from pimusicbox/mopidy-musicbox-webclient
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use 'm3u' format for saving playlists. Invalidate the playlist cache …
…on refresh or external changes. Fixes pimusicbox#173. Fixes 177.
- Loading branch information
Showing
5 changed files
with
28 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -258,6 +258,18 @@ function initSocketevents() { | |
getPlaylists(); | ||
}); | ||
|
||
mopidy.on("event:playlistChanged", function(data) { | ||
$('#playlisttracksdiv').hide(); | ||
delete playlists[data["playlist"].uri]; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jcass77
Author
Owner
|
||
getPlaylists(); | ||
}); | ||
|
||
mopidy.on("event:playlistDeleted", function(data) { | ||
$('#playlisttracksdiv').hide(); | ||
delete playlists[data["uri"]]; | ||
getPlaylists(); | ||
}); | ||
|
||
mopidy.on("event:volumeChanged", function(data) { | ||
setVolume(data["volume"]); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
CACHE MANIFEST | ||
|
||
# 2016-02-18:v2 | ||
# 2016-02-28:v1 | ||
|
||
NETWORK: | ||
* | ||
|
won't that lint program want these to be more like
data.playlist.uri
?