Track Redirection & Synchronization 3.4 (2012-10-08) [MM3+]

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Track Redirection & Synchronization 3.4 (2012-10-08) [MM3+]

Re: Track Redirection & Synchronization 3.4 (2012-10-08) [MM

by Spix » Thu Mar 23, 2017 5:13 pm

Thank you again for your fast and detailed answer!

Unfortunaly I have too many duplicates to do it manually one by one.

Kind regards

Re: Track Redirection & Synchronization 3.4 (2012-10-08) [MM

by ZvezdanD » Thu Mar 23, 2017 11:44 am

Actually, you could create redirection for any track, even if it has different Artist/Title or filename from the master track, but you could do it only manually one at once:
- select the master track in the main filelist (e.g. the one with the highest bitrate);
- open the Create Redirections for Specified Tracks dialog box;
- select the Track from specified Album radio button;
- choose the linked (redirected) track in the File Path text box.

Re: Track Redirection & Synchronization 3.4 (2012-10-08) [MM

by Spix » Thu Mar 23, 2017 10:24 am

Thank you for the fast response!

With "advanced duplicate find & fix" and "create keep/ delete suggestion nodes" I can find all acoustid duplicates and/ or only those I want to replace with asx links. Is there a trick to pass this result as an input to "track redirections" to solve my problem?

Kind regards

Re: Track Redirection & Synchronization 3.4 (2012-10-08) [MM

by ZvezdanD » Wed Mar 22, 2017 6:35 pm

Spix wrote:Is there a special trick to change this to use my criteria: the acoustid (and maybe the length)?
Sorry, there is no such trick. The files need to have the same Artist and Title or the same filename and similar structure of folders to be considered as duplicates.

Re: Track Redirection & Synchronization 3.4 (2012-10-08) [MM

by Spix » Wed Mar 22, 2017 4:39 pm

Hi I'm new to this forum and I have a question for the "Track Redirection" Addon

I want to reduce the size of my library by replacing duplicates file with asx links.
I created an acoustid for all tracks and stored in field custom1. I consider files to be duplicate if they have identical acoustids and are about the same length (+- 5 seconds). As I understand "Track Redirection" considers files as duplicates when they have the same title and artist.

Is there a special trick to change this to use my criteria: the acoustid (and maybe the length)? It would be very helpful if I could replace lots of duplicates by asx links!

Kind regards

Re: Track Redirection & Synchronization 3.4 (2012-10-08) [MM

by SPIXX » Tue Mar 21, 2017 4:10 pm

How to replace lots of track duplicates based on acoustid automatically by asx links?

I attached an acoustid to all tracks of my library in custom field #1.

I regard tracks as duplicates when they have the same acoustid. As there are lots of duplicates in different compilations etc. I would like to replace all but the one with highest bit rate by asx links. Is there an option in track redirection to use the acoustid (instead of title and artist) to find the duplicates in track redirection?

If there is not, can I use "advanced duplicate find & fix" together with "create keep/ delete suggestion nodes" to find all acoustid duplicates and pass the result somehow (?) to track redirection to replace the duplicates with asx links?

Kind regards

Re: Track Redirection & Synchronization 3.4 (2012-10-08) [MM

by ZvezdanD » Wed Nov 04, 2015 6:15 pm

Onweerwolf wrote:Offtopic: but is the data from Inherit Child Playlists also stored in the database?
Yes, it is.
Onweerwolf wrote:Okay, but do you have any more info? It doesn't happen all the time, just sometimes. Maybe it's possible to pinpoint the cause(s) and see if they can be avoided?
It is not happening to me. If you could reproduce the problem, please report.
Onweerwolf wrote:Okay, but doesn't playstats mean playcount and play dates, so isn't it exactly the same?
No, it is not the same:
1. Play count and play dates are updated for different files for those two options;
2. The occasion when they are updated are different for those two options.

Please read the Usage section of the first post of this thread, it has a description about those two options.
That last command also takes a lot of time and provides a long list of songs that are not the ones that I want to link.
If you have two identical groups of duplicates in two folders and their sub-folders, you could use the mentioned dialog box with the Folders option to create links for all tracks from that group. It works recursively, no matter how many level of sub-folders they have, as long as you have identical folder structure in both groups. However, that command is mostly applicable if you have many identical tracks in two different formats (e.g. you have the same album in MP3 and FLAC).

Re: Track Redirection & Synchronization 3.4 (2012-10-08) [MM

by Onweerwolf » Wed Nov 04, 2015 5:20 pm

Been a while, i'm busy lately but I have not forgotten...

Thanks for your response!
ZvezdanD wrote:
Onweerwolf wrote:1. I was wondering where the redirections are stored. To put it another way; it's there a risk of losing them? For instance when I do a reinstall of MM or when I uninstall this script. I have 100's of tracks that I want to redirect and I would like to prevent losing the work that I'm gonna put into it.
The table with the redirections is stored in the MM database. There is a risk of losing them. When you reinstall MM it would keep the database, but there are always a risk that it could be damaged. It is highly recommended that you make a backup of your MM database on a regular basis, so when you get the database somehow corrupted or damaged you could take back the latest good one.
Thanks! I backup all my data daily and the MM.DB gets extra care. :)

Offtopic: but is the data from Inherit Child Playlists also stored in the database? I assume so, just want to make sure.
Onweerwolf wrote:2. When I select either 'Replace with duplicate from album' or 'replace with linked track' from the dropdown menu I get this error:
There is the new 3.4.2 update with fixed that bug.
Thanks, will have to check that out. I seem to have 3.4.1
Onweerwolf wrote:3. I use 'create redirection for specified tracks' to select a redirected track for a selected master. When I do so oftentimes the dialogue window will appear beneath MM's main window. Which means I have to doubleclick on the MM system tray icon to make the main window minimize and have the script dialogue appear. This is kinda annoying.
This is a problem with the program itself and I cannot do anything about it.
Okay, but do you have any more info? It doesn't happen all the time, just sometimes. Maybe it's possible to pinpoint the cause(s) and see if they can be avoided?
Onweerwolf wrote:4. could you explain the difference between these two:
The first one allows updating of the playstats of the master track when you play track(s) linked to it. The second one specify what you want to be synchronized when you use e.g. Synchronize Metadata of Redirected Tracks command.
Okay, but doesn't playstats mean playcount and play dates, so isn't it exactly the same?
Onweerwolf wrote:5. A suggestion: It takes a while for the script to find tracks with the same artist & title. Oftentimes I actually know exactly which track I want a redirection for. Therefor it would be much faster if the script had an option to simply select master track, bring up the dialogue from 'create redirections for selected tracks' without the search and then select the track that i want the redirection for.
I have planed to implement something like that in the future. In the meantime maybe you could try with the Create Redirections/Copy Metadata for Duplicates/Folders command which has different approach for creating redirections than Create Redirections for Specified Tracks.
.
That last command also takes a lot of time and provides a long list of songs that are not the ones that I want to link.

Re: Track Redirection & Synchronization 3.4 (2012-10-08) [MM

by ZvezdanD » Mon Oct 05, 2015 12:49 pm

Onweerwolf wrote:1. I was wondering where the redirections are stored. To put it another way; it's there a risk of losing them? For instance when I do a reinstall of MM or when I uninstall this script. I have 100's of tracks that I want to redirect and I would like to prevent losing the work that I'm gonna put into it.
The table with the redirections is stored in the MM database. There is a risk of losing them. When you reinstall MM it would keep the database, but there are always a risk that it could be damaged. It is highly recommended that you make a backup of your MM database on a regular basis, so when you get the database somehow corrupted or damaged you could take back the latest good one.
Onweerwolf wrote:2. When I select either 'Replace with duplicate from album' or 'replace with linked track' from the dropdown menu I get this error:
There is the new 3.4.2 update with fixed that bug.
Onweerwolf wrote:3. I use 'create redirection for specified tracks' to select a redirected track for a selected master. When I do so oftentimes the dialogue window will appear beneath MM's main window. Which means I have to doubleclick on the MM system tray icon to make the main window minimize and have the script dialogue appear. This is kinda annoying.
This is a problem with the program itself and I cannot do anything about it.
Onweerwolf wrote:4. could you explain the difference between these two:
The first one allows updating of the playstats of the master track when you play track(s) linked to it. The second one specify what you want to be synchronized when you use e.g. Synchronize Metadata of Redirected Tracks command.
Onweerwolf wrote:5. A suggestion: It takes a while for the script to find tracks with the same artist & title. Oftentimes I actually know exactly which track I want a redirection for. Therefor it would be much faster if the script had an option to simply select master track, bring up the dialogue from 'create redirections for selected tracks' without the search and then select the track that i want the redirection for.
I have planed to implement something like that in the future. In the meantime maybe you could try with the Create Redirections/Copy Metadata for Duplicates/Folders command which has different approach for creating redirections than Create Redirections for Specified Tracks.

Thanks for the bug-report and suggestions.

Re: Track Redirection & Synchronization 3.4 (2012-10-08) [MM

by Onweerwolf » Mon Oct 05, 2015 11:10 am

I've had my eye on this script for several years but had to wait until i finished other tasks concerning my library. Now I've finally found the time to test it out. It works great so far. I do have some questions though.

1. I was wondering where the redirections are stored. To put it another way; it's there a risk of losing them? For instance when I do a reinstall of MM or when I uninstall this script. I have 100's of tracks that I want to redirect and I would like to prevent losing the work that I'm gonna put into it.

2. When I select either 'Replace with duplicate from album' or 'replace with linked track' from the dropdown menu I get this error:

Image

Any idea?

3. I use 'create redirection for specified tracks' to select a redirected track for a selected master. When I do so oftentimes the dialogue window will appear beneath MM's main window. Which means I have to doubleclick on the MM system tray icon to make the main window minimize and have the script dialogue appear. This is kinda annoying.

4. could you explain the difference between these two:

Image

5. A suggestion: It takes a while for the script to find tracks with the same artist & title. Oftentimes I actually know exactly which track I want a redirection for. Therefor it would be much faster if the script had an option to simply select master track, bring up the dialogue from 'create redirections for selected tracks' without the search and then select the track that i want the redirection for. Basically similar to the way the Copy Metadata -> Paste Metadata script works.

thnx!

Re: Track Redirection & Synchronization 3.3.9 (2012-06-28)[M

by allwi » Sun Oct 28, 2012 10:49 pm

ZvezdanD wrote:
allwi wrote:Unfortunately the other problems remain
Thanks for the report. There is the new update, v3.4 - 2012-10-08:
* Added: options to find master track in the Library/Location folder or in the current tracklist (Find Referenced Master sub-menu);
* Added: possibility to specify the name of some nested playlist in the Options dialog box without its full path if that name is unique;
* Fixed: remembering of Copy Audio Tracks and Transfer Playstats options in the Create Redirections for Specified Tracks dialog box;
* Fixed: error when some HideMenu option is set to 1 in the .ini file.
Hi Zvezdan,

sorry that I haven't replied earlier ...

You know that you are a genius, right :)
After installing the new version, the options are remembered. Though I haven't check the the HideMenu options, I believe they work as well.

Many many thanks

Cheers
allwi

Re: Track Redirection & Synchronization 3.3.9 (2012-06-28)[M

by ZvezdanD » Mon Oct 08, 2012 3:34 pm

allwi wrote:Unfortunately the other problems remain
Thanks for the report. There is the new update, v3.4 - 2012-10-08:
* Added: options to find master track in the Library/Location folder or in the current tracklist (Find Referenced Master sub-menu);
* Added: possibility to specify the name of some nested playlist in the Options dialog box without its full path if that name is unique;
* Fixed: remembering of Copy Audio Tracks and Transfer Playstats options in the Create Redirections for Specified Tracks dialog box;
* Fixed: error when some HideMenu option is set to 1 in the .ini file.

Re: Track Redirection & Synchronization 3.3.9 (2012-06-28)[M

by allwi » Tue Oct 02, 2012 7:07 am

Thanks for the fast response, Zvezdan.

Let's start with the good news:
ZvezdanD wrote:Do you have displayed the Entire Library and Album nodes in the Media Tree panel?
Why should I? I have MagicNodes :oops:
You're right after I enabled Entire Lib/Album, the master is shown ... I haven't thought about this.

Unfortunately the other problems remain
ZvezdanD wrote:The options Copy Master and Transfer Playcount in the Create Redirections dialog box are stored only after you click on the OK button, but not if you click on the Cancel button, i.e. they are stored only if you actually create some redirection. If you open the Create Redirections dialog box again, immediately after you created some redirection, you should see these options remembered.
Sure, I assumed so and did exactly this - but I always get the Copy option enabled and the Transfer disabled.
ZvezdanD wrote:However, if you open the MediaMonkey.ini file right after you created some redirection and if the keys CopyAudioFiles and TransferPlaystatsOnCreate are not corresponded to their respective options, that could only mean that you have installed some add-on from another author that is messing with the .ini file, which is already discussed in this thread.
Bugger - My MM4 installation went on top of an existing MM3. I only have a few scripts/extensions: MagicNodes, TrackRedirection, MonkeyRok and MonkeyFlow. Everything works fine, even MonkeyFlow although this is not approved for MM4. So there might be so remainders from old scripts? (I tried a lot of script but found most of them not useful). I'll check this thread for the discussion, you mentioned.
ZvezdanD wrote:Your manual setting to the .ini file did not help most probably because you did that when you had the program opened. You should close every instance of it before you make some modification to the .ini file.
Nope - this was not the case, I always close MM before I try to edit the ini file. Strangely I don't see anything from the TrackRedirection script written back to the ini. But I see changes of MagicNodes (so I look in the correct ini file).
ZvezdanD wrote:Could you post the reported line number at which the error happened? What is the version of the script that you are using?
Row 7551, column 12 - I'm using the latest script version 3.3.9. It seems that not every Hide triggers that error only a certain or a few ones. But even if the script works without error after I set a Hide entry to 1, I can still see the menu item.

Cheers
allwi

Re: Track Redirection & Synchronization 3.3.9 (2012-06-28)[M

by ZvezdanD » Sun Sep 30, 2012 2:50 am

allwi wrote:1. The usual option, I use for redirections is: Create link without Copy Master but with Transfer Playcount
This works fine but the options Copy Master and Transfer Playcount are always forgotten and I have to switch them on every time. I looked in the ini file and found the setting CopyAudioFiles=1. I set it to 0 but this didn't help.
I cannot test the script in this moment, but I could try to answer. The options Copy Master and Transfer Playcount in the Create Redirections dialog box are stored only after you click on the OK button, but not if you click on the Cancel button, i.e. they are stored only if you actually create some redirection. If you open the Create Redirections dialog box again, immediately after you created some redirection, you should see these options remembered.

However, if you open the MediaMonkey.ini file right after you created some redirection and if the keys CopyAudioFiles and TransferPlaystatsOnCreate are not corresponded to their respective options, that could only mean that you have installed some add-on from another author that is messing with the .ini file, which is already discussed in this thread. In that case, to be sure that options would be remembered into the .ini file, it is recommended that you restart the program after you create some redirection. Or you could hope that the program would not crush before you close it regularly for the next time. You see, if you have installed some third party nasty script, all settings from the all scripts are stored into the .ini file only when you regularly close the program.

Your manual setting to the .ini file did not help most probably because you did that when you had the program opened. You should close every instance of it before you make some modification to the .ini file.
allwi wrote:2. I found the number of submenu entries quite overwhelming esp. because I only use a few of them. After looking into the ini file, I saw the HideXX entries and tried to set them to 1 to hide the menu entries. But after a start of MM4, I get error #424 (SDB.Object(..) error). (Setting them back to 0 again fixes the error)
Could you post the reported line number at which the error happened? What is the version of the script that you are using?
allwi wrote:when using the 'Find Master option' on the linked track, I always get 'The referenced Master cannot be found'.
What is the version of the program that you have installed? If it is v4.x, do you have displayed the Entire Library and Album nodes in the Media Tree panel?

Re: Track Redirection & Synchronization 3.3.9 (2012-06-28)[M

by allwi » Sat Sep 29, 2012 6:21 pm

Hi Zvezdan,

great script - again. (What would MM without MagicNodes or this script ...)
But there are two annoyances, I can't sort out:
1. The usual option, I use for redirections is: Create link without Copy Master but with Transfer Playcount
This works fine but the options Copy Master and Transfer Playcount are always forgotten and I have to switch them on every time. I looked in the ini file and found the setting CopyAudioFiles=1. I set it to 0 but this didn't help. Is there any chance that these two options are set as default?

2. I found the number of submenu entries quite overwhelming esp. because I only use a few of them. After looking into the ini file, I saw the HideXX entries and tried to set them to 1 to hide the menu entries. But after a start of MM4, I get error #424 (SDB.Object(..) error). (Setting them back to 0 again fixes the error)
What am I doing wrong? Can I hide the submenu entries and if so how?

Finally a bug I have:
I created some redirections. These work fine, when adding them to the playlist the master is selected, the meta data is kept identical etc. But when using the 'Find Master option' on the linked track, I always get 'The referenced Master cannot be found'.
What's the issue?

Many thanks again for this script

Cheers
allwi

Top