Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Add or Remove Songs from "Popular" list  (Read 2500 times)

0 Members and 1 Guest are viewing this topic.

gabypotter

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 39
  • Last login:February 28, 2020, 04:04:27 pm
  • I want to finish my Jukebox!!!
Add or Remove Songs from "Popular" list
« on: June 21, 2006, 03:28:54 pm »
Hi!
Is there a way to add or remove songs
from the "Popular" List?
which file is the one that saves that list?
Thanks!

Chris

  • Moderator
  • Trade Count: (+2)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4574
  • Last login:September 21, 2019, 04:59:49 pm
    • Chris's MAME Cabinet
Re: Add or Remove Songs from "Popular" list
« Reply #1 on: June 21, 2006, 04:47:49 pm »
This information is stored in jukebox.db in the DATA folder.  The Popular list is based on the number of times a file has been played; the play count is written back to the database every time you close the jukebox.

If you edit this file with a text editor, you'll see the records for individual songs.  A song record looks like this:
{614313IWIL}{I Will Remember You}{Sarah McLachlan}{Singles}{0}{1145561514}{287}{0}{}{12}{1}{5}

I've highlighted the field that represents the play count.  This song has been played 12 times.  Each time a song is played, it's playcount (in memory) is incremented and the Popular table re-sorted.

Does this help?

--Chris
--Chris
DOSCab/WinCab Jukebox: http://www.dwjukebox.com

gabypotter

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 39
  • Last login:February 28, 2020, 04:04:27 pm
  • I want to finish my Jukebox!!!
Re: Add or Remove Songs from "Popular" list
« Reply #2 on: June 21, 2006, 06:51:08 pm »
thank you!!!
very very very much!!!

Chris

  • Moderator
  • Trade Count: (+2)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4574
  • Last login:September 21, 2019, 04:59:49 pm
    • Chris's MAME Cabinet
Re: Add or Remove Songs from "Popular" list
« Reply #3 on: June 21, 2006, 10:06:34 pm »
For those curious about all the fields, here they are from left to right:

// Database fields:
#define DB_ID           0   //    Normalized file ID
#define DB_TITLE        1   //    Title
#define DB_ARTIST       2   //    Artist
#define DB_ALBUM        3   //    Album
#define DB_TRACKNO      4   //    Track Number
#define DB_DATE         5   //    Date last updated
#define DB_LENGTH       6   //    Song length in seconds
#define DB_PLAYCOUNT    7   //    Playcount
#define DB_GENRE        8   //    Genre
#define DB_YEAR         9   //    Year of release
#define DB_TITLESTRIP   10  //    Reverse index to titlestrip
#define DB_FOLDERID     11  //    Integer pointer to folder, used to match "special case" albums
--Chris
DOSCab/WinCab Jukebox: http://www.dwjukebox.com