Support This Project
Welcome Guest Search | Active Topics | Members | Log In | Register

How do I initiate a scan Options
joho0
Posted: Tuesday, June 10, 2008 11:01:02 AM
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
joho0
Posted: Thursday, June 12, 2008 5:48:36 AM
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
thund3rstruck
Posted: Thursday, June 12, 2008 6:30:18 AM
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.

joho0
Posted: Thursday, June 12, 2008 11:47:33 AM
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?




thund3rstruck
Posted: Friday, June 13, 2008 5:49:13 AM
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);
        }
    }
thund3rstruck
Posted: Wednesday, June 25, 2008 7:54:18 AM
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

Code:
iisreset


After it's done connect a browser to the site and this will start a new scanner session.
thund3rstruck
Posted: Friday, July 11, 2008 12:44:50 PM
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
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

FlatEarth Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.0 (NET v2.0) - 10/10/2006
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.
This page was generated in 0.125 seconds.