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.
Recent Posts
1
foobar2000 mobile / Re: 1.4 - almost all playlists say "untitled"
Last post by Peter -
I'm afraid this is a side effect of removal of support for Android filesystem sandbox.

The music folders need re-adding and the playlists need re-creating.

I understand that re-creation of playlists might take a lot of work, so please don't delete them yet. I simply overlooked the issue of playlists referencing old locations, I will investigate a workaround to fix your playlists automatically in the next update
3
3rd Party Plugins - (fb2k) / Re: JScript Panel script discussion/help
Last post by eurekagliese -
Good to know you got it working, but if I'm not mistaken, all changes made in the JS Sample directories would be overwritten upon update.
Anyway, here's my newbie attempt at a text reader with album art blur code.
We could change the blur radius and the overlay shade here.
Code: [Select]
// ==PREPROCESSOR==
// @name "Text Display + Album Art Blur"
// @author "marc2003"
// @import "%fb2k_component_path%helpers.txt"
// @import "%fb2k_component_path%samples\js\lodash.min.js"
// @import "%fb2k_component_path%samples\js\common.js"
// @import "%fb2k_component_path%samples\js\panel.js"
// @import "%fb2k_component_path%samples\js\albumart.js"
// @import "%fb2k_component_path%samples\js\text_display.js"
// ==/PREPROCESSOR==

// https://jscript-panel.github.io/gallery/text-display/

var radius = 50;
var overlay = 180;

var g_img = null;
var g_metadb = null;
var g_info = '';

var panel = new _panel({ custom_background : true });
var albumart = new _albumart(0, 0, 0, 0);
var text = new _text_display(LM, 0, 0, 0);

var blur_img = null;

var ww = 0, wh = 0;

update_album_art();
StackBlur(radius);

panel.item_focus_change();

function update_album_art() {
if (g_img) g_img.Dispose();
g_img = null;
g_info = '';
g_metadb = fb.IsPlaying ? fb.GetNowPlaying() : fb.GetFocusItem();
if (g_metadb) {
g_img = g_metadb.GetAlbumArt(); // omitting the type defaults to front
if (g_img) {
blur_img = g_img.Clone();
blur_img.StackBlur(radius);
}
}
window.Repaint();
}

//
function StackBlur(radius) {
if (blur_img) blur_img.Dispose();
blur_img = g_img.Clone();
g_img.StackBlur(radius);
}
//

function on_colours_changed() {
panel.colours_changed();
text.refresh(true);
//
window.Repaint();
}

function on_font_changed() {
panel.font_changed();
text.refresh(true);
}

function on_item_focus_change() {
panel.item_focus_change();
//
if (!fb.IsPlaying) update_album_art();
}

function on_metadb_changed() {
albumart.metadb_changed();
text.metadb_changed();
}

function on_mouse_lbtn_dblclk() {
if (g_metadb) g_metadb.ShowAlbumArtViewer(0);
}

function on_mouse_lbtn_up(x, y) {
text.lbtn_up(x, y);
}

function on_mouse_move(x, y) {
text.move(x, y);
}

function on_mouse_rbtn_up(x, y) {
return panel.rbtn_up(x, y, text);
}

function on_mouse_wheel(s) {
text.wheel(s);
}

function on_paint(gr) {

panel.paint(gr);

var bg = window.IsDefaultUI ? window.GetColourDUI(1) : window.GetColourCUI(3);
gr.Clear(bg);
    if (g_img) {
        _drawImage(gr, blur_img, 0, 0, panel.w, panel.h, image.crop);
}

    _drawOverlay(gr, 0, 0, panel.w, panel.h, overlay);
text.paint(gr);

}

// get notified of album art changes when listening to a supported stream
function on_playback_dynamic_info_track(type) {
if (type == 1) update_album_art();
// type 0 is metadata which we're not interested in
}

function on_playback_new_track() {
panel.item_focus_change();
//
update_album_art();
}

function on_playback_pause() {
text.refresh();
}

function on_playback_stop(reason) {
text.refresh();
//
if (reason != 2) {
update_album_art();
}
}

function on_playback_time() {
text.playback_time();
}

function on_playlist_items_added() {
panel.item_focus_change();
}

function on_playlist_items_removed() {
panel.item_focus_change();
}

function on_playlist_items_reordered() {
text.refresh();
}

function on_playlist_switch() {
panel.item_focus_change();
//
if (!fb.IsPlaying) update_album_art();
}

function on_size() {
panel.size();
text.w = panel.w - (LM * 2);
text.h = panel.h;
text.size();

ww = window.Width;
wh = window.Height;
}
Preview
Spoiler (click to show/hide)
5
3rd Party Plugins - (fb2k) / Re: JScript Panel script discussion/help
Last post by Cosmik Vek -
It worked!
I added the new line to the JS file,
but as I am using multiple JScript panels that also displays the album cover,
they're all using that same "albumart" JS script file,
so obviously, (almost) all of the album covers got blurry.

So, to fix that,
I simply duplicated the JS file with a new name ("albumart+blur.js"), added in the StackBlur to it
and in the code for my "Text Display" panel, in the Preprocessor area,
I just changed the import path for the old "albumart" to reflect the new name for the new script just like so!
Code: [Select]
// @import "%fb2k_component_path%samples\js\albumart+blur.js"
After saving the script, it only applied the blur here, which is perfectly what I wanted!

Thanks for the help!
7
foobar2000 mobile / 1.4 - almost all playlists say "untitled"
Last post by sitarpits -
I got auto-updated to 1.4 build 783 and re-added my folders only to find that most but not all of the playlists I've created now have the playlist title at the top and are full of empty tracks listed as "untitled" that don't play ("playback error - track location not available"). Is there a remedy for this?
9
3rd Party Plugins - (fb2k) / Re: foo_coverflow_mod playlist friendly
Last post by Air KEN -
Thank you for your reply.

> Please, discard that Behaviour > Library actions are set to change the Cover Display or could the issue be related to the key mapping (Ctrl+0 to Ctrl+9)?

No, that's not it
The settings are the same as "foo_chronflow_mod".
Suddenly it's happening in version "v1.18.0 (foo_coverflow) (2023-08-18)".
Same symptoms on multiple PCs and multiple foobars

The Cover Display pattern that changes is not constant.







changed again.
Default configuration change > Compile (Compilation successful) > Appy > OK
Performing the operation every time.

10
Support - (fb2k) / Upgrade Foobar2000 without loosing playcount
Last post by kruji -
I want to upgrade my old foobar2000 (1.6.16) to 2.1 x64. As quite a few of the old components doesn't work with x64, I setup a new portable installation. However, old playcount stats are missing.

What is the best way (if at all) to upgrade from 1.x to 2.x (x64) without loosing playcount stats?
If possible, I would try to avoid storing these metadata in the audiofiles itself.