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: JScript Panel (Read 294502 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

Re: JScript Panel

Reply #651
It is ok now, ty.


Re: JScript Panel

Reply #653
What about "Last.fm Lover" button? Is it removed?

Re: JScript Panel

Reply #654
Oh crap, I removed it and forgot all about giving any advance warning. Since that's entirely my fault, I'll restore it.

I would prefer people use the last.fm playcount sync component in my signature. It has full track love/unlove support. That would mean importing your loved tracks again and using %lfm_loved% instead of %jsp_loved%. If that's not for you, the old script will be back soon.

Re: JScript Panel

Reply #655
Thanks, They are both useful.
By the way, I noticed that the tagged track via Sync PlayCount Last.FM, is not displayed via Last.Fm Lover. In reverse order, it works fine.

Re: JScript Panel

Reply #656
The script version is a bit gimped in the sense it never checks for updates if you've loved tracks via other means. The only way to update it is by importing all loved tracks again.

The component always checks every time a track is played so that's another benefit in addition to fetching/updating playcounts.

Anyway, script restored, you can download this zip...

https://github.com/marc2k3/foo_jscript_panel/archive/refs/heads/develop.zip

and extract the contents of the component folder in to your user-components\foo_jscript_panel folder. Keep your dll because this zip does not contain it.

Re: JScript Panel

Reply #657
It works. Thanks again!

Re: JScript Panel

Reply #658
I've been messing around modding the DarkOne theme by Tedgo and updating it for the latest version of JSP. I've removed lots of components that appeared on the foobar2000 troubleshooter and replaced ELPlaylist with JS Playlist. The old visualisations have been removed and replaced with foo_musical spectrum. Many view options have been removed and replaced with more JSP. If anyone wants to try it out, grab it here...

https://github.com/marc2k3/foo_jscript_panel/wiki/files/DarkOne.zip


Re: JScript Panel

Reply #660
Pretty much all included scripts with JSP require FontAwesome.

https://github.com/FortAwesome/Font-Awesome/blob/fa-4/fonts/fontawesome-webfont.ttf?raw=true

I'll update the readme in the zip.

edit: of course I assumed everyone was familiar with JS Playlist and that's why there is no playlist switcher - it's built in to the playlist itself. More instructions here...

https://github.com/marc2k3/foo_jscript_panel/blob/develop/component/samples/JS%20Playlist.txt

More bonus features include support for webp images in the album art panel AND playlist if you configure .webp in the main foobar2000 preferences. IIRC, wildcards won't pick it up.

Also, album art from radio streams can be displayed in the main panel when using fb2k v1.6.6 or later and of course a streaming site that provides it. I know of radioparadise which is mostly dad rock. There must be more out in the wild.


Re: JScript Panel

Reply #662
I think you have to browse for it manually as relative paths aren't supported. You might have to click where it should be, select Options and deselect Custom bitmap. Now select it again which will open a browse dialog. It's inside DarkOne2021\images (QS.bmp)


Re: JScript Panel

Reply #664
All scripts use the main foobar2000 preferences for album art (File>Preferences>Display>Album art>Front Cover>Search patterns). I try and mirror the behaviour you can expect in any normal DUI/CUI panel.

edit: there is one exception to that. I don't like the selection viewers option in the Preferences so my album art panel always tracks the playing item or selected item if playback is stopped. Using the right click menu, it can be configured to always follow the playlist selection regardless of what is playing. Showing library selections in my panels generally isn't supported but that's my choice on script writing only. The component has always had full support for those who want to create their own. (all inherited from WSH panel mod)


 




Re: JScript Panel

Reply #670
v2.7.1 https://github.com/marc2k3/foo_jscript_panel/releases

- `IMetadbHandle` `GetFileInfo` now takes an optional `full_info` argument which defaults to `false` if omitted to preserve original behaviour. If `true` the file is opened for reading and you can access tags that contain large chunks of text such as `LYRICS` which usually have their contents hidden behind the period character ever since `foobar2000` `v1.3` was released. When `full_info` is `true`, the return value must be checked before using. See docs for full details.
- Because of the above change, the `Text Reader` sample has been renamed to `Text Display` because it now can display the content of tags in full in addition to the previous text file read mode it had before. Use the right click menu to switch modes, customise the file path or tag etc.
- Restore `Last.fm lover` sample which was removed without notice in `v2.7.0`. Apologies for any inconvenience.
- Fix various `JS Playlist` bugs.

edit: I've also updated the DarkOne theme from a few posts ago with the new component. It also fixes a few other bugs.

https://github.com/marc2k3/foo_jscript_panel/wiki/files/DarkOne.zip

Anyone already using this should not extract the configuration folder as it would overwrite any customisations made to the playlist settings, custom buttons, other panel settings etc.

Re: JScript Panel

Reply #671
Could the Spectrogram Seekbar be configured to display a spectrogram of the selected track if no track is playing?
Similar to the behavior of Waveform Minibar mod.


Re: JScript Panel

Reply #673
v2.7.2 https://github.com/marc2k3/foo_jscript_panel/releases

- Add `IThemeManager` `GetThemeColour`. See docs and the `basic\SimpleThemedButton` sample which now works properly with the `Windows` high contrast themes instead of having a fixed text colour which could clash with the background.
- The `spectrogram seekbar` and `track info + spectrogram seekbar + buttons` samples now display the cached spectrogram image for the selected track when playback is stopped. Existing users will need to update the scripts in their panels from the [Configuration Window](https://github.com/marc2k3/foo_jscript_panel/wiki/Configuration-Window) `Samples` menu.

Re: JScript Panel

Reply #674
I made a small mistake updating the spectrogram seekbar scripts by not adding the callback that handles the playlist being switched when playback is stopped. The files bundled with the component have been updated but for anyone who already downloaded v2.7.2 and are using the updated script already, just add this inside your panel.

Code: [Select]
function on_playlist_switch() {
seekbar.item_focus_change();
}