Delete song from disk
Added by Oleg Stream almost 13 years ago
Please add feature "Delete file from hard drive"
I often use this function in another audio player. And i want this function in audacious!
Thanks!
Replies (8)
RE: Delete song from disk - Added by Lightning Rose almost 13 years ago
Please don't. It's a stupid idea that makes it all too easy to trash one's music collection.
Learn to use a file browser, that's what they're for.
RE: Delete song from disk - Added by juanma h over 12 years ago
You can do your own script, and overcome program limitations. This is mine, use at your own risk.
trash "$(audtool current-song-filename)"
audtool --playlist-delete $(audtool --playlist-position)
audtool --playback-play
Note 1: trash is from trash-cli package, it sends file to trash. You can use, of course, rm, but it deletes the file.
Note 2: you can bind the script to a key-combination. Caution: it's dangerous
Note 3: there is no confirmation dialog. Caution: it's dangerous
RE: Delete song from disk - Added by Сергей Савельев almost 12 years ago
Tank you juanma!
Create bash script:
nano moveCurrentTrack.sh
moveCurrentTrack.sh:
audtool --playlist-advance mv "$(audtool --playlist-song-filename $(expr $(audtool --playlist-position) - 1))" ~/Музыка/trash/ audtool --playlist-delete $(expr $(audtool --playlist-position) - 1)
For used script need:
chmod -x moveCurrentTrack.sh
Create folder for move tracks:
mkdir ~/{music,Музыка}/trash
Start script in terminal:
sh moveCurrentTrack.sh
Not clean, but it works!
RE: Delete song from disk - Added by Сергей Савельев almost 12 years ago
Sory, file moveCurrentTrack.sh:
audtool --playlist-advance mv "$(audtool --playlist-song-filename $(expr $(audtool --playlist-position) - 1))" ~/{Музыка,music}/trash/ audtool --playlist-delete $(expr $(audtool --playlist-position) - 1)
:)
RE: Delete song from disk - Added by Gottfried Rupp almost 12 years ago
juanma h
Сергей Савельев
Your script is working correctly (delete the correct files)
delete the wrong files in the 'shuffle play'!
My script :(Lubuntu 12.04)
trash-put "$(audtool current-song-filename)"
audtool --playlist-delete $(audtool --playlist-position)
audtool --playback-play
Thanks
(My English is from google )
PS:
smaller player with almost all options
made with 'alltray' and 'plank' panel
[[http://ge.tt/6QeNWCZ/v/0 ]]
RE: Delete song from disk - Added by kevin f over 10 years ago
There is now a plugin called "delete-files" which adds a right click menu in playlist.
Taking that one step further, here is a patch to add global hotkey support
RE: Delete song from disk - Added by Kolan Sh about 9 years ago
Lightning Rose wrote:
Please don't. It's a stupid idea that makes it all too easy to trash one's music collection.
Learn to use a file browser, that's what they're for.
Audacious is more popular in POSIX-compatible environments where hardlinks are available.
For me, a good practice after copying albums to your computer, make 'cp -rl source_dir favourite_dir', which prevents accidental deletion and allows distribution of the original copy.
RE: Delete song from disk - Added by Michael Schwendt almost 9 years ago
That's a reply to an "almost 4 years old" post, and the delete-files plugin has been added years ago, too.
You can find more background about the plugin here: http://redmine.audacious-media-player.org/issues/76