void playlist_song_filename (int argc, char * * argv) { int pos = check_args_playlist_pos (argc, argv); char * filename = get_entry_filename (pos - 1); fauxdtool_report ("%s", filename); g_free (filename); }
void playqueue_remove(gint argc, gchar **argv) { gint i = check_args_playlist_pos(argc, argv); if (mlplayer_remote_playqueue_is_queued(dbus_proxy, i - 1)) mlplayer_remote_playqueue_remove(dbus_proxy, i - 1); }
void playlist_song (int argc, char * * argv) { int pos = check_args_playlist_pos (argc, argv); char * title = get_entry_title (pos - 1); fauxdtool_report ("%s", title); g_free (title); }
void playqueue_add(gint argc, gchar **argv) { gint i = check_args_playlist_pos(argc, argv); if (!(audacious_remote_playqueue_is_queued(dbus_proxy, i - 1))) audacious_remote_playqueue_add(dbus_proxy, i - 1); }
void playqueue_get_list_position(gint argc, gchar **argv) { gint pos, i = check_args_playlist_pos(argc, argv); pos = mlplayer_remote_get_playqueue_list_position(dbus_proxy, i - 1) + 1; if (pos < 1) return; mlptool_report("%d", pos); }
void playqueue_is_queued(gint argc, gchar **argv) { gint i = check_args_playlist_pos(argc, argv); if (mlplayer_remote_playqueue_is_queued(dbus_proxy, i - 1)) { mlptool_report("OK"); exit(0); } else exit(1); }
void playqueue_get_list_position (int argc, char * * argv) { int qpos = check_args_playlist_pos (argc, argv); audtool_report ("%d", get_queue_entry (qpos - 1) + 1); }
void playqueue_get_queue_position (int argc, char * * argv) { int pos = check_args_playlist_pos (argc, argv); audtool_report ("%d", find_in_queue (pos - 1) + 1); }
void playqueue_is_queued (int argc, char * * argv) { int pos = check_args_playlist_pos (argc, argv); find_in_queue (pos - 1); /* exits if not found */ audtool_report ("OK"); }
void playqueue_remove (int argc, char * * argv) { int pos = check_args_playlist_pos (argc, argv); obj_audacious_call_playqueue_remove_sync (dbus_proxy, pos - 1, NULL, NULL); }
void playlist_jump (int argc, char * * argv) { int pos = check_args_playlist_pos (argc, argv); obj_fauxdacious_call_jump_sync (dbus_proxy, pos - 1, NULL, NULL); }
void playlist_song_length_frames (int argc, char * * argv) { int pos = check_args_playlist_pos (argc, argv); int length = get_entry_length (pos - 1); fauxdtool_report ("%d", length); }
void playlist_song_length (int argc, char * * argv) { int pos = check_args_playlist_pos (argc, argv); int length = get_entry_length (pos - 1) / 1000; fauxdtool_report ("%d:%.2d", length / 60, length % 60); }