Browse By Art 4.9 [MM2]

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

MoDementia
Posts: 1321
Joined: Thu Jun 15, 2006 3:26 pm
Location: Geelong, Victoria, Australia

Post by MoDementia »

It might be just me but I get 2 x 10sec pauses during caching.

One at around 300 and the second around 1500 of 1600


Just a coincidence that nearly all the timers are 10secs long?
Teknojnky
Posts: 5537
Joined: Tue Sep 06, 2005 11:01 pm
Contact:

Post by Teknojnky »

Working well for me so far. Thumbs up!

I thought of an idea to think about...

It would be super awesome if for albums with missing album art (when you have them visible) to have a link to open a google art finder window and add the art without leaving the browse by art display.

While it may be trivial to click an album with missing art, it means a lot of navigating back and forth between browse by art and the albums, it does get a little tedious after a while.
Guest

Post by Guest »

I hope this hasn't been asked before but how can I sort they cover view so that artists albums are displayed in order of year ?

Do I need to change the script or is it a config thing ?

Cheers,
Brian.
MoDementia
Posts: 1321
Joined: Thu Jun 15, 2006 3:26 pm
Location: Geelong, Victoria, Australia

Post by MoDementia »

Just a little personalisation :)

Around line 1700

Code: Select all

    If Not (SDB.Player.CurrentSong Is Nothing) Then
      If SDB.Player.CurrentSong.ID = itm.ID Then
        If SDB.Player.isPlaying Then
          If SDB.Player.isPaused Then
            img = "<img src='pause.png'> "
          Else
            img = "<img src='play.png'> "
          End If
        Else
          img = "<img src='stop.png'> "
        End If
        gettrack = gettrack&"<a href=http://www.last.fm/user/MoDementia/?chartstyle=Wow>"
        gettrack = gettrack&"<img src=http://imagegen.last.fm/Wow/recenttracks/6/MoDementia.gif border=0 align='right'/></a>"
      Else
        img = "<img src='rem.png' onclick=remove("&pos&")> "
      End If
    Else
      img = "<img src='rem.png' onclick=remove("&pos&")> "
    End If
  End If
  gettrack = img&gettrack
End Function
or

Code: Select all

gettrack = gettrack&"<a href=http://www.last.fm/user/MoDementia/?chartstyle=Wow target="&""""&"_blank"&""""&">"
gettrack = gettrack&"<img src=http://imagegen.last.fm/Wow/recenttracks/6/MoDementia.gif border=0 align='right'/></a>"
[Edit]This works better.[/Edit]

Code: Select all

  If SDB.Player.CurrentSong.Album.ID = itm.Album.ID Then
   If (Right(track,2)+0) = Int(((ImageSize-35)/13)+0.5) Then
     gettrack = gettrack&"<a href=http://www.last.fm/user/MoDementia/?chartstyle=Wow>"
     gettrack = gettrack&"<img src=http://imagegen.last.fm/Wow/recenttracks/6/MoDementia.gif border=0 align='right'/></a>"
   End If
  End If
  gettrack = img&gettrack
End Function
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

@Peke - This is a good idea and will be in the next version! :)

@MoDementia - I will investigate these pauses and let you know.

@Teknojnky - This might mean a new version of GoogleArtFinder as well to make this a seamless link, but I like the idea so watch this space! :D

@Guest - I think you mean sort by year in the album node. If so, this is a second level of sort order which has not been implemented yet. It is on the to do list, but I need to decide how best to do it.

@MoDementia - That's a nice modification, very clever. I might do similar to my version of the script too, but I think it's too specific to include in the official release! :lol:
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
gtbuzz
Posts: 129
Joined: Mon Jul 18, 2005 11:09 am

Post by gtbuzz »

I'll preface this with what my goal is: I'd like to browse by cover art, even for some discs that I have burned (mainly like old soundtracks and holiday albums).

I skimmed the script and it appears that the old cache gets whipped out before the new cache is built. It would be very cool if the old cover is only replaced if a new one is put in the place. This would solve my problem, though it could take awhile, because I could rescan for each disc and they would stay in place. Currently, if I do one disc the cache will be deleted when I do the next.

This may be more difficult, but the capability to cache by location would be nice for this same issue. I could then cache each disc individually.

Thanks again for an incredible script.
Image
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

Removing the old cache is important, especially if you rebuild your library. Otherwise you might get cached images which are no longer the correct album id.

I'm not sure exactly what you're doing to find this a problem. Any images which are in the cache folder, not created by the cache process, will never be used. The cache process creates all the images it needs and never uses any others. :-?

Also, what do you mean by "cache by location"?
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
MoDementia
Posts: 1321
Joined: Thu Jun 15, 2006 3:26 pm
Location: Geelong, Victoria, Australia

Post by MoDementia »

trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

I see. I'll try to make the cleanup more intelligent than just deleting everything in the next version then.

In the meantime you can remove lines 435-438 (not 434!)...

Code: Select all

  Dim fso : Set fso = CreateObject("Scripting.FileSystemObject")
  Call fso.CopyFile(path&"none.jpg",path&"none.jpg.bak",True)
  Call fso.DeleteFile(path&"*.jpg",True)
  Call fso.CopyFile(path&"none.jpg.bak",path&"none.jpg",True)
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
MoDementia
Posts: 1321
Joined: Thu Jun 15, 2006 3:26 pm
Location: Geelong, Victoria, Australia

Post by MoDementia »

Some just in case code :)

Code: Select all

      If id = playing [b]and SDB.Player.CurrentSongIndex = i[/b] Then
        out.WriteLine "<a name='here'></a>"
      End If     
Five songs later another song from the same album came up but it stopped at the first song
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

Thanks - I noticed this whilst I was testing the last version and thought I'd fixed it - but obviously I just worked out how to and then never wrote the code! :)

EDIT: Sorry, I slightly misunderstood you. I did fix the other problem, but I hadn't considered this one. It'll be sorted in the next version!
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Guest

Post by Guest »

How do I rescan for new art? Refresh doesn't re fresh my art with browse by art.

If you could do artist/albums this would help find things better.
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

In the "Browse By Art Settings" (Tools, Options, Library) hit the "Cache Now" button. Then when you click "Ok" to save the settings, the cache process will begin.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
BrowseByArtFan

Some minor look and feel changes

Post by BrowseByArtFan »

trixmoto Awesome job with the script. This is what i wanted from a long time.

Some minor look and feel changes.
- Spacing between images
- Center alignment of texts
- Album in bold
Image

Thanks for the script :D
BrowseByArtFan

Post by BrowseByArtFan »

I have been looking at EAR plugin for winamp from Helium. they use a template based XML to display details. I gave it a shot with trixmoto script for "Now plyaing" node.

Image

trixmoto, i would love to send the code over to you, if enogh ppl are intrested this is something you can add in your next release.

I am working on getting more info about album tracks , similar albums, artists etc into these pages :lol: [/img][/b]
Locked