Search found 880 matches

by drakinite
Sun Oct 02, 2022 8:08 pm
Forum: MediaMonkey 5 developer forum
Topic: data-control-class="Dropdown" API questions
Replies: 2
Views: 109

Re: data-control-class="Dropdown" API questions

1. Unfortunately no. If you do wish to do something like that, a bit of an over-engineered solution would be to write functions to encode/decode the text/value like I did on the 3D Album View configuration script: https://github.com/ventismedia/mediamonkey-addons/blob/main/3d-album-view/config.js 2....
by drakinite
Sun Oct 02, 2022 2:51 pm
Forum: Need Help - MMW5
Topic: Unwanted/unsuspected change in rating
Replies: 1
Views: 54

Re: Unwanted/unsuspected change in rating

Very sorry that that happened. 1. If you have MM configured to do regular database backups (File > Manage database), you may be able to restore it by restoring an old MM database backup. 2. Yes. Tools > Options > Layout > Player > Metadata, check the "Rating" checkbox 3. You can see the ho...
by drakinite
Sun Oct 02, 2022 2:26 pm
Forum: MediaMonkey 5 developer forum
Topic: pack-mmip, an automatic MMIP packer using Node.js
Replies: 9
Views: 16067

Re: pack-mmip, an automatic MMIP packer using Node.js

New release, v1.2.0: Major update! Can now automatically detect the addon version and append it to the file, e.g. MyAddon-1.0.0.mmip , with the command-line argument -a / --appendversion Now prints its own version with the command-line argument -v / --version Now supports "preamble" commen...
by drakinite
Sun Oct 02, 2022 12:59 pm
Forum: Deutsches Forum
Topic: Show Links Addon
Replies: 9
Views: 272

Re: Show Links Addon

Tracked as https://www.ventismedia.com/mantis/view.php?id=19419. In the meantime before we decide how exactly it should be fixed, you can get the same functionality by clicking "Find more from same" -> "Title".
by drakinite
Sun Oct 02, 2022 12:23 pm
Forum: Deutsches Forum
Topic: Show Links Addon
Replies: 9
Views: 272

Re: Show Links Addon

Erwin Hanzl wrote: Sun Oct 02, 2022 3:17 am @Drakinite - Your description of this addon:
"The Library link displays tracks with the same artist, album, or title."
Search for the same titles in the library does not work!!!!
You're right, I wonder how long that went unnoticed. Looking into it...
by drakinite
Sun Oct 02, 2022 10:45 am
Forum: MediaMonkey 5 developer forum
Topic: Blue edits of Material and Metro skins
Replies: 2
Views: 66

Re: Blue edits of Material and Metro skins

Nice work! Want to submit them to the addon site? Go to https://www.mediamonkey.com/addon_system/admin/, select the MediaMonkey 5 > Appearance > Skins category and then Submit New Addon. I'd recommend renaming the .zip files to .mmip first, so that users can more install them without having to drop ...
by drakinite
Thu Sep 29, 2022 2:28 pm
Forum: MediaMonkey 5 developer forum
Topic: CSS file loading in addon
Replies: 8
Views: 242

Re: CSS file loading in addon

No problem! I'd recommend using skin_custom_add instead of skin_base_add if the extra stuff is not relevant to any other skin files.

(granted, I didn't follow that advice for 3D Album View, but I don't think I even noticed skin_custom.less when I worked on that :P)
by drakinite
Thu Sep 29, 2022 12:46 am
Forum: MediaMonkey 5 developer forum
Topic: CSS file loading in addon
Replies: 8
Views: 242

Re: CSS file loading in addon

MM5 won't automatically compile LESS that's just included in the sources. It's compiled inside mminit.js, and its entry point is by compiling this string: @import url("'file:///skin/skin_complete.less'"); which imports skin_complete.less, which contains @import statements for all other ski...
by drakinite
Wed Sep 28, 2022 12:04 am
Forum: MediaMonkey 5 developer forum
Topic: CSS file loading in addon
Replies: 8
Views: 242

Re: CSS file loading in addon

Yes, the best option is to override/add to the skinning system via .less files. But if you still prefer to use raw CSS: I'm not sure why, but the <link> element seems to get destroyed when it's placed outside the body. Might be some byproduct of the methods MM uses to reuse/share dialog windows. In ...
by drakinite
Sat Sep 24, 2022 6:11 pm
Forum: MediaMonkey 5 developer forum
Topic: Problem when combining sync with async function
Replies: 3
Views: 145

Re: Problem when combining sync with async function

No prob! Async functions can be annoying to work with, but it's essential in JS to keep the UI operating smoothly :)
by drakinite
Sat Sep 24, 2022 2:11 pm
Forum: MediaMonkey 5 developer forum
Topic: Problem when combining sync with async function
Replies: 3
Views: 145

Re: Problem when combining sync with async function

Try: app.player.nextAsync().then(() => { app.player.volume = initialVolume; clearInterval(timerId); }); What's probably happening is: step 1. The player is requested to *eventually* skip to the next track (which realistically will execute in some number of milliseconds, but NOT instantly) step 2. Th...
by drakinite
Thu Sep 22, 2022 10:18 am
Forum: MediaMonkey 5 developer forum
Topic: Sending Player info to a window
Replies: 29
Views: 2155

Re: Sending Player info to a window

Essentially, any script that's NOT running inside a separate dialog window is running inside the main window. Examples of scripts that run inside the main window: addon's init.js actions.js mainwindow.js templates.js Examples of scripts that do NOT run inside the main window: addon's config.js Anyth...
by drakinite
Mon Sep 19, 2022 10:58 pm
Forum: MediaMonkey 5 developer forum
Topic: Smart Playlists - duplicate track removal = smart pruning
Replies: 10
Views: 1366

Re: Smart Playlists - duplicate track removal = smart pruning

I did some digging and your question has led me to learn a lot about sorting and auto-playlists that I did not before. Several notes: 1. Documentation on tracklist sorting is terribly lacking. I've updated the documentation, but it'll be a bit before it's live on the site. Here's a copy of setAutoSo...
by drakinite
Sun Sep 18, 2022 4:01 pm
Forum: MediaMonkey 5 developer forum
Topic: Accessing Addon version
Replies: 2
Views: 96

Re: Accessing Addon version

Unfortunately (as far as I can see) there's no simple way to retrieve the addon info from outside the config window (you'd have to do app.getAddonList() and do something like list.filterByPrefix() to get the right addon). But if you like, you could try loading the info.json file with the loadFile co...