MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Help on Development » Improvement Suggestions


Improvement Suggestions You have an idea how MediaPortal could be improved? Post it in here.

Reply
 
Thread Tools Display Modes
Old 2005-02-15, 22:09   #1 (permalink)
Portal Member
 
Join Date: Nov 2004
Age: 34
Posts: 136
Thanks: 2
Thanked 1 Time in 1 Post

My System

Default automatic update of music database

If I add new music files to a music directory, it is not reflected in the music database. Currently I have to open configuration and manually do an update on the music database.

I suggest that MP does an automatic update of the music database periodically, for example at nighttime or once an hour or so.
JulianBuss is offline   Reply With Quote
Old 2005-02-16, 06:55   #2 (permalink)
Portal Developer
 
frodo's Avatar
 
Join Date: Apr 2004
Location: The Netherlands
Age: 37
Posts: 1,516
Thanks: 3
Thanked 119 Times in 44 Posts

Country:

My System

Default

press the scan button in my music
frodo
frodo is offline   Reply With Quote
Old 2005-02-16, 08:21   #3 (permalink)
Portal Member
 
Join Date: Nov 2004
Age: 34
Posts: 136
Thanks: 2
Thanked 1 Time in 1 Post

My System

Default

yeah, that's ok for the moment. But we want MP to be smart, won't we?

Imagine some non-computer-aware family member; he just want to find the music he wants. He wants not to bother with the question if someone else just added new files (and if he has to press the scan button).
MP should have an up-to-date database automatically, so that I can just use it without thinking.

I can imagine that the music database update is an expensive operation, therefore I suggest to let the user decide on which time it happens. MP already have some kind of scheduling for TV recording, perhaps that code could be used to schedule these kind of events, too.
JulianBuss is offline   Reply With Quote
Old 2005-02-16, 09:19   #4 (permalink)
Retired Team Member
 
Join Date: Apr 2004
Age: 34
Posts: 822
Thanks: 0
Thanked 0 Times in 0 Posts

Country:

My System

Default

but we also want MP to be fast,
It's annoying to have MP scan your music share everytime you enter it.

And do not say "well you can look during startup, or once everyday" cause that will not really work for this feature as you want your music available after you put it there and not wait then till the next day.
It will end up in you still pressing the scan button.
__________________
MrMario64 is offline   Reply With Quote
Old 2005-02-16, 09:27   #5 (permalink)
Portal Member
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 773
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Just a point: .NET does offer a convenient FileSystemWatcher that can be used to detect changes to a particular folder and then react accordingly. This is currently being used for detection of whether tvguide.xml has changed or not. If so, the tvdatabase is updated.

If it can be done for the tvdatabase, I'm sure it can be for the music database as well, without a lot of performance problems...

Sam
samuel337 is offline   Reply With Quote
Old 2005-02-16, 10:32   #6 (permalink)
Portal Member
 
Join Date: Nov 2004
Age: 34
Posts: 136
Thanks: 2
Thanked 1 Time in 1 Post

My System

Default

that would be perfect.

Or another possibility could be to do the music scan in a background thread? I don't now how good support for threads is in .NET, but since it's a modern language, I assume the support is there :-)
But I know that it could be complicated to deal with multithreading - so if MP can watch changes in the music folder it would be the perfect solution from my point of view.
JulianBuss is offline   Reply With Quote
Old 2005-02-16, 10:36   #7 (permalink)
Retired Team Member
 
Join Date: Apr 2004
Age: 34
Posts: 822
Thanks: 0
Thanked 0 Times in 0 Posts

Country:

My System

Default

if it can be done without hurting performance in any way it would be good
__________________
MrMario64 is offline   Reply With Quote
Old 2005-03-02, 14:45   #8 (permalink)
Anonymous
Guest
 
Posts: n/a


Default

Just a thought, I think a combination of both would be good. For example have it scan automatically once a day, say when the computer is idle, and also have the button, so if I know i just added something and i want to play it right now, I can hit the scan button.

Cheers
  Reply With Quote
Old 2005-03-02, 14:55   #9 (permalink)
Portal Developer
 
Join Date: Jan 2005
Age: 30
Posts: 3,462
Thanks: 92
Thanked 115 Times in 93 Posts


Default

Quote:
Originally Posted by orphic2
Just a thought, I think a combination of both would be good. For example have it scan automatically once a day, say when the computer is idle, and also have the button, so if I know i just added something and i want to play it right now, I can hit the scan button.
How about following sollution?

- Automated task - MP scans selected music folders on specific times (i.e. wakes computer from suspend / hibernate in the midle of the night)

- Use .Net to watch directory contents updates (only if this doesn't add too much overhead and cause lag/stutter etc.)

- Keep that scan button, if user want's to manually make sure that database is up to date (this should be unneccesary if .net file watching works ok)
__________________
http://day2.no-ip.org/

"Commy64 - The problem there is that Oprah was on. MP tried to save you by blanking the screen"
tourettes is offline   Reply With Quote
Old 2005-03-02, 14:59   #10 (permalink)
Anonymous
Guest
 
Posts: n/a


Default

Quote:
Originally Posted by tourettes
- Use .Net to watch directory contents updates (only if this doesn't add too much overhead and cause lag/stutter etc.)
- Keep that scan button, if user want's to manually make sure that database is up to date (this should be unneccesary if .net file watching works ok)
This fileSystemWatcher theory would only work, if you had MP running whenever you made a change to your music directory, otherwise it wouldnt pickup the change until you made another subsequent change while MP was running.
  Reply With Quote
Reply

Bookmarks

Tags
automatic, database, music, update

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
(original thread) US/Canadian/Mexico EPG Zap2it Plugin Released bradsjm zap2it (discontinued) 513 2007-02-21 15:07
0.2.1 and latest svn MyPictures thumbnails broken gloomyandy Codecs, External Players 1 2006-10-24 11:01
Update to music database scanning nzsp Improvement Suggestions 5 2006-09-15 10:13
Technotrend DVB-S no LNB switch Erbsenkopp General Support 0 2006-08-03 10:04
Technotrend Budget 1500 CI no LNB switch Erbsenkopp General Support 0 2006-08-03 09:46


All times are GMT +1. The time now is 16:32.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden