Skip to main content

Topic: Foo_uie_albumart (Read 1051346 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • rexy
  • [*][*][*]
Foo_uie_albumart
Reply #50
Quote
Quote
Right now, I'm trying to fix the special characters thing. It seems that even with a literal with special characters, _tfopen fails. Anyone know of a practical alternative that would work with special characters and would just return a FILE*?[a href="index.php?act=findpost&pid=253894"][{POST_SNAPBACK}][/a]
Quote
static FILE * streamio_open(const char * path,const char * flags); // if for some bloody reason you ever need stream io compatibility, use this, INSTEAD of calling fopen() on the path string you've got; will only work with file:// (and not with http://, unpack:// or whatever)
If you can get around the limitation of needing a FILE *, you can also use the regular foobar2000 file/reader API, which would enable reading from inside archives, if foo_unpack or a similar component is installed.

Quote
I thought of what plugins I have recently installed, and removing them one by one, narrowed it down to yours.[a href="index.php?act=findpost&pid=253962"][{POST_SNAPBACK}][/a]
rexy, you should release any used metadb_handle in your initquit::on_quit/on_system_shutdown handlers. If you do it later, foobar2000 will report a metadb_handle leak.
[a href="index.php?act=findpost&pid=253965"][{POST_SNAPBACK}][/a]

Thanks. Special characters work now and no more handle leaks... I also forgot to destroy my background brush object last time.

Quote
I want to give in fixed with and hight and maybe add an visual frame (or border how you want to call it) is this hard to code into?

Also would it be possible with the current panels structure to make an auto hiding function in the panel, because no album art in the folder, it leaves an ugly space in my sidebar.

I'm just thinking of ways to make it look better, next to that I give you 2 thumbs up and a hug for this great panel
[a href="index.php?act=findpost&pid=253988"][{POST_SNAPBACK}][/a]

I guess I can add a border selection. As for auto-hiding, does any ui_extension master coder (foosion?) know if there's a message I can send to columns_ui telling it to hide the sidebar? I guess I can tell my component to go to the menu and execute the hide thing, but I was wondering if there was a "proper" way. Anywho, you can set a default image to take up the sapce if you want to.


Quote
Yes, finally! Very nice!

Pretty please add the option: "fit image to panel". So it takes the dimensions of the panel, regardless if its not the aspect ratio of the original jpeg
[a href="index.php?act=findpost&pid=253989"][{POST_SNAPBACK}][/a]

Thanks. I was pretty sure everyone would want to keep aspect ratio so I didn't bother making it optional, but I guess I was wrong. Prolly get implemented in next version as it's pretty easy to add.

Quote
I really like the way the list of sources work. But, wildcard support would make it perfect, and save me alot of work as well. I have always just dragged and dropped images from e.g. Walmart and Amazon and they are named e.g. "0082876511082_500X500.jpg". Hence they would all need to be renamed.

Up until now I've been using foo_looks for albumart, and it's wildcard support made the drag'n'drop above, work just fine, and it also made it pretty easy to always pick the front cover when there were several to choose from (e.g.: *front*.jpg).

Keep up the good work! 

Edit: grammar
[a href="index.php?act=findpost&pid=253993"][{POST_SNAPBACK}][/a]

Thanks. I'll try adding the whole wild card/genral expression thing soon. For getting covers, however, you can use this tool Tomacco_Boy posted. It is exactly what I've been using and it simply adds covers as folder.jpg if you tell it to set up covers for WMP.
  • Last Edit: 15 November, 2004, 08:42:08 AM by rexy

  • foosion
  • [*][*][*][*][*]
  • Moderator
Foo_uie_albumart
Reply #51
Quote
As for auto-hiding, does any ui_extension master coder (foosion?) know if there's a message I can send to columns_ui telling it to hide the sidebar? I guess I can tell my component to go to the menu and execute the hide thing, but I was wondering if there was a "proper" way. Anywho, you can set a default image to take up the sapce if you want to.[a href="index.php?act=findpost&pid=254018"][{POST_SNAPBACK}][/a]
The upcoming revision of the UI extension API will allow this. For more information on this, please see the discussion about the ui_extension API in the dev forum.
http://foosion.foobar2000.org/ - my components for foobar2000

  • free
  • [*]
Foo_uie_albumart
Reply #52
thx now it's correctly work for me
Russian foobar2000 site: www.foobar2000.h12.ru
---
Splinter

  • upNorth
  • [*][*][*][*][*]
Foo_uie_albumart
Reply #53
@rexy: There is a bug in the sources list. From time to time names gets mixed up when they are moved around, and you get two entries with the same name. Meaning  name doesn't correspond to value for one of them. It can be corrected again by moving them around some more

I don't know how to explain it any better, but my guess is that you copied this from one of the plugins that comes with the SDK. At least I did that myself, and got the same bug (don't remember how much I modified it though).


Btw: I have tried the "album cover downloader", and it was pretty good. Only major problem is that it doesn't recognise the presence of covers, unless they are named "folder.jpg". In my case that means I'll end up downloading cover for albums that has already got one, just not with the right name. But, I guess I will start using it for albums where covers are actually missing. Would be nice if it could use Walmart though, as they've got high quality images.

  • kalmark
  • [*][*][*][*][*]
Foo_uie_albumart
Reply #54
Quote
@rexy: There is a bug in the sources list. From time to time names gets mixed up when they are moved around, and you get two entries with the same name. Meaning  name doesn't correspond to value for one of them. It can be corrected again by moving them around some more
[a href="index.php?act=findpost&pid=254025"][{POST_SNAPBACK}][/a]

I wanted to report this too but my net was dead for a while 

Good job rexy, nice plugin!!!
Life is Real...
(But not in audio :) )

  • EZ-man
  • [*]
Foo_uie_albumart
Reply #55
I have put this plugin in components folder.
When I run fb2k, it doesn't show any errors.
But it also doesn' work...

I'm using Windows XP SP1 Chinese Traditional version.

  • esa372
  • [*][*][*][*]
  • Members (Donating)
Foo_uie_albumart
Reply #56
Quote
I have put this plugin in components folder.
When I run fb2k, it doesn't show any errors.
But it also doesn' work...
Same here.
(XP-SP2, P4-2.8GHz)
Clowns love haircuts; so should Lee Marvin's valet.

  • desigrid
  • [*][*]
Foo_uie_albumart
Reply #57
Great UIE rexy!

Though I've a similar request for foo_uie_albumart as I had for foo_uie_trackinfo . Besides have the option to either follow cursor or not, could you add a somewhat intermediary option that will turn off follow cursor when a track is currently playing and to turn it on when no track is playing? i.e. if a track is playing, album art of currently playing track is displayed and it is not affected by the playlist focus; if no track is playing, album art of currently selected track is displayed.

  • foosion
  • [*][*][*][*][*]
  • Moderator
Foo_uie_albumart
Reply #58
Problem 1 (crash): Transfering the album art panel from one host to another crashes foobar2000.

How to reproduce: add album art panel to regular sidebar, then try to add it to a panel stack instance.

Examples of how to do this correctly can be found in my foo_history/foosion_helpers source and in Phi's foo_uie_trackinfo (perhaps also in one of musicmusic's examples).

Problem 2 (glitch): The labels in the sources list are displayed wrong after adding one or more entries, like some entries appearing twice or being displayed in the wrong order. Double-clicking opens the expected entry.

Both tested with foo_uie_albumart 0.033.
  • Last Edit: 15 November, 2004, 10:12:17 AM by foosion
http://foosion.foobar2000.org/ - my components for foobar2000

  • koach
  • [*]
Foo_uie_albumart
Reply #59
Quote
I have put this plugin in components folder.
When I run fb2k, it doesn't show any errors.
But it also doesn' work...

I'm using Windows XP SP1 Chinese Traditional version.
[a href="index.php?act=findpost&pid=254032"][{POST_SNAPBACK}][/a]

Maybe because of doublebyte character such as Chinese or Japanese.

Default setting doesn't seem to consider such a character, so you might need to change $len() function to $len2() in the string in the top of "Sources for album art images" config.

Sorry for my bad English, I hope it helps.

  • sleepyboy
  • [*]
Foo_uie_albumart
Reply #60
I found another method to solve this problem:
preferences->Display->Double-width characters in title formatting
  ->chose "ignore"  then it will be ok 
Another question: My foobar has crashed 2 times since I used this plug-in, and each time all playlists bihind the active playlist would been destroyed after I restarted foobar, so strange thing 

Sorry for my bad English too 

Quote
Quote
I have put this plugin in components folder.
When I run fb2k, it doesn't show any errors.
But it also doesn' work...

I'm using Windows XP SP1 Chinese Traditional version.
[a href="index.php?act=findpost&pid=254032"][{POST_SNAPBACK}][/a]

Maybe because of doublebyte character such as Chinese or Japanese.

Default setting doesn't seem to consider such a character, so you might need to change $len() function to $len2() in the string in the top of "Sources for album art images" config.

Sorry for my bad English, I hope it helps.
[a href="index.php?act=findpost&pid=254051"][{POST_SNAPBACK}][/a]
  • Last Edit: 15 November, 2004, 11:10:31 AM by sleepyboy

  • upNorth
  • [*][*][*][*][*]
Foo_uie_albumart
Reply #61
Feature request:
Option to refresh image for the playing track, to avoid the current need to start it over.

With foo_looks I used a simple "pause then play" to update it, so maybe it could be triggered by a on_playback_starting() callback or something.

Alternatively you could just add a "refresh" entry to the context menu.

  • EZ-man
  • [*]
Foo_uie_albumart
Reply #62
Finally, I found a problem from component libaries list.
Code: [Select]
File name:
foo_uie_albumart.dll

Reason:
Unable to load DLL.

Maybe I need to find the DLL by myself

My English is no good,either 
  • Last Edit: 15 November, 2004, 11:58:42 AM by EZ-man

  • reardon
  • [*][*][*]
Foo_uie_albumart
Reply #63
Quote
Version 0.03a added.

@reardon: How exactly does it store the cover? Is it a tag that has the file's adress? If so, then it is now supported with the new version. Otherwise, is it simply binary data within a tag?... do you know where I may find specifications about the standart use of covers in tags? I may consider implementing this (I might not implement it though).


Check here: http://louhi.kempele.fi/~skyostil/projects/albumart/

It seems to be in the APIC tag for MP3 (ID3v2) or in COVR tag for AAC.  I don't know the exact format from there, but I believe you can dig it out of the python sources.

I know a lot of people here simply want file-based referals, but I believe that embedded images are de facto more popular (if you use more than a PC to play music, it is basically the only option).  And iTunes is just making even more popular method.

+Reardon

  • EZ-man
  • [*]
Foo_uie_albumart
Reply #64
Yeah! Finally I solve my problem!
Now it work perfect! 
And it's very nice!
Thanx a lot 
  • Last Edit: 15 November, 2004, 02:25:51 PM by EZ-man

  • Duble0Syx
  • [*][*][*][*]
Foo_uie_albumart
Reply #65
I've run into a problem.  If my covers are all in one place with a %artist% - %album%.jpg naming and an album has a '?' in the name how would I allow the cover to be shown since windows can't have question marks in filenames?  Example: The album "Hello? Is This Thing On?" by !!!.  The tags has question marks, but a .jpg of the cover cannot be named like that.  Is there a workaround?  Other than that I'm loving this.

  • krazy
  • [*][*][*][*]
Foo_uie_albumart
Reply #66
Quote
Just thought this would compliment your work rexy.

http://louhi.kempele.fi/~skyostil/projects/albumart/

Its an album cover downloader, and i know im not the only one who'll find this very useful indeed.
[a href="index.php?act=findpost&pid=253999"][{POST_SNAPBACK}][/a]

Cheers! I wasn't really into the whole album art thing, but this tool is great and it's cool to have some pretty pictures to look at when playing with foobar

Thanks for the plugin rexy!

  • upNorth
  • [*][*][*][*][*]
Foo_uie_albumart
Reply #67
Quote
I wasn't really into the whole album art thing, but this tool is great and it's cool to have some pretty pictures to look at when playing with foobar [a href="index.php?act=findpost&pid=254085"][{POST_SNAPBACK}][/a]
I think its nice to be able to relate a cover to each album. At least that's what I started to miss after years using my computer for playback.

@EZ-man: Have you had a look at this panels config in preferences? There are some resize options there.


@Duble0Syx: You can try replacing such characters (e.g. '?') with $replace().
If foobar has named your files, you probably need:
Code: [Select]
$replace(%artist% - %album%,?,_).jpg

If not, maybe this will work:
Code: [Select]
$replace(%artist% - %album%,?,).jpg

  • NEMO7538
  • [*][*][*][*][*]
  • Developer
Foo_uie_albumart
Reply #68
Nice plugin ! Congratulations.

Some users of this plugin might be interested with this "default"  cover.
  • Last Edit: 15 November, 2004, 01:17:19 PM by NEMO7538

  • EZ-man
  • [*]
Foo_uie_albumart
Reply #69

Here's a wrong word in default setting.

"deafult.jpg" should be "default.jpg"
  • Last Edit: 15 November, 2004, 02:24:34 PM by EZ-man

  • Zurman
  • [*][*][*]
Foo_uie_albumart
Reply #70
Quote
Nice plugin ! Congratulations.

Some users of this plugin might be interested with this "default"  cover.
[a href="index.php?act=findpost&pid=254099"][{POST_SNAPBACK}][/a]

Adopted !

Foo_uie_albumart
Reply #71
hi,

I'm using foobar with columnsUI 1.2 beta 3 (with azrael config). I tried your plugin, but I can't find a switch or button or whatever to switch on the panel. I can configure the plugIn, but I see no panel. A 'folder.jpg' is existing.

any ideas?

thx!

Foo_uie_albumart
Reply #72
Hi!

How about this crazy idea: Use some sort of "Get cover using XYZ" as context menu when clicking on a songs name. This will initiate a web search (amazon.whatever / configuration) and extracts the cover image and saves it to the appropriate folder... Something similar like foo_freedb already does. The next step would be "mass"-downloading covers for all selected albums / songs in the playlist (like masstagging), but with some intelligence: If there already is a folder.jpg / png jump to the next song etc.

The advantage within foobar would be using tags instead of the filename > higher accuracy...

This would be VERY nice. The "Album Cover Art Downloader" is a cool program, but if this functionality would be part of foobar (uie_albumart) that would rock - big time.


Anyways: I love your component!
Moon
"If there 's no soul in the computer's music, it's because nobody put it there." - Björk.

  • kalmark
  • [*][*][*][*][*]
Foo_uie_albumart
Reply #73
Quote
The "Album Cover Art Downloader" is a cool program
[a href="index.php?act=findpost&pid=254144"][{POST_SNAPBACK}][/a]

Well yeah...but neither my favourite musical style nor my directory naming scheme is "popular" enough to let the program do stuff on it's own...Surprisingly, amarok from kde.org (I linked to their project page before in this thread) can DL the correct album art,  and from amazon...  Though they use tags information to "guess" the album name.
(Sadly, amarok is for linux only, and Linux can't write NTFS so the covers won't come here from there)
(They store images locally cached with "strange" filenames too)
  • Last Edit: 15 November, 2004, 04:40:13 PM by kalmark
Life is Real...
(But not in audio :) )

  • Duble0Syx
  • [*][*][*][*]
Foo_uie_albumart
Reply #74
Quote
(Sadly, amarok is for linux only, and Linux can't write NTFS so the covers won't come here from there)
(They store images locally cached with "strange" filenames too)
[a href="index.php?act=findpost&pid=254149"][{POST_SNAPBACK}][/a]

Well, you could always set up some kind of FTP/NFS/SMB server to transfer the files.  Samba is easy enough, i mirror all my music on a read-only partition on my linux box.  Copied via smbfs.
Amarok pissed me off when I was tyring to compile it.  I probably should have checked for a binary.