jjlogo

Digital Jukeboxes and Karaoke Machines
Sales: 888-352-3986

Welcome, Guest
Username: Password: Remember me
For some configuration and settings questions, please post your issue here. To report an error, bug, or problem with the software; please submit a ticket. You can do so at our "Help Desk".
  • Page:
  • 1
  • 2

TOPIC: Search View - Showing Album

Search View - Showing Album 1 year 11 months ago #1980

  • beepa
  • beepa's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
  • Karma: 0
I've been looking at the settings behind the views. What I wan't to be able to do, is show the album a track comes from when using the search view. At present, it shows a list of the same track but from different albums. While the album cover may be there I would be nice to actually show the album name, if searching for a particular version of a song.

I have had a look at the pdf document you provided in another post, but it does not seem to match up the search view. Is there a document describing how to return other information with a search?

Thanks
Last Edit: 1 year 11 months ago by beepa. Reason: Hadn't finished
The administrator has disabled public write access.

Re: Search View - Showing Album 1 year 11 months ago #1988

  • JayShoe
  • JayShoe's Avatar
  • OFFLINE
  • Moderator
  • Posts: 459
  • Thank you received: 20
  • Karma: 9
We can display the album information in the track listings in the search results. Attached is an example of what it can look like.

JJ-4.png


This can be done by editing the formats.ini to the format you are looking for. The file is located here: Jukebox Jockey\Jukebox Jockey Media Player [Edition]\AppData\Settings\formats.ini

Here is a code that we've used to create the above format.

'<view.trackno>'+IF(ListCount<10,PadInt(Index,1),IF(LISTCOUNT<100,PADInt(Index,2),PADInt(Index,3)))+': <view.artist>'+IF(Artist='','[No Artist]',Artist)+' <view.duration><br><view.title>'+IF(Title='','[No Title]',Title)+IF(Album='','','<br><view.details>Album: '+Album+'-'+PadInt(Tracknumber,2)TrackNumber')

We will visit this for the next release to possibly include this in the standard install...
Jay
Jukebox Jockey Sales and Support
The administrator has disabled public write access.
The following user(s) said Thank You: beepa

Re: Search View - Showing Album 1 year 11 months ago #1989

  • beepa
  • beepa's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
  • Karma: 0
Thanks very much for that Jay. From your example is the album name stored as <view.details> or am I missing something? I there a list showing the structure of the stored data?

Thanks
The administrator has disabled public write access.

Re: Search View - Showing Album 1 year 11 months ago #1990

  • beepa
  • beepa's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
  • Karma: 0
bytitle.png


Jay,

I have modified the code you sent to suit my purposes. I have hopefully attached a picture of what I came up with. Also attached is the two code strings in case any one else has a use for it.

searchtrackbyartistwithalbum=FormatString='<view.artist>'+IF(Artist='','[No Artist]',Artist)+' <view.title>'+IF(Title='','[No Title]',Title)+' <view.duration>'+IF(Album='','','<br><view.details>Album: '+Album);DisplayName=searchtrackbyartistwithalbum

searchtrackbytitlewithalbum=FormatString='<view.title>'+IF(Title='','[No Title]',Title)+' <view.artist>'+IF(Artist='','[No Artist]',Artist)+' <view.duration>'+IF(Album='','','<br><view.details>Album: '+Album);DisplayName=searchtrackbytitlewithalbum


Thanks
Last Edit: 1 year 11 months ago by beepa.
The administrator has disabled public write access.

Re: Search View - Showing Album 1 year 11 months ago #1997

  • Neil Dallas
  • Neil Dallas's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 86
  • Karma: 0
Thanks Beepa

I was wanting to do this myself.
You saved me a whole lot of hassle.

Cheers
The administrator has disabled public write access.

Re: Search View - Showing Album 1 year 11 months ago #2003

  • Tony
  • Tony's Avatar
  • OFFLINE
  • Moderator
  • Posts: 397
  • Thank you received: 16
  • Karma: 6
One day we'll have a library of these things available in JJ so that you can just pick and choose what you want. NOTE I said "one day"!
Tony
Lead Programmer
Jukebox Jockey
The administrator has disabled public write access.

Re: Search View - Showing Album 1 year 11 months ago #2007

  • Neil Dallas
  • Neil Dallas's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 86
  • Karma: 0
Do i simply add that code to the formats.ini file or do i need to add it somewhere else as well. I cant get the search view to show the album art...............
The administrator has disabled public write access.

Re: Search View - Showing Album 1 year 11 months ago #2008

  • Tony
  • Tony's Avatar
  • OFFLINE
  • Moderator
  • Posts: 397
  • Thank you received: 16
  • Karma: 6
Hi Neil,

That format is to display the album as text in the list, not the album cover.

Which view are you using for search, do you know? If you want the cover art in a track listing then you typically need Config->Display->Cover Art->Show Cover Art in Lists. If you only want it in the search list then in the view file you would change:

[Tracks]
...
ShowImages=1
Tony
Lead Programmer
Jukebox Jockey
Last Edit: 1 year 11 months ago by Tony.
The administrator has disabled public write access.

Re: Search View - Showing Album 1 year 11 months ago #2009

  • Tony
  • Tony's Avatar
  • OFFLINE
  • Moderator
  • Posts: 397
  • Thank you received: 16
  • Karma: 6
PS: If you ever need to have a view display a specific format in your track list, but don't want the format changed in all your other views then you can either modify the "DisplayFormula" in the view file, or add your own named formulat to the Formats.ini and reference it from the view file:

DisplayFormula=$mynewformat
Tony
Lead Programmer
Jukebox Jockey
The administrator has disabled public write access.

Re: Search View - Showing Album 1 year 11 months ago #2010

  • Neil Dallas
  • Neil Dallas's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 86
  • Karma: 0
Thanks Tony

I got it to work after a bit of copy and paste and delete :smile:
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.637 seconds

jjlogo

© 2006+ Jukebox Jockey, LLC — All Rights Reserved.