mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 00:11:59 +02:00
Export playlist to file with Ctrl+E
This commit is contained in:
@@ -76,6 +76,24 @@ class ClapperPlaylistWidget extends Gtk.ListBox
|
||||
return this.get_row_at_index(this.activeRowId);
|
||||
}
|
||||
|
||||
getPlaylist(useFilePaths)
|
||||
{
|
||||
const playlist = [];
|
||||
let index = 0;
|
||||
let item;
|
||||
|
||||
while((item = this.get_row_at_index(index))) {
|
||||
const path = (useFilePaths && item.isLocalFile)
|
||||
? GLib.filename_from_uri(item.uri)[0]
|
||||
: item.uri;
|
||||
|
||||
playlist.push(path);
|
||||
index++;
|
||||
}
|
||||
|
||||
return playlist;
|
||||
}
|
||||
|
||||
getActiveFilename()
|
||||
{
|
||||
const row = this.getActiveRow();
|
||||
|
Reference in New Issue
Block a user