request for script/addon

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

kiwichick
Posts: 342
Joined: Tue Jul 21, 2009 6:35 am

request for script/addon

Post by kiwichick »

Hi there, MM has the option to "warn when duplicate tracks are added" to playlists. I love this function but it only looks for duplicates based on Title / Artist / Album which means if I have the same song in my library, for example, 3 times (original album, greatest hits album, soundtrack album) I could add all three versions of the same song to a playlist and never know. I would love, love, love a script/addon that would look for duplicates added to playlists based on Title / Artist only. Cheers if anyone out there can help.
ZvezdanD
Posts: 3272
Joined: Thu Jun 08, 2006 7:40 pm

Re: request for script/addon

Post by ZvezdanD »

That is not exactly possible to do with the scripts because MM API doesn't have the OnPlaylistAdd event (although it is requested many times, e.g. by trixmoto in Jul 03, 2006). Without such event the scripts cannot know when some playlist has added tracks to be able to take some action in such moment.

However, you could use a script to remove duplicates from existing playlists. The Track Redirection & Synchronization add-on has an option "Remove Duplicates from the Tracklist" based on Artist/Title match, but it removes duplicates only from the tracklist, not from playlists. If you want, I could modify that add-on to allow removing of duplicates from the selected playlists as well.
● Magic Nodes 4.3.3 / 5.2 ● RegExp Find & Replace 4.4.9 / 5.2 ● Invert Selection/Select None 1.5.1 ● Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1 ● Expand Child Nodes/Expand All 1.1.2 ● Event Logger 2.7 ● Filtered Statistics Report 1.6 ● Track Redirection & Synchronization 3.4.2 ● Restore/Synchronize Database 3.1.8 / 4.0.1 ● Find Currently Playing Track 1.3.2 ● Queue List 1.2.1 ● Add to Library on Play 1.0.1 ● Tree Report for Child Nodes 1.1.1 ● Update Location of Files in Database 1.4.5 / 2.3 ● Inherit Child Playlists 1.0.3 ● Add Currently Playing/Selected Track(s) to Playlist 1.2
Peke
Posts: 18773
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: request for script/addon

Post by Peke »

Nice catch Zvezdan, Add bug to Mantis and send me reminder so that I can triage it.
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
ZvezdanD
Posts: 3272
Joined: Thu Jun 08, 2006 7:40 pm

Re: request for script/addon

Post by ZvezdanD »

Peke wrote:Nice catch Zvezdan, Add bug to Mantis and send me reminder so that I can triage it.
Well, I already added request in Mantis for similar event (OnPlaylistModified), but it seems that you didn't see it. Beside of adding tracks to playlists, such event could also cover removing of tracks and modifying of their order.
● Magic Nodes 4.3.3 / 5.2 ● RegExp Find & Replace 4.4.9 / 5.2 ● Invert Selection/Select None 1.5.1 ● Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1 ● Expand Child Nodes/Expand All 1.1.2 ● Event Logger 2.7 ● Filtered Statistics Report 1.6 ● Track Redirection & Synchronization 3.4.2 ● Restore/Synchronize Database 3.1.8 / 4.0.1 ● Find Currently Playing Track 1.3.2 ● Queue List 1.2.1 ● Add to Library on Play 1.0.1 ● Tree Report for Child Nodes 1.1.1 ● Update Location of Files in Database 1.4.5 / 2.3 ● Inherit Child Playlists 1.0.3 ● Add Currently Playing/Selected Track(s) to Playlist 1.2
kiwichick
Posts: 342
Joined: Tue Jul 21, 2009 6:35 am

Re: request for script/addon

Post by kiwichick »

Thanks for the reply ZvezdanD, It would be great if you could modify the script - if that's the only option at present, I'll take it. But hopefully it will be something that will get looked at soon.
Peke
Posts: 18773
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: request for script/addon

Post by Peke »

Triage is done and Assigned to Jiri for evaluation. THX again.
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
ZvezdanD
Posts: 3272
Joined: Thu Jun 08, 2006 7:40 pm

Re: request for script/addon

Post by ZvezdanD »

There is the new release of the Track Redirection add-on (v3.3.5). You should select playlist in the tree panel from which you want to remove duplicates, then you should choose Tools > Track Redirection > Remove Duplicates from the Tracklist / NP List
● Magic Nodes 4.3.3 / 5.2 ● RegExp Find & Replace 4.4.9 / 5.2 ● Invert Selection/Select None 1.5.1 ● Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1 ● Expand Child Nodes/Expand All 1.1.2 ● Event Logger 2.7 ● Filtered Statistics Report 1.6 ● Track Redirection & Synchronization 3.4.2 ● Restore/Synchronize Database 3.1.8 / 4.0.1 ● Find Currently Playing Track 1.3.2 ● Queue List 1.2.1 ● Add to Library on Play 1.0.1 ● Tree Report for Child Nodes 1.1.1 ● Update Location of Files in Database 1.4.5 / 2.3 ● Inherit Child Playlists 1.0.3 ● Add Currently Playing/Selected Track(s) to Playlist 1.2
kiwichick
Posts: 342
Joined: Tue Jul 21, 2009 6:35 am

Re: request for script/addon

Post by kiwichick »

Thanks again ZvezdanD, The Track Redirection add-on works perfectly! The only problem I can't re-size the Track Redirection windows. They don't open large enough for me to see everything clearly.
ZvezdanD
Posts: 3272
Joined: Thu Jun 08, 2006 7:40 pm

Re: request for script/addon

Post by ZvezdanD »

I am not sure that understand what you mean with "can't re-size the Track Redirection windows". This add-on has several options with its own windows, e.g. "Create Redirections for Specified Tracks" has non-resizable dialog box, but "Create Redirections/Copy Metadata for Duplicates/Folders" and "Maintain Redirections" have resizable windows. The "Create Redirections for Specified Tracks" option is still included in add-on just because of compatibility with MM3 versions older than 3.1.0.1208 which had not tree-listview control available for scripts and that option also has somewhat different approach for creating redirections.

You don't need to create redirections to be able to remove duplicates from playlist. As I said, just select some playlist and choose the mentioned "Remove Duplicates" option.
● Magic Nodes 4.3.3 / 5.2 ● RegExp Find & Replace 4.4.9 / 5.2 ● Invert Selection/Select None 1.5.1 ● Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1 ● Expand Child Nodes/Expand All 1.1.2 ● Event Logger 2.7 ● Filtered Statistics Report 1.6 ● Track Redirection & Synchronization 3.4.2 ● Restore/Synchronize Database 3.1.8 / 4.0.1 ● Find Currently Playing Track 1.3.2 ● Queue List 1.2.1 ● Add to Library on Play 1.0.1 ● Tree Report for Child Nodes 1.1.1 ● Update Location of Files in Database 1.4.5 / 2.3 ● Inherit Child Playlists 1.0.3 ● Add Currently Playing/Selected Track(s) to Playlist 1.2
kiwichick
Posts: 342
Joined: Tue Jul 21, 2009 6:35 am

Re: request for script/addon

Post by kiwichick »

Yes I understand the dialog windows open and can or cannot be resized as you said. Sorry but I don't think I explained very clearly. All of the dialog boxes, regardless of whether they can be resized or not, aren't big enough to show all the 'dialog'. Example:

In the "Create Redirections for Specified Tracks" dialog window, the top-left part of the window has two radio buttons and beside them it says "create .asx metafiles and rep" and "create redirection links f". Obviously there is more to the dialog but I can't see it.

All The dialog windows are like this but when I resize the windows that can be resized, they don't resize the parts that contain the dialog I can't see - they only resize the track information.

I hope that's a bit clearer.
ZvezdanD
Posts: 3272
Joined: Thu Jun 08, 2006 7:40 pm

Re: request for script/addon

Post by ZvezdanD »

Yes, now I understand what you want to say. Generally speaking, it is not a problem with this add-on. If you take a look at the screenshots in the first post of its related thread, you would see that the text is displayed normally. You have set too large font, either in MM itself (Options dialog box, Skin tab, Font size) or in Windows (Display Properties, DPI setting). With such setting you would get the truncated text not only with this add-on, but in many other places.

Sorry, but I need to repeat again - your initial request could be realized without opening any windows of the Track Redirection add-on. These options with their windows are only for advanced use of this add-on which are not needed if you just want to remove duplicates from some playlist.
● Magic Nodes 4.3.3 / 5.2 ● RegExp Find & Replace 4.4.9 / 5.2 ● Invert Selection/Select None 1.5.1 ● Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1 ● Expand Child Nodes/Expand All 1.1.2 ● Event Logger 2.7 ● Filtered Statistics Report 1.6 ● Track Redirection & Synchronization 3.4.2 ● Restore/Synchronize Database 3.1.8 / 4.0.1 ● Find Currently Playing Track 1.3.2 ● Queue List 1.2.1 ● Add to Library on Play 1.0.1 ● Tree Report for Child Nodes 1.1.1 ● Update Location of Files in Database 1.4.5 / 2.3 ● Inherit Child Playlists 1.0.3 ● Add Currently Playing/Selected Track(s) to Playlist 1.2
kiwichick
Posts: 342
Joined: Tue Jul 21, 2009 6:35 am

Re: request for script/addon

Post by kiwichick »

Yes it will be a font issue (I have mine set larger in MM) but as you say, if I'm only using Track Redirection for basic use, then it won't really matter. I have discovered, though, that I can achieve the same result with Advanced Duplicate Find & Fix using its Custom Duplicate Search. I just need to create a filter that points to the playlist I want. It has an advantage over Track Redirection in that I can use it for Duplicates in more than just playlists and I can specify more 'dulpicate' criteria. But then Track Redirection is able to mark the higher bitrate which I love. So they will both be of benefit. Thanks once more for all your help ZvezdanD.
ZvezdanD
Posts: 3272
Joined: Thu Jun 08, 2006 7:40 pm

Re: request for script/addon

Post by ZvezdanD »

Well, the Track Redirection add-on could be used to remove duplicates not only from playlists, but also from Now Playing panel and from any tracklist (although the tracks are not actually removed from the Library, but I could add such possibility). I mentioned that add-on because your initial request was about duplicates in playlists. If you want to get displayed all duplicates from the Library using some specific filter/criteria, you could also use the Magic Nodes add-on and its nodes from the Duplicates group. For example, if you want to remove duplicates you could use nodes:
- All duplicates except ones with maximal bitrate;
- All duplicates except ones with maximal rating.
● Magic Nodes 4.3.3 / 5.2 ● RegExp Find & Replace 4.4.9 / 5.2 ● Invert Selection/Select None 1.5.1 ● Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1 ● Expand Child Nodes/Expand All 1.1.2 ● Event Logger 2.7 ● Filtered Statistics Report 1.6 ● Track Redirection & Synchronization 3.4.2 ● Restore/Synchronize Database 3.1.8 / 4.0.1 ● Find Currently Playing Track 1.3.2 ● Queue List 1.2.1 ● Add to Library on Play 1.0.1 ● Tree Report for Child Nodes 1.1.1 ● Update Location of Files in Database 1.4.5 / 2.3 ● Inherit Child Playlists 1.0.3 ● Add Currently Playing/Selected Track(s) to Playlist 1.2
Post Reply