getmusicbee.com

MusicBee & Add-Ons => Customizations => Plugins => Topic started by: jorgejiro on February 23, 2013, 06:27:41 PM

Title: Send to recycle bin the current song and play next song Plugin
Post by: jorgejiro on February 23, 2013, 06:27:41 PM
Hi all,

This is a little plugin to send to the "recycle bin" the current song, and play next song in the current playlist.

You can download it in the following link (v.1.1.2):
https://dl.dropboxusercontent.com/u/63438/mb_SendToRecycleBin_Plugin.zip

After installing, you can assign a hotkey to this plugin, using MusicBee standard preferences. :)

Enjoy, and let me know if there is any kind of issue.

Jorge

Update v.1.12: 24/03/2013:
- I've just updated the plugin to remove deleted song from the playlist, as you mentioned. Regards!
- Plugin download at: http://ge.tt/api/1/files/6TjBR0c/0/blob?download
- You can download the source code at: https://bitbucket.org/jorgejiro/musicbee-sendtorecyclebinplugin
Title: Re: Send to recycle bin the current song and play next song Plugin
Post by: psychoadept on February 23, 2013, 06:47:20 PM
Brilliant!  Working perfectly.

Thanks, you've just solved a problem I've been wrestling with since installing MusicBee.

Added: FYI - the track is deleted, but not removed from the Now Playing list.  Might be a problem if the track is in a playlist.
Title: Re: Send to recycle bin the current song and play next song Plugin
Post by: psychoadept on February 28, 2013, 03:25:09 PM
I've definitely confirmed now that this doesn't remove tracks from playlists.  So you can end up with a bunch of (!) items if you don't manually delete them.
Title: Re: Send to recycle bin the current song and play next song Plugin
Post by: jorgejiro on March 24, 2013, 01:38:23 PM
Thank you scampbll for your feedback  :)

I've just updated the plugin and now it removes the deleted tracks from playlists.

Regards,
Jorge
Title: Re: Send to recycle bin the current song and play next song Plugin
Post by: psychoadept on March 24, 2013, 02:32:57 PM
Awesome, thanks!

Update: I downloaded it again, but it still seems to be the old version?  Last modified date is 2/23.
Title: Re: Send to recycle bin the current song and play next song Plugin
Post by: StackDat on March 25, 2013, 04:53:04 PM
 ???  The link to download the plugin appears to be a dead link...at least for me...any other place to download the plugin?
Title: Re: Send to recycle bin the current song and play next song Plugin
Post by: psychoadept on March 26, 2013, 05:19:17 PM
Link is working okay for me, at the moment.  It's still the 2/23 version, though.
Title: Re: Send to recycle bin the current song and play next song Plugin
Post by: StackDat on March 26, 2013, 11:26:49 PM
Wierd...I've disabled my firewall but did not help..but when running a virtual Windows 7 via VMWare on the same machine it will connect and download.  I tried different browsers on the host but still getting blocked....oh well...got the plugin...thanks for helping me out!
Title: Re: Send to recycle bin the current song and play next song Plugin
Post by: fukenA on April 29, 2013, 04:52:32 PM
I still seem to be getting the old version too. At least, when checking the dll properties it says 1.0.0.0.

But more importantly, I just can't get it to work. I can enable it (after unblocking it in explorer), but I cannot find the hotkey under settings?
Title: Re: Send to recycle bin the current song and play next song Plugin
Post by: jorgejiro on April 29, 2013, 05:11:04 PM
Hi All,

I'm really sorry about your problems to download this new version, and thank you all about your feedback.

I've uploaded the last version to my Dropbox, so please try to download at the link above:
https://dl.dropboxusercontent.com/u/63438/mb_SendToRecycleBin_Plugin.zip

At this screenshot, you can see the keyboard shortcut at MusicBee:
http://www.evernote.com/shard/s1/sh/b43d9145-744a-4cd1-bd94-bb70f9dd89a6/fc7b4e44b18fe60b0891b5d0646ffd39

Let me know if you have any kind of additional problems.

Regards,
Jorge

Title: Re: Send to recycle bin the current song and play next song Plugin
Post by: fukenA on April 29, 2013, 09:03:52 PM
Ok. Turns out the version shown under the properties of the dll does not change. However, in MusicBee it is now listed as 1.1.2.

I'm now also able to add the hotkey, and while the file is removed from the playlist, it is not sent to my recycle bin.

Anything I can do to debug this futher?
Title: Re: Send to recycle bin the current song and play next song Plugin
Post by: psychoadept on May 05, 2013, 05:35:20 AM
Unfortunately, I'm having the same problem as before: the file is sent to the Recycle Bin, but is not removed from the inbox or auto playlists.
Title: Re: Send to recycle bin the current song and play next song Plugin
Post by: jorgejiro on May 05, 2013, 12:50:47 PM
Hi all,

I'm sorry about not giving answer to your posts this week, it has been a busy week :-S

I've test the plugin in WinXP an Win7 and it's works as expected, so I've no clue about what's happening, so if you can tell me about your OS and config maybe I'll have a clue about what's happening...  ;)

In addition, I've built a "debug" release of the plugin that do the current behaviour:

- If the plugin is not able to remove the current file (give an exception), it writes the exception in a log at:

"C:\SendToRecycleBinPlugin.log"

So if you can run this plugin version:
https://dl.dropboxusercontent.com/u/63438/mb_SendToRecycleBin.zip

and post the log that it's created, I will thank you very much.

Thank you very much for your patience :)

Regards,
Jorge


Title: Re: Send to recycle bin the current song and play next song Plugin
Post by: fukenA on May 05, 2013, 01:10:16 PM
Thanks Jorge, tried out the debug version without any luck. The log file is not created  :-\

But maybe that's a symptom of a certain problem related to the original issue?  ;)

I've tried running MB in administrator mode, but that didn't help either. I've noticed you can set permissions when you view the properties of the DLL file, perhaps that has something to do with it?

Anyways, thanks for your help!
Title: Re: Send to recycle bin the current song and play next song Plugin
Post by: psychoadept on May 05, 2013, 03:00:06 PM
Hi all,

I'm sorry about not giving answer to your posts this week, it has been a busy week :-S

I've test the plugin in WinXP an Win7 and it's works as expected, so I've no clue about what's happening, so if you can tell me about your OS and config maybe I'll have a clue about what's happening...  ;)

In addition, I've built a "debug" release of the plugin that do the current behaviour:

- If the plugin is not able to remove the current file (give an exception), it writes the exception in a log at:

"C:\SendToRecycleBinPlugin.log"

So if you can run this plugin version:
https://dl.dropboxusercontent.com/u/63438/mb_SendToRecycleBin.zip

and post the log that it's created, I will thank you very much.

Thank you very much for your patience :)

Regards,
Jorge

Thanks for your persistence!  I'm running Win 7 Home Premium 64-bit.  I'll give the debug version a try.

Update: I, too, couldn't find a log file after testing.  I'm installing the plugin with 7-zip, which is the same thing I use to install MB updates because it sets file permissions correctly from the get-go.
Title: Re: Send to recycle bin the current song and play next song Plugin
Post by: boroda on May 05, 2013, 04:38:55 PM
Run MB as administrator. On Vista/7 writing to root of C: drive requires additional rights.
Title: Re: Send to recycle bin the current song and play next song Plugin
Post by: fukenA on May 05, 2013, 05:53:02 PM
I did try running as administrator (also using win7), but that did not help, no log file being written.
Title: Re: Send to recycle bin the current song and play next song Plugin
Post by: jorgejiro on May 05, 2013, 09:02:41 PM
Ok, thank you for your feedback. I'll try another method, and I'll test it on win7 64 bits.

Regards
Title: Re: Send to recycle bin the current song and play next song Plugin
Post by: jorgejiro on May 12, 2013, 06:14:10 PM
Hi all,

I've think I've misunderstood you all :-P

This plugin is able to send the current song to Recycle bin, and removes from "Now playing" playlist, but only from this playlist.

I've tried this plugin in WinXP, Win 7 32 bits, and Win 7 64 bits, and it works as expected.

I think you need that the plugin also removes the files from "Inbox" and from every playlist that have this song in it, wright?

If this is what you need, I'm sorry but this is another feature different that what I need, and I'm not really sure when I've time to improve the plugin with these features, but you can improve yourself, as the source code is public at:
https://bitbucket.org/jorgejiro/musicbee-sendtorecyclebinplugin

In any case, I think MusicBee library is able to detect automatically "dead" songs, so I expect this will be a minor problem.

I'm sorry about not giving you enought support.

Regards,
Jorge
Title: Re: Send to recycle bin the current song and play next song Plugin
Post by: fukenA on May 12, 2013, 07:21:55 PM
The files are ONLY removed from my playlist. My recycle bin stays empty! The files are not removed from disk.

Title: Re: Send to recycle bin the current song and play next song Plugin
Post by: fukenA on May 12, 2013, 10:32:43 PM
I decided to play around with the source files. I'm not familiar with c# but I do webdevelopment so coding is not entirely alien to me  :)

After disabling all the error "suppressing" that hides the warnings and basically does a silent delete, it showed me the same "file is in use" error that "shif + delete" does. So then all of a sudden it seemed fairly obvious that me having crossfade enabled caused this issue.

And indeed, when I disable it, the file is deleted properly! In fact, I only need to disable "crossfade when skipping tracks".

Looking at the MB API, I noticed there is a Get- and SetCrossfadeDelegate, though I'm not sure if that will suffice to alleviate this issue. For now I'll just keep crossfade off, but I'd be more than happy to look into it more if anyone has any tips.
Title: Re: Send to recycle bin the current song and play next song Plugin
Post by: jorgejiro on May 13, 2013, 09:32:32 AM
Ohhh, this is a definitive clue!

I think that the file is not deleted because crossfade makes that the file to delete is in use when the plugin tries to delete it.

I have test it, and the plugin doesn't work only if you have checked the "crossfade when skipping tracks" option:
http://www.evernote.com/shard/s1/sh/94d88a59-f0d9-4810-ba1d-77acca6a7a40/ae0cd5574cb517c649a1bf3983f3a082

So I think there is no easy solution to solve this, and the best choice is to "uncheck" this option...

Regards,
Jorge
Title: Re: Send to recycle bin the current song and play next song Plugin
Post by: boroda on June 26, 2013, 08:00:40 AM
Here is plugin's wiki page (http://musicbee.wikia.com/wiki/Send_to_recycle_bin_the_current_song_and_play_next_song). Please update it if plugin is updated.
Title: Re: Send to recycle bin the current song and play next song Plugin
Post by: muisicer99 on April 02, 2017, 01:43:03 AM
Perhaps someone can get this Winamp plugin to work with MB? I can't successfully install it, but it works great with Winamp.
“Deleter v2.5" [gen_delete.dll] (link below)
This plugin, when used with winamp, will put an icon in the system tray, where one click will send the current song to the recycle bin, and immediately start to play the next song in the playlist. I know I can do that with shift-delete, but the plugin makes file deletion much easier from google remote desktop with no easy keyboard access. Is there another way to install this plugin and make it work? I've tried putting it in the MB plugins folder, and also the main MB folder, but it doesn't show up. Since it's not an "input plugin" or a "DSP plugin" neither of the install options on the "player" page will work.
 Is there another way to install this plugin and make it work?
As an alternative, is there a dedicated MusicBee plugin that does the same thing? The point is to have a clickable icon either on the player itself or in the system tray which sends the current track to the recycle bin, and not to have to use a keyboard shortcut.
Any help is much appreciated.
The plugin is here:
https://www.dropbox.com/s/4o23q3vfqwi0dp7/gen_delete.dll?dl=0