|
|
Rank: Newbie Groups: Member
Joined: 6/10/2008 Posts: 6 Points: 18 Location: Orlando, FL
|
I have two questions:
1) How do I manually initiate a scan of the music folder? 2) Is new artwork (folder.jpg) detected and added during a later scan when no artwork was present during the intital scan?
Thanks, John
|
|
Rank: Newbie Groups: Member
Joined: 6/10/2008 Posts: 6 Points: 18 Location: Orlando, FL
|
I was able to answer my own questions for the most part: Quote:1) How do I manually initiate a scan of the music folder? By restarting IIS (using iisreset.exe) and then hitting the site with my browser, I'm able to kick off a new scan. While this is tedious, it does work. Does anyone know of a better way? Quote:2) Is new artwork (folder.jpg) detected and added during a later scan when no artwork was present during the intital scan? I don't think this works. Create a new folder with mp3s (and no folder.jpg) and start a new scan. Once the scan is complete, verify that the files have been added with no cover art. Then drop a folder.jpg in that folder and start a new scan. No matter what, it won't detect the new cover art. Of course, if the file is present during the first scan, then the art is detected and everything works perfect. It will even detect if the art changes and update it, but only if the file was present during the initial scan. I'm able to work around both of these so they're not a big deal but I was just wondering if others were having similar problems. Thanks, John
|
|
Rank: Advanced Member Groups: Member
Joined: 3/30/2007 Posts: 144 Points: -568 Location: Richmond, VA
|
1) You shouldn't have to kick off a scan; ever. We use the FileSystemWatcher to automatically detect all Adds/Delete/Rename events in the music path you specify and then we take appropriate action on the event. If this is not the behavior you're seeing then you have not setup the application correctly (AppPool may be timing out or other security related issues could be happening which will appear in the scan log file)
2) You have 2 choices for art. You can either have a valid folder.jpg in the album path or you can embed the folder art into the mp3 itself. If you need to add cover art after the scan then you can either 1) use the CMS to manually add the cover art in the album's web page or 2) add the cover art to the album's folder and then use a tool like mp3tag or a batch file renamer to slightly modify the file names which will remove the old files and add the modified files with the cover art.
As General Practice when adding new albums you should work in this order
1. Start the album download or ripping process 2. Get the Album's cover art from slothradio 3. Create a folder to store the album on your server 4. Save the cover art as folder.jpg in the folder you created 5. Meticulously scrutinize the ID3Tags of the tracks in the album to make sure the Genre, Album, Artist, etc are consistent with your database 6. Copy or move the tracks to the folder you created on the server for them
If you follow this work flow, you will be most efficient. This will prevent you from ending up with conflicting info in the database (example AC/DC is different from ac-dc) and will alleviate having to really know anything about the systen to enjoy it.
|
|
Rank: Newbie Groups: Member
Joined: 6/10/2008 Posts: 6 Points: 18 Location: Orlando, FL
|
Thanks for the advice. I just noticed you can upload art on the album page. Unfortunately, when I try it I get the following error: Code:Could not find a part of the path 'C:\inetpub\wwwroot\Music\playlists\album\art\7ff77009-05b2-4578-bc05-1889c279af49.jpg'. I just checked and the path C:\inetpub\wwwroot\Music\playlists" does not exist. Any suggestions?
|
|
Rank: Advanced Member Groups: Member
Joined: 3/30/2007 Posts: 144 Points: -568 Location: Richmond, VA
|
Damn! Yup, that was a function that was not cut over from the previous release to use the App_Data path we're using now. Anyways, if you create the path ../playlists/album/art (which is where the cached art used to be saved) the the system will upload the art file correctly. I'll add that as a bug into the tracker. Below you can see the method responsible for that and it's not been properly migrated to the latest release Code: protected void Upload_Click(object sender, EventArgs e) { if (null != uploadedFile.PostedFile) { Guid picGuid = Guid.NewGuid(); uploadedFile.PostedFile.SaveAs(Server.MapPath("../playlists/album/art") + string.Format("\\{0}.jpg", picGuid.ToString())); lblCoverAdd.Text = string.Format("{0}.jpg uploaded to the server", picGuid.ToString()); string artfile = string.Format("http://{0}/{1}/playlists/album/art/{2}.jpg", Server.MachineName, HttpContext.Current.Request.ApplicationPath, picGuid.ToString()); AlbumRepository.SetAlbumArtFile(albumId, artfile); } }
|
|
Rank: Advanced Member Groups: Member
Joined: 3/30/2007 Posts: 144 Points: -568 Location: Richmond, VA
|
To restart the system and thus restart the scanner just run the command After it's done connect a browser to the site and this will start a new scanner session.
|
|
Rank: Advanced Member Groups: Member
Joined: 3/30/2007 Posts: 144 Points: -568 Location: Richmond, VA
|
Just a heads up to everyone reading this thread that the v1.5.0.4 release fixes this issue. You can now manually upload cover art without getting an error
|
|
|
Guest |