mirror of
				https://github.com/SuperBFG7/ympd
				synced 2025-10-30 21:33:00 +00:00 
			
		
		
		
	Feat: Smart playlists (most played and best rated) #38
This commit is contained in:
		| @@ -24,10 +24,11 @@ | ||||
|           </a> | ||||
|           <div class="dropdown-menu bg-dark"> | ||||
|             <a class="dropdown-item text-light bg-dark" href="#" data-href='{"cmd": "showAddToPlaylist", "options": ["stream"]}'>Add Stream</a> | ||||
|             <a id="navDBupdate" class="dropdown-item text-light bg-dark" data-toggle="collapse" href="#menu-dbupdate"><span class="material-icons material-icons-left">keyboard_arrow_right</span>Database</a> | ||||
|             <a id="navDBupdate" class="dropdown-item text-light bg-dark" data-toggle="collapse" href="#menu-dbupdate"><span class="material-icons material-icons-left">keyboard_arrow_right</span>Update</a> | ||||
|               <div class="collapse" id="menu-dbupdate"> | ||||
|                 <a class="dropdown-item text-light bg-dark" href="#" data-href='{"cmd": "updateDB", "options": []}'>Update</a> | ||||
|                 <a class="dropdown-item text-light bg-dark" href="#" data-href='{"cmd": "rescanDB", "options": []}'>Rescan</a> | ||||
|                 <a class="dropdown-item text-light bg-dark" href="#" data-href='{"cmd": "updateDB", "options": []}'>Update Database</a> | ||||
|                 <a class="dropdown-item text-light bg-dark" href="#" data-href='{"cmd": "rescanDB", "options": []}'>Rescan Database</a> | ||||
|                 <a class="dropdown-item text-light bg-dark" href="#" data-href='{"cmd": "updateSmartPlaylists", "options": []}'>Update Smart Playlists</a> | ||||
|               </div> | ||||
|             <a class="dropdown-item text-light bg-dark" href="#" data-href='{"cmd": "openLocalPlayer", "options": []}'>Local Player</a> | ||||
|             <a class="dropdown-item text-light bg-dark" href="#" data-toggle="modal" data-target="#modalSettings">Settings</a> | ||||
|   | ||||
| @@ -1542,6 +1542,10 @@ function getAllPlaylists(obj) { | ||||
|     } | ||||
| } | ||||
|  | ||||
| function updateSmartPlaylists() { | ||||
|     sendAPI({"cmd": "MPD_API_SMARTPLS_UPDATE"}); | ||||
| } | ||||
|  | ||||
| function voteSong(vote) { | ||||
|     var uri = domCache.currentTrack.getAttribute('data-uri'); | ||||
|     if (uri == '') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 jcorporation
					jcorporation