home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
General Support
Missing song info RC4
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="SteveV" data-source="post: 59537" data-attributes="member: 15481"><p>Here's a very simplified overview of what happens when you scan your shares to update the database:</p><p></p><p>1.) Get a song file from the share folder</p><p></p><p>2.) Read the tag info</p><p></p><p>3.) Using the "Artist" field from the tag, get the idArtist from the database.</p><p></p><p>3.1) If no idArtist is returned add the "Artist" to the database "artist" table and get the idArtist.</p><p></p><p>4.) Using the "Album" field from the tag, get the idAlbum from the database.</p><p></p><p>4.1) If no idAlbum is returned, add the "Album" to the "album" table and assign the idArtist to the album.idArtist field.</p><p></p><p>This all works fine if all the tracks for a given album are by the same artist. As you can probably guess, if the album is a "Various Artists" album 4.1 creates a problem--the artist id for this track is used as the artist id for the entire album. </p><p></p><p>"Scan albums for Various Artists" gets around this by looking up all of the tracks for each album and counting the number of different artists after the initial scan has completed. If the number of artists is greater than 1 the idArtist for the album is changed to the "Various Artists" id.</p><p></p><p>At the time I made the changes, making this an option seemed like a good idea. In reality, this probably shouldn't be an option and should just be performed automatically. </p><p></p><p>Hope this helps clear things up.</p><p></p><p>Steve</p></blockquote><p></p>
[QUOTE="SteveV, post: 59537, member: 15481"] Here's a very simplified overview of what happens when you scan your shares to update the database: 1.) Get a song file from the share folder 2.) Read the tag info 3.) Using the "Artist" field from the tag, get the idArtist from the database. 3.1) If no idArtist is returned add the "Artist" to the database "artist" table and get the idArtist. 4.) Using the "Album" field from the tag, get the idAlbum from the database. 4.1) If no idAlbum is returned, add the "Album" to the "album" table and assign the idArtist to the album.idArtist field. This all works fine if all the tracks for a given album are by the same artist. As you can probably guess, if the album is a "Various Artists" album 4.1 creates a problem--the artist id for this track is used as the artist id for the entire album. "Scan albums for Various Artists" gets around this by looking up all of the tracks for each album and counting the number of different artists after the initial scan has completed. If the number of artists is greater than 1 the idArtist for the album is changed to the "Various Artists" id. At the time I made the changes, making this an option seemed like a good idea. In reality, this probably shouldn't be an option and should just be performed automatically. Hope this helps clear things up. Steve [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
Missing song info RC4
Contact us
RSS
Top
Bottom