Esempio n. 1
0
 @Override
 protected void add(Item item, String playlist) {
   try {
     app.oMPDAsyncHelper.oMPD.addToPlaylist(
         playlist, app.oMPDAsyncHelper.oMPD.find("genre", item.getName()));
     Tools.notifyUser(irAdded, item);
   } catch (MPDServerException e) {
     e.printStackTrace();
   }
 }
Esempio n. 2
0
 @Override
 protected void add(Item item, boolean replace, boolean play) {
   try {
     app.oMPDAsyncHelper
         .oMPD
         .getPlaylist()
         .addAll(app.oMPDAsyncHelper.oMPD.find("genre", item.getName()));
     Tools.notifyUser(irAdded, item);
   } catch (MPDServerException e) {
     e.printStackTrace();
   }
 }