Skip to main content

Topic: foo_infobox (Read 141110 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • /\/irana
  • [*][*][*]
foo_infobox
I have written a small plugin for enhancing the fuction of show file info box.

Here is the screenshot


Edit1: copy the post on "Third-party plugins" thread
Component name - foo_infobox
Component type (appropriate section) - General
Which foobar2000 version the component works with - 0.7.1
Short description of the component - A substitute for the build-in file info box
Compile date - October 18, 2003
Download link - http://pelit.koillismaa.fi/plugins/general.php#8
Screenshot link - foo_infobox.PNG

 
Some explanation about "Override codepage" option:
If you check that option,then you can select any codepage installed in your system.foo_infobox will convert all meta tags from ANSI to UTF-8 using selected codepage,instead of using system default codepage.
It is useful for reading some tags not stroed in Unicode correctly.

Edit:updated download link to new version
  • Last Edit: 19 February, 2004, 12:00:45 PM by /\/irana

  • neoufo51
  • [*][*][*][*]
foo_infobox
Reply #1
Now this is a worthy replacement...

Well done.

Edit: After playing around with this new box, I can honestly say that this should be the next official info box for Foobar2000. Seriously, you should contact Peter and have him take a look at this.  Flexible and very functional. The ONLY thing I would ask to make it perfect is to make it resizeable and keep its size over many uses.
  • Last Edit: 19 October, 2003, 05:46:28 AM by neoufo51

  • sld
  • [*][*][*][*][*]
foo_infobox
Reply #2
It's nice. Quite a bit more intuitive than the current one.

What do the options 'change focus' and 'follow cursor' do? Would they actually be relevant in the file info box?

Edit:
Answer: 'Change focus' synchronises the selected song in the playlist to the file displayed in the info box and 'Follow cursor' synchronises the file info box display to the song selected in the playlist. Yes, very relevant indeed.
  • Last Edit: 19 October, 2003, 06:00:23 AM by sld

  • kalmark
  • [*][*][*][*][*]
foo_infobox
Reply #3
Some of my files give an error when opening the "special" window.

ERROR (CORE) : Illegal operation:
Code: C0000005h, flags: 00000000h, address: 77C336D0h
Access violation, operation: read, address: 00000000h
Module: "msvcrt", loaded at 77C00000h - 77C53000h
Symbol: "strcmp" (+00000010h)
This is the first crash logged by this instance.
Code bytes:
77C336B0h:  FD 5E 5F 5B C3 8D 42 FC 5E 5F 5B C3 CC CC CC CC
77C336C0h:  8B 54 24 04 8B 4C 24 08 F7 C2 03 00 00 00 75 3C
77C336D0h:  8B 02 3A 01 75 2E 0A C0 74 26 3A 61 01 75 25 0A
77C336E0h:  E4 74 1D C1 E8 10 3A 41 02 75 19 0A C0 74 11 3A
Crash info dumped to failure.txt in your program directory.
If you are reading this, you should restart the program as soon as possible to avoid further trouble, and report this exact message to the developer.
ERROR (CORE) : error executing menu command: "Show file info (special)"

Don't know what could be the difference, but these files can be opened in text mode by  Total Commander and give ASCII-DOS charset mode in default, while the "good" files are ANSI-Windows by default.  I don't see any other differences, not even in the tag types, APEv2 and ID3v1 are present only in these files.

I Use WinXP SP1 if it's important.

EDIT: OK, encountered some other files with ID3v2 tags, and they give the same error. Maybe the other files once had ID3v2, which got stripped, don't know.
BTW, I use kode54's plugin to read ID3v2 tags, no writing to them , though.
  • Last Edit: 19 October, 2003, 06:17:35 AM by kalmark
Life is Real...
(But not in audio :) )

  • kode54
  • [*][*][*][*][*]
  • Administrator
foo_infobox
Reply #4
Slight problem with the group boxes. (image)

Stretch the tops of both boxes up by one point and all is well. :B

EDIT: Hmm, from a bit of tweaking, I end up with the final positions/sizes of 205x119 at 3,29 and 153x158 at 212,29. Or, in resource code, sort of:

Code: [Select]
CONTROL "Standard meta fields", -1, BUTTON, BS_GROUPBOX | WS_CHILD | WS_VISIBLE, 3, 29, 205, 119
CONTROL "Technical info", -1, BUTTON, BS_GROUPBOX | WS_CHILD | WS_VISIBLE, 212, 29, 153, 158
  • Last Edit: 19 October, 2003, 06:48:12 AM by kode54

  • /\/irana
  • [*][*][*]
foo_infobox
Reply #5
@kode
Fixed and uploaded,thanks

@kalmark
I don't know what's the problem.In fact foo_infobox doesen't read tags from files directly.It load file info by querying the info from database,or asking database to reload info from file, then querying database
If you upload a file causing the error,I could look into it.

  • neoufo51
  • [*][*][*][*]
foo_infobox
Reply #6
Got the new dll, but its now saying that XP doesnt see if as a valid windows image.  It doesnt load at all now.

foo_infobox
Reply #7
this crash appeared (after approx a minute), when i installed infobox

Code: [Select]
Illegal operation:
Code: C0000005h, flags: 00000000h, address: 00000000h
Access violation, operation: read, address: 00000000h
Module: "foobar2000", loaded at 00400000h - 0044E000h
Additional info: menu_manager::run_command() / "Playback/Stop"
This is the first crash logged by this instance.
Version info:
foobar2000 v0.7.1
UNICODE


i thought: shit happens, but then in the next instance this happened

Code: [Select]
Illegal operation:
Code: C0000005h, flags: 00000000h, address: 77F73905h
Access violation, operation: write, address: 00000001h
Module: "ntdll", loaded at 77F40000h - 77FEE000h
Symbol: "RtlSizeHeap" (+000005EFh)
Additional info: service creation failure
This is the first crash logged by this instance.
Code bytes:
77F738E5h:  14 56 E8 4E 92 01 00 0F B7 06 29 43 28 80 65 14
77F738F5h:  00 57 53 E8 7C F6 FF FF 8B 47 08 8B 4F 0C 3B C1
77F73905h:  89 01 89 48 04 75 21 66 8B 07 66 3D 80 00 73 18
77F73915h:  0F B7 C8 8B C1 83 E1 07 B2 01 C1 E8 03 D2 E2 8D
Version info:
foobar2000 v0.7.1
UNICODE


i deleted the plugins and everything runs smooth again. i can't reproduce anything so far, but i thought the error logs might help you somehow. they don't for me

  • /\/irana
  • [*][*][*]
foo_infobox
Reply #8
Quote
Got the new dll, but its now saying that XP doesnt see if as a valid windows image.  It doesnt load at all now.

sorry:blink:
reuploaded,try again

  • /\/irana
  • [*][*][*]
foo_infobox
Reply #9
It seem there are many bugs in this plugin.
I haven't done many test.Now I don't have enough time to debug it and my code skill is very bad.
So try this plugin on your own risk.
  • Last Edit: 19 October, 2003, 08:33:06 AM by /\/irana

  • /\/irana
  • [*][*][*]
foo_infobox
Reply #10
v1.2.4 uploaded
Just fixed a fool bug causing the crack
Please redownload the dll

  • guruboolez
  • [*][*][*][*][*]
  • Members (Donating)
foo_infobox
Reply #11
Is there any way to sort meta fields [other] by display name (alphabetic)? I have a lot of personnal field, and finding the good one is not very fast with the actual sorting (physical, I suppose) system.


  • /\/irana
  • [*][*][*]
foo_infobox
Reply #12
v1.2.5 uploaded,version num increase so fast 

@kalmark and ilikedirtthe2nd
I think I have found what cause the problem before.
Please download new version,hope this had fixed the crash

@guruboolez
I can't open the image,damning proxy server 
I have see what you mean.I suppose I could do this in the future,but not promise 

  • guruboolez
  • [*][*][*][*][*]
  • Members (Donating)
foo_infobox
Reply #13
Small suggestion (but don't take this one in count if you don't find it useful for most people): a way to pop-up COMMENT field.
I've on some files a lot of informations, and the small defined box is too small for read them with comfort.
On some other files (opera for exemple), COMMENT field is heavily formatted, with tabs and large lines. For exemple :

Code: [Select]
                                  Mitridate, Re di Ponto
                                  Opera seria, K87/74a
         Libretto : Vittorio Amadeo Cigna-Santi, dalla tragedia di Jean Racine



Mitridate, re di Ponto........................................... Guiseppe Sabbatini
(King of Pontus – Roi du Pont)

Aspasia, promessa sposa di Mitridate............................. Natalie Dessay
(bethrothed to Mitridate – fiancée de Mithridate)

Sifare, figliuolo di Mitriate.................................... Cecilia Bartoli
(son of Mitridate – fils de Mithridate)


The small box of your nice component is just killing this formatting. Therefore, it would be nice for me to keep a way to pop-up some fields (at least the COMMENT one) with this component.

But don't feel obliged to do it: I can live with old tagging visualisation window, as long as foobar2000 will keep this last one.
  • Last Edit: 19 October, 2003, 09:52:07 AM by guruboolez

  • kalmark
  • [*][*][*][*][*]
foo_infobox
Reply #14
Quote
v1.2.5 uploaded,version num increase so fast 

@kalmark and ilikedirtthe2nd
I think I have found what cause the problem before.
Please download new version,hope this had fixed the crash

OK, crash fixed, thank you!

Great plugin, BTW, finally some way to use the infobox in an easy&stylish way! 
Life is Real...
(But not in audio :) )

  • /\/irana
  • [*][*][*]
foo_infobox
Reply #15
V1.2.6 uploaded
Now it is resizeable.

@guruboolez
I have added a button for comment,click it will popup a detail dialog.Hope this will fit your needed.

  • guruboolez
  • [*][*][*][*][*]
  • Members (Donating)
foo_infobox
Reply #16
For me, it's perfect. Thank you very much.
There's maybe a better or simply complementary way to do it: add an option to allow the user to see ALL fields embedded in a file in "other meta" box. Therefore, if some people need to pop-up another common fields, they can do it.

But for my needs, your system is simply ingenious 


Some questions:
what mean "change focus" and "follow cursor" ?
And what is "override codepage" intended for ?
Thanks

foo_infobox
Reply #17
Quote
Some questions:
what mean "change focus" and "follow cursor" ?
And what is "override codepage" intended for ?

Change focus: choose if when you click on "previous" or "next" in the file info box, the cursor moves or not in the playlist.
Follow cursor: choose if the informations in the file info box must be updated when the cursor is moved to another track in the playlist.

  • guruboolez
  • [*][*][*][*][*]
  • Members (Donating)
foo_infobox
Reply #18
Merci very much
  • Last Edit: 19 October, 2003, 12:42:24 PM by guruboolez

  • /\/irana
  • [*][*][*]
foo_infobox
Reply #19
Quote
Some explanation about "Override codepage" option:
If you check that option,then you can select any codepage installed in your system.foo_infobox will convert all meta tags from ANSI to UTF-8 using selected codepage,instead of using system default codepage.
It is useful for reading some tags not stroed in Unicode correctly.


quote from sld
Quote
What do the options 'change focus' and 'follow cursor' do? Would they actually be relevant in the file info box?

Edit:
Answer: 'Change focus' synchronises the selected song in the playlist to the file displayed in the info box and 'Follow cursor' synchronises the file info box display to the song selected in the playlist. Yes, very relevant indeed. 


Edit:nyarlathotep faster
  • Last Edit: 19 October, 2003, 12:46:36 PM by /\/irana

  • /\/irana
  • [*][*][*]
foo_infobox
Reply #20
v1.2.6.1 uploaded
No more change,only fixed the flicker when opening the dialog

  • Luxus
  • [*][*]
foo_infobox
Reply #21
great plugin ..  i love it... i hope this replace the standard version

  • neoufo51
  • [*][*][*][*]
foo_infobox
Reply #22
Hmmmm... getting the "invalid windows XP image" crash again upon loading of foobar. Plugin won't load at all with 1.2.6.1.

INFO (CORE) : startup time: 4466 ms
ERROR (CORE) : Failed to load DLL: foo_infobox.dll, reason: Unable to load dll.
  • Last Edit: 19 October, 2003, 11:10:40 PM by neoufo51

  • /\/irana
  • [*][*][*]
foo_infobox
Reply #23
Quote
Hmmmm... getting the "invalid windows XP image" crash again upon loading of foobar. Plugin won't load at all with 1.2.6.1.

INFO (CORE) : startup time: 4466 ms
ERROR (CORE) : Failed to load DLL: foo_infobox.dll, reason: Unable to load dll.


Hmm...work well here
It's weird.I change nothing but one line about displaying the dialog.I think that code doesn't run when loading dll.
It seem only you have that problem.
Did all version can't be loaded,or only some of them?
I compressed the dll using upx.I don't know if this casue the problem.
I have uploaded a uncompressed dll.You can try it.

  • /\/irana
  • [*][*][*]
foo_infobox
Reply #24
v1.2.7 uploaded

download link:foo_infobox.dll

Add an dropdown listbox.Now you can choose how it work when clicking "previous" or "next' button,
save changes,don't save changes or popup a window prompting you

screenshot

If you didn't like new version,you can download v1.2.6 from here
  • Last Edit: 21 October, 2003, 09:34:03 AM by /\/irana