INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Finding Files With Or Without Lyrics  (Read 2523 times)

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20048
Finding Files With Or Without Lyrics
« on: July 19, 2003, 10:50:57 am »

Is there a way in the SDK to find out if a file has lyrics?
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio
https://MyAAGrapevines.com
Fayetteville, NC, USA

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
Re: Finding Files With Or Without Lyrics
« Reply #1 on: July 20, 2003, 04:23:48 am »

Open the track and see if the length of the lyrics is > 0.

Beware though as accessing notes and lyrics is slooow as they are held within the physical file and not within the MC database.
Logged

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20048
Re: Finding Files With Or Without Lyrics
« Reply #2 on: July 20, 2003, 04:43:10 am »

I thought of this

I was hoping not to scan all the files just to check if the lyrics was in the database\file.

if someone had 20,000 files that could take sometime.

Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio
https://MyAAGrapevines.com
Fayetteville, NC, USA

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
Re: Finding Files With Or Without Lyrics
« Reply #3 on: July 20, 2003, 09:34:58 pm »

I know and that's why I said it would be slow;  but think of it conversely.

Imagine how big the MC database would be if it stored the lyrics for every track you had.

Even if it stored just a yes/no flag for every track it could easily become out of date.
Logged

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20048
Re: Finding Files With Or Without Lyrics
« Reply #4 on: July 21, 2003, 09:24:59 am »

Quote
Imagine how big the MC database would be if it stored the lyrics for every track you had.


well it does store the lyrics in the database.

As a matter of fact my MC database is 119+ megs

not only does has Lyrics but Artist Bios are in it.

in MC9 you can use search lyrics=[] and get all without lyrics. i woud like to do basicly the same thing in the SDK grab all files that lyrics is under len 50 or more than len 50 lets say and then submit lyrics or get lyrics for the media files to my lyrics server (33,000 lyrics and counting, 132 megs).
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio
https://MyAAGrapevines.com
Fayetteville, NC, USA

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
Re: Finding Files With Or Without Lyrics
« Reply #5 on: July 21, 2003, 12:20:50 pm »

Did that change for MC9?

When I was writing AV accessing notes/lyrics for tracks which had no text was amazingly slow.    That's why I have an option in there to disable displaying that information.   I presumed that it was because it left the information in the tracks to save duplication and prevent synching issues.
Logged

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20048
Re: Finding Files With Or Without Lyrics
« Reply #6 on: July 21, 2003, 02:08:45 pm »

I do not remember if the MJ8 had lyrics in it

I did loaded the MC db up and the info is in there
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio
https://MyAAGrapevines.com
Fayetteville, NC, USA
Pages: [1]   Go Up