Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: World-Map-SMP (Read 2419 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: World-Map-SMP

Reply #25
I'm really liking this script!
I've already been keeping country tags for my library so I have no need to fetch them from the Biography script. How could I make the script read those? I store them in %country% using ISO 3166-1 alpha-2 codes.

Additionally, is there a way to choose the color of the spot indicating the location?
Download the latest files as noted on the previous reply. Have not created a release yet, but the latest version already allows that (see images blu-orange!).

About tags, right now it uses locale tag. Just put "country" on the properties panel, its configurable. I think it's the first entry (read the descriptions).

Re: World-Map-SMP

Reply #26
Updated again the repository.

Now locale tag may be rewritten by pressing Shift + L. Click on the map (when it already has a tag) -on JSON or Tags- (*). Previously it was only allowed when tag was missing. Therefore the map now has full tagging capabilities, allowing to rectify whatever Bio script provides (sometimes artist names have multiple matches and wrong tags are provided, this fixes it).

X

(*) Saves the country names, not ISO codes. I may add a config to switch between both.

EDIT: @dreampillet note that you may have to use "$meta(country,$sub($meta_num(country),1))" instead of just "country" if you have multiple values on the same tag. Right now the locale tag does not only store the country name, but city, province, etc. and It simply takes the last value as country.

Re: World-Map-SMP

Reply #27
Updated again the repository:
- Tools to report all artist without a locale tag on JSON database/tags for easy tagging, manually or automatically. Meant to be used along macros -autohotkey, etc.- and BIO script, to get the bio for every artist automatically.
Code: [Select]
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

#Persistent
SetTimer, foobar2000Preview, 15000
return

foobar2000Preview:
WinActivate foobar2000
Send {Down}
return
- Possibility to merge an external json file with current database.
- A database example is now shared on the repository. The idea is it may be merged with other user's databases and at some point it may be enough to get locale tags for most popular artists without bio script or online collection.
- Possibility to write all locale tags from current library tracks to the current database.
- Possibility to write all locale tags from database back to library tracks.
- Header text size configurable.
- Minor bugfixes.

Re: World-Map-SMP

Reply #28
Have updated the repository with minor bugfixes. Added an AutoHotekey script to get locale country tags.

If anyone want to test it, download the files directly from the repository not the releases. Please have in mind the relative path bug on SMP has not been solved yet, so I have no idea if it will work for you!
(it's recommended to also download the latest files from the rest of my scripts in that case, since I have changed all with major changes)

Re: World-Map-SMP

Reply #29
regor, can we have this little flag (like in the Georgia Reborn theme) ?
I assume it's a SMP script? We can put that little flag anywhere in our foobar config  We already have the tags with the countries, we already have the flags (png images)

Re: World-Map-SMP

Reply #30
Where do you suggest to add it on the panel?
X

Not fan of flags but wIll look at the theme, if the png are there associated to ISO codes it would be trivial to add them.

Re: World-Map-SMP

Reply #31
"Where do you suggest to add it on the panel?"

I don't know...maybe somewhere up, to the right? And maybe a setting, to activate this option or not ( for those that don't like the flags)
Or, if it doesn't look good in this script with the map, maybe a separate little script? This way we can put that little SMP panel with the flag wherever we want in our theme (near the little red heart for Lastfm, or in a toolbar, or in other places)

Re: World-Map-SMP

Reply #32
A separate script would be a no since it would also require some way to retrieve tracks from BIO or the map panel database, so it would be a plugin of a plugin... and I find it unnecessarily complex.

Btw just finished implementing a new mode for the panel: library mode, which displays all the countries from the entire library artists database  instead of following selection/playback. Clicking on a point creates playlists from that country (+genre, styles, etc.  according to keys pressed). Tooltip shows all artist on library from that country.

This is an easy way to see the current statistics for every country, instead of selecting the entire library and setting display mode to selection. Which also doesn't work as expected since I imposed a selection limit due to performance reasons (it checks tags by tracks one by one). The library database is cached and not updated on real time, so it works without performance penalties. (may be updated on demand)

X


Re: World-Map-SMP

Reply #34
Looks great, thanks. Library mode, awesome too

Re: World-Map-SMP

Reply #35
Have updated the repository with the new features (flags and library mode). The latest SMP dev build fixes the relative paths bug too, so it should be safe to update to the new version from now on.
https://ci.appveyor.com/api/projects/theqwertiest/foo-spider-monkey-panel/artifacts/_result%2FWin32_Release%2Ffoo_spider_monkey_panel.fb2k-component?branch=master&job=Configuration%3A%20Release

Re: World-Map-SMP

Reply #36
Just pushed a new update. Please read the new installation instructions. This update is required if you also update any of my other scripts due to the UTF-8 file saving/reading changes. Clone the repository to get the latest changes (Code/Download zip) instead of using the releases page.
Quote
### CHANGED
- All json files are now saved as UTF-8 without BOM. All json files are now read as UTF-8 (forced).
- Updated installation instructions.


 
SimplePortal 1.0.0 RC1 © 2008-2021