I would like to create an add-on to consolidate tracks found in the Files to Edit \ Duplicate Content list. I don't see a specific dialog for it or Files to Edit.
Can anyone point me to instructions/overview on figuring out how to determine when I'm looking at that list?
Also, according to the Wiki, I can enable developer mode under Help > About. I can't find anything there that allows me to enable developer mode. Am I missing something?
I appreciate any guidance.
Duplicate content fixer
Moderators: jiri, drakinite, Addon Administrators
-
- Posts: 11
- Joined: Fri Sep 15, 2006 10:13 am
Duplicate content fixer
Whip - MM user since 2006
Re: Duplicate content fixer
Hi,
Use latest debug build from https://www.mediamonkey.com/forum/viewt ... 86639&sd=d
and should contain Developer mode.
Then you can easily use Chrome Developer console to temper with MM
Use latest debug build from https://www.mediamonkey.com/forum/viewt ... 86639&sd=d
and should contain Developer mode.
Then you can easily use Chrome Developer console to temper with MM
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
How to attach PICTURE/SCREENSHOTS to forum posts
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
How to attach PICTURE/SCREENSHOTS to forum posts
-
- Posts: 11
- Joined: Fri Sep 15, 2006 10:13 am
-
- Posts: 11
- Joined: Fri Sep 15, 2006 10:13 am
Re: Duplicate content fixer
I've been going through the debug logs for MM5, trying to pick up on how to identify the "Files to Edit>Duplicate Content" node.
I ran across this in the debug log file:
I've found where is performing the query to match songs.
I can't figure out how I would identify when it has the main view - assuming that's the best approach. Basically, I want to add a "Consolidate" button to the groupedListView when it is the Duplicate content view.
Unless there's a more reasonable way to approach the problem?
Thanks,
Whip
I ran across this in the debug log file:
Code: Select all
TreeView.setNodePath FROM root/collection:-1/filestoedit:-1/files_to_edit_duplicate_content:duplicate_content-1 TO root/collection:-1/filestoedit:-1/files_to_edit_duplicate_content:duplicate_content-1
Code: Select all
00024102 163.40045166 [20212] MM5 [27388](R) getNodeHandlerState(NODE_HANDLERS_STATE_COLLECTION_-1|files_to_edit_duplicate_content): {"viewAsId":"contentGroupedTracklist","baseViewType":"list"}
I can't figure out how I would identify when it has the main view - assuming that's the best approach. Basically, I want to add a "Consolidate" button to the groupedListView when it is the Duplicate content view.
Unless there's a more reasonable way to approach the problem?
Thanks,
Whip
Whip - MM user since 2006
Re: Duplicate content fixer
The best way for your script is to modify the nodeHandler for the node in question,
e.g.
change to
And then you can (re)define /controls/myContentGroupedTracklist.js with ancestor of contentGroupedTracklist
e.g.
Code: Select all
nodeHandlers.files_to_edit_duplicate_content = inheritNodeHandler('FilesToEditDuplicateContent', 'FilesToEditDefault', {
tooltip: _('This node finds all content for which tracks have duplicate hashes or fingerprints.'),
customizable: false,
collapseSupport: false,
viewAs: ['contentGroupedTracklist'],
defaultColumnSort: 'none', // to respect order served by content
});
Code: Select all
nodeHandlers.files_to_edit_duplicate_content = inheritNodeHandler('FilesToEditDuplicateContent', 'FilesToEditDefault', {
tooltip: _('This node finds all content for which tracks have duplicate hashes or fingerprints.'),
customizable: false,
collapseSupport: false,
viewAs: ['myContentGroupedTracklist'],
defaultColumnSort: 'none', // to respect order served by content
});
-
- Posts: 11
- Joined: Fri Sep 15, 2006 10:13 am