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
Development
Improvement Suggestions
[MyMusic] Add A-Z categories to Artist view
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="HappyTalk" data-source="post: 74809" data-attributes="member: 22671"><p>Yer I've been looking into this also and wondering how best it would be implemented. Currently it takes about a minute to enter Music if left in 'Songs' View (40k tracks). I tried the sms remote way but it's just too awkward and time consuming. The feedback from the remote is not very responsive so it always ends up wrong, drove me crazy. For now I set the genre field in the database for each song to match the first letter of the artist which kinda helps, but in genera I am forced to just use the shares view to match my folder hierarchy, bypassing the database:-</p><p></p><p>I figured that the least intrusive and most powerful would be too add an extra column called 'index' to 'configuration|music|Music Views'. Then you could choose to subdivide Artist, Album,Songs. If used on an already indexed column it could further subdivide, as on songs even just the letter A would result in too many entries. A slightly easier implementation might be to just add an 'Index' field to the already existing 'Operat' column in music views, using the 'restrict' & 'limit' fields to determine how it operates.</p><p></p><p>Setting this index value to </p><p>0 = Leave as is with no subdivision</p><p>1 = 0, A, B, C..Z OR AA, AB, AC if used on an already subdivided Letter</p><p>2..999 => group based on that number of entries.</p><p></p><p></p><p>In Config I would then set up a view 'songs' thus:-</p><p>SELECTION INDEX</p><p>title 1</p><p>title 1</p><p>title 0</p><p></p><p>to get a hierarchy:-</p><p>A------------->AA</p><p>B ................ AB------------->Absolute Beginners </p><p>C ................ AC ................ Absolution </p><p></p><p></p><p>For 'Artists' view I would use</p><p>SELECTION INDEX</p><p>artist 1</p><p>artist 15</p><p>title 0 </p><p></p><p>Which would Go 0, A,B,C..Z then would further subdivide if there were more than 15 artists in that letter :-</p><p></p><p>0</p><p>A------------->A Cer------------>A Certain Ratio</p><p>B ................ Alaba ................ A Guy Called Gerald</p><p>C ................ Arca</p><p></p><p>I reckon this would give most flexibility with minimal changes to the front end. I appreciate that from a coding viewpoint it would be a lot more complicated. I'd like to have a go (now I have my dev system all sorted out), BUT would not start until I was sure this concept is the most useable solution. </p><p></p><p></p><p></p><p>For now if you wanna use genre for artists A..Z as i did you can use this SQL to do it. Save to a file, open the music database in SQLite database browser by doing 'File|Import|Database from SQL', select the saved sql file and answer No to create new DB.[code]</p><p>DROP TABLE genre;</p><p>CREATE TABLE genre ( idGenre integer primary key, strGenre text);</p><p>INSERT INTO genre VALUES(1,'A');</p><p>INSERT INTO genre VALUES(2,'B');</p><p>INSERT INTO genre VALUES(3,'C');</p><p>INSERT INTO genre VALUES(4,'D');</p><p>INSERT INTO genre VALUES(5,'E');</p><p>INSERT INTO genre VALUES(6,'F');</p><p>INSERT INTO genre VALUES(7,'G');</p><p>INSERT INTO genre VALUES(8,'H');</p><p>INSERT INTO genre VALUES(9,'I');</p><p>INSERT INTO genre VALUES(10,'J');</p><p>INSERT INTO genre VALUES(11,'K');</p><p>INSERT INTO genre VALUES(12,'L');</p><p>INSERT INTO genre VALUES(13,'M');</p><p>INSERT INTO genre VALUES(14,'N');</p><p>INSERT INTO genre VALUES(15,'O');</p><p>INSERT INTO genre VALUES(16,'P');</p><p>INSERT INTO genre VALUES(17,'Q');</p><p>INSERT INTO genre VALUES(18,'R');</p><p>INSERT INTO genre VALUES(19,'S');</p><p>INSERT INTO genre VALUES(20,'T');</p><p>INSERT INTO genre VALUES(21,'U');</p><p>INSERT INTO genre VALUES(22,'V');</p><p>INSERT INTO genre VALUES(23,'W');</p><p>INSERT INTO genre VALUES(24,'X');</p><p>INSERT INTO genre VALUES(25,'Y');</p><p>INSERT INTO genre VALUES(26,'Z');</p><p>INSERT INTO genre VALUES(27,'0');</p><p></p><p>UPDATE song SET idGenre = (SELECT SUBSTR(strArtist,1,1) FROM artist WHERE song.idArtist=artist.idArtist);</p><p>UPDATE song SET idGenre = '0' WHERE idGenre >= 0 AND idGenre <= 9;</p><p>UPDATE song SET idGenre = (SELECT idGenre FROM genre WHERE song.idGenre=genre.strGenre);[/code]</p><p></p><p>Then you can adjust your music views in config to insert genre above them, poor mans solution but for now it works. Needs to be re-run if you ever add new music.</p></blockquote><p></p>
[QUOTE="HappyTalk, post: 74809, member: 22671"] Yer I've been looking into this also and wondering how best it would be implemented. Currently it takes about a minute to enter Music if left in 'Songs' View (40k tracks). I tried the sms remote way but it's just too awkward and time consuming. The feedback from the remote is not very responsive so it always ends up wrong, drove me crazy. For now I set the genre field in the database for each song to match the first letter of the artist which kinda helps, but in genera I am forced to just use the shares view to match my folder hierarchy, bypassing the database:- I figured that the least intrusive and most powerful would be too add an extra column called 'index' to 'configuration|music|Music Views'. Then you could choose to subdivide Artist, Album,Songs. If used on an already indexed column it could further subdivide, as on songs even just the letter A would result in too many entries. A slightly easier implementation might be to just add an 'Index' field to the already existing 'Operat' column in music views, using the 'restrict' & 'limit' fields to determine how it operates. Setting this index value to 0 = Leave as is with no subdivision 1 = 0, A, B, C..Z OR AA, AB, AC if used on an already subdivided Letter 2..999 => group based on that number of entries. In Config I would then set up a view 'songs' thus:- SELECTION INDEX title 1 title 1 title 0 to get a hierarchy:- A------------->AA B ................ AB------------->Absolute Beginners C ................ AC ................ Absolution For 'Artists' view I would use SELECTION INDEX artist 1 artist 15 title 0 Which would Go 0, A,B,C..Z then would further subdivide if there were more than 15 artists in that letter :- 0 A------------->A Cer------------>A Certain Ratio B ................ Alaba ................ A Guy Called Gerald C ................ Arca I reckon this would give most flexibility with minimal changes to the front end. I appreciate that from a coding viewpoint it would be a lot more complicated. I'd like to have a go (now I have my dev system all sorted out), BUT would not start until I was sure this concept is the most useable solution. For now if you wanna use genre for artists A..Z as i did you can use this SQL to do it. Save to a file, open the music database in SQLite database browser by doing 'File|Import|Database from SQL', select the saved sql file and answer No to create new DB.[code] DROP TABLE genre; CREATE TABLE genre ( idGenre integer primary key, strGenre text); INSERT INTO genre VALUES(1,'A'); INSERT INTO genre VALUES(2,'B'); INSERT INTO genre VALUES(3,'C'); INSERT INTO genre VALUES(4,'D'); INSERT INTO genre VALUES(5,'E'); INSERT INTO genre VALUES(6,'F'); INSERT INTO genre VALUES(7,'G'); INSERT INTO genre VALUES(8,'H'); INSERT INTO genre VALUES(9,'I'); INSERT INTO genre VALUES(10,'J'); INSERT INTO genre VALUES(11,'K'); INSERT INTO genre VALUES(12,'L'); INSERT INTO genre VALUES(13,'M'); INSERT INTO genre VALUES(14,'N'); INSERT INTO genre VALUES(15,'O'); INSERT INTO genre VALUES(16,'P'); INSERT INTO genre VALUES(17,'Q'); INSERT INTO genre VALUES(18,'R'); INSERT INTO genre VALUES(19,'S'); INSERT INTO genre VALUES(20,'T'); INSERT INTO genre VALUES(21,'U'); INSERT INTO genre VALUES(22,'V'); INSERT INTO genre VALUES(23,'W'); INSERT INTO genre VALUES(24,'X'); INSERT INTO genre VALUES(25,'Y'); INSERT INTO genre VALUES(26,'Z'); INSERT INTO genre VALUES(27,'0'); UPDATE song SET idGenre = (SELECT SUBSTR(strArtist,1,1) FROM artist WHERE song.idArtist=artist.idArtist); UPDATE song SET idGenre = '0' WHERE idGenre >= 0 AND idGenre <= 9; UPDATE song SET idGenre = (SELECT idGenre FROM genre WHERE song.idGenre=genre.strGenre);[/code] Then you can adjust your music views in config to insert genre above them, poor mans solution but for now it works. Needs to be re-run if you ever add new music. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Improvement Suggestions
[MyMusic] Add A-Z categories to Artist view
Contact us
RSS
Top
Bottom