Skip to main content
Topic: Spider Monkey Panel (foo_spider_monkey_panel) (Read 69567 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #400
BTW I have noticed what could be a glitch on marc's Thumbs script. It's easy to reproduce.
Let's say %artist% = "Bryan Lee & The Jump Street Five"
WilB's bio nicely creates a folder called "Bryan Lee & The Jump Street Five" and downloads relevant album art.
However, marc's Thumbs creates a folder called "Bryan Lee & The Jump Street" and of course can't download any album art so the folder remains empty.
Can somebody confirm this ?

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #401
Bug reproduced. Those scripts used a 3rd party Javascript library called lodash and the way you supply arguments to one of the functions got changed when upgrading from the old version 3 used with JSP and the newer version 4 bundled with SMP

js\helpers.js line 197 replace

Code: [Select]
folder = folders.artists + _.truncate(a, 64);

with

Code: [Select]
folder = folders.artists + _.truncate(a, { length : 64 });



Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #402
I'll remember that other scripts may use those paths, but so far I'm only using Marc's Thumbs and WilB's bio.
Also, I imagine that when we update SMP, all edited sample scripts will get overwritten to defaults? So perhaps copy the edited samples folder elsewhere for use, or make note of the changes you made, I guess.

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #403
@snotlicker : thanks, it worked indeed :)

@anamorphic : yes, I have already copied the edited samples AND made note of changes on separate txt files, just in case ;)

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #404
I think I found another glitch :
If %artist% is empty but %composer% is filled, WilB's bio creates a %composer% folder and downloads info, but marc's Thumbs does nothing.
Any hints ?


Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #406
Hi,
would be SpiderMonkey able to capture metadata from online source, apply them to audio tags, and eventually transfer the cover to album folder? The similar task what Discogs plugin does, just for custom source. If that's possible, could I get a hint what functions to use for it. Also I'd appreciate an existing script previously made for the same purpose as a template, if some.

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #407
Hallo there,
I'm using (latest) foobar v.1.5.2. I have also SpiderMonkeyPanel, Biography and JScript Panel on latest version.
It was working properly, as it should since yesterday at the afternoon: I can't see either artist pictures nor pictures from covers.  I see only text (biography) but no pictures.
Any suggestions please?

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #408
I'm bumping this because it's been a month :
If %artist% is empty but %composer% is filled, WilB's bio creates a %composer% folder and downloads info, but marc's Thumbs does nothing. Any hints ?

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #409
https://github.com/TheQwertiest/smp_2003/blob/master/js/helpers.js#L628

If all your tags are single value, you could replace it with %artist% as that has automatic fallbacks built in...

https://wiki.hydrogenaud.io/index.php?title=Foobar2000:Title_Formatting_Reference#.25artist.25

If your tags are multi-value, you should use $meta to access the first value only...

Code: [Select]
$if2($meta(artist,0),$meta(composer,0))

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #410
Thank you. That worked indeed! My happiness is complete now :)

Yes, I totally get your code. I'm quite OK at Titleformat but I suck at JS. I only needed to find the right line(s) in the right file(s), so thank you for pointing this one out! I really appreciate.

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #411
New bug report, in helpers.js, line 511 :

Code: [Select]
		app.Namespace(10).MoveHere(file);

Code: [Select]
Error: Spider Monkey Panel v1.2.3 (Thumbs by marc2003)
app.Namespace is not a function

File: helpers.js
Line: 511, Column: 3

Stack trace:
  _recycleFile@helpers.js:511:3
  _thumbs/this.rbtn_up_done@thumbs.js:461:4
  _panel/this.rbtn_up@panel.js:142:5
  on_mouse_rbtn_up@<main>:49:9

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #412
That would be a component bug. For now you can replace that line of code with

Code: [Select]
_deleteFile(file)

This bypasses the recycle bin though - files get deleted for good.

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #413
I recently updated to 1.5.3 and have had a steady stream of crashes since. I can't really understand the reports, other than they seem to indicate SMP (and probably Marc's Thumb script)? (using v1.2.3)
Can anyone help me decipher these?

Code: [Select]
CRASH:
Error: Spider Monkey Panel v1.2.3 (Thumbs by marc2003)
CheckMenuRadioItem failed:
Index is out of bounds
File: thumbs.js
Line: 323, Column: 4
Stack trace:
  _thumbs/this.rbtn_up@thumbs.js:323:4
  _panel/this.rbtn_up@panel.js:85:4
  on_mouse_rbtn_up@<main>:49:9

Different CRASH
Error: Spider Monkey Panel v1.2.3 (Thumbs by marc2003)
DrawImage failed:
GdiPlus error: DrawImage failed with error (0x7): Win32Error
File: helpers.js
Line: 265, Column: 3
Stack trace:
  _drawImage@helpers.js:265:3
  _thumbs/this.paint@thumbs.js:92:23
  on_paint@<main>:58:2

different CRASH:
Error: Spider Monkey Panel v1.2.3 (Thumbs by marc2003)
DrawImage failed:
GdiPlus error: DrawImage failed with error (0x7): Win32Error
File: helpers.js
Line: 280, Column: 3
Stack trace:
  _drawImage@helpers.js:280:3
  _thumbs/this.paint@thumbs.js:136:23
  on_paint@<main>:58:2



Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #414
Code: [Select]
CheckMenuRadioItem failed:
Index is out of bounds

Pretty sure that's your fault for bypassing the available menu options and entering your own thumbnail size via the Properties dialog???

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #415
good lead - I do have one panel with custom thumb size. thank you, I'll see if that helps.

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #416
New bug report, in helpers.js, line 511 :
Code: [Select]
		app.Namespace(10).MoveHere(file);
It might be a casing error, try replacing `Namespace` with `NameSpace`.

PS: component development is still on-going, if anyone was wondering =) The new (major) feature is just too non-trivial and it gets me frustrated all the time >_<

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #417
@TheQwertiest : casing error indeed! 'NameSpace' worked perfectly. Thanks, and please note the correction for future releases. Thanks again.

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #418
PS: component development is still on-going, if anyone was wondering =) The new (major) feature is just too non-trivial and it gets me frustrated all the time >_<
I love your PS. Take care.

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #419
hit a crash. I think it's having issue with some high res large png images. foo_uie_albumart allows user to pick resolution resizing quality, not sure if it's this problem or just not happy with the type of png file(s)
Code: [Select]
File: helpers.js
Line: 287, Column: 1

Stack trace:
  _drawImage@helpers.js:287:1
  _thumbs/this.size/<@thumbs.js:55:6
  r@lodash.min.js:5:356
  Xe@lodash.min.js:67:63
  _thumbs/this.size@thumbs.js:54:5
  _thumbs/this.update@thumbs.js:483:3
  _thumbs/this.metadb_changed@thumbs.js:167:3
  on_metadb_changed@<main>:33:2
  _panel/this.item_focus_change@panel.js:11:4
  on_item_focus_change@<main>:25:2
Spider Monkey Panel v1.2.3 (Thumbs by marc2003): initialized in 698 ms
Opening track for playback: "D:\ISU\OST_CD.cue" / index: 11
Error: Spider Monkey Panel v1.2.3 (Thumbs by marc2003)
Out of memory: 1754042880/1073741824 bytes


overall I'm just looking for something that allows folder name with wildcard searching and allows multiple folders with cycling through all supported arts

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #420
I'm searching a playlist viewer that can be linked to a specific playlist like EsPlaylist. Is it possible with jsplaylist? I've tried but It seems auto-linked to the active playlist  :(

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #421
Hi.
Picture cannot be displayed with Microsoft Store foobar2000 (not foobar2000 mobile).
https://www.microsoft.com/store/apps/9PDJ8X9SPF2K
Text only.Biography, thumbs ...
Spider Monkey Panel and JScript Panel.

Thanks for the help.
SHURE SRH1840, SENNHEISER HD660S, Beyerdynamic DT 1990 PRO, HIFIMAN HE5se, Ultrasone Performance 880, AKG K712 PRO, Bowers & Wilkins P7, SONY MDR-1AM2, Bose QuietComfort 35 wireless, SENNHEISER HD 4.50BTNC (made a Upgrade/Balanced Cable by myself)

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #422
Hi, another question about Thumbs script :
I have noticed that downloaded images are often low-res, even when there are lots of hi-res images for the same artist on last.fm.
For some artists there are hundreds of images available, but the component just seems to pick the first ones.
Is there an option to either favor hi-res images, or the most upvoted ones, or to set a minimum res ?
If not, it would be a nice add-on. Thanks !

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #423
Look at this HTML and tell me which images are low/hi res. Thanks.


Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #424
Hi @snotlicker , I just asked if there was an option that I wouldn't know about, because there are tons of things I don't know about.
If it's not possible, then it's not possible, but there's no need to be ironic.

Also, since I'm not a dev, I don't know if SMP scripts can check downloaded files.
Maybe we could download an unknown pic, then once downloaded check its dimensions, and if it's too small, just trash it and download the next one. I don't know!
https://www.tutorialrepublic.com/faq/how-to-get-current-image-size-in-javascript.php

Thanks :)

 
SimplePortal 1.0.0 RC1 © 2008-2020