package com.parnswir.unmp.media;

import java.io.File;

import com.parnswir.unmp.core.C;
import com.parnswir.unmp.core.DatabaseUtils;

import android.content.ContentValues;

public class PlaylistHandler extends FileHandler {

	@Override
	public void saveToDatabase(File file) {
		ContentValues cv = new ContentValues();
		cv.put(C.COL_ID, DatabaseUtils.getNextIDForTable(C.TAB_PLAYLISTS, getDb()));
		cv.put(C.COL_FILE, file.getAbsolutePath());
		getDb().insert(C.TAB_PLAYLISTS, null, cv);
	}

	@Override
	public void updateDatabaseEntryFor(File file) {
		return;
	}

	@Override
	public void deleteFromDatabase(File file) {
		getDb().delete(C.TAB_PLAYLISTS, C.COL_FILE + " = " + file.getAbsolutePath(), null);
	}

}

@@ -672,12 +672,50 @@
 %22 = 
-%22 + 
+?%22, new String%5B%5D %7BDatabaseUtils.normalize(
 file
@@ -732,22 +732,18 @@
 tePath()
-, null
+)%7D
 );%0A%09%7D%0A%0A%7D

Fix playlist deletion