PDA

View Full Version : Library Update Script



cgomes
09-26-2013, 10:50 PM
Hey There,
so, Iīve found a script on the internet that updates the music on my Sam Broadcasterīs database.

OK this seems clear for updating the music, BUT what happens if you sort your music in sam. Meaning I place my music in sub folders in sam that match my physical directories. Is it possible to update each one of my sam directories or can you only update the music to one huge sam directory?

shoutcaststreaming
09-27-2013, 01:16 AM
No clue. Need to see the script.

cgomes
09-27-2013, 04:50 AM
Thanks so much for the answer!

this is the script:

SUBDIR['C:\Users\Christian\Google Drive'].Rescan;

It works fine for rescaning my origin folder and inserting the new songs in SAMs database, but the inserted songs are kind of hidden, because they donīt get to the specific genre/category folder. I can find the new songs by searching after them, but they donīt appear in the specific folder...

PapaBearPW
09-27-2013, 07:50 PM
Thanks so much for the answer!

this is the script:

SUBDIR['C:\Users\Christian\Google Drive'].Rescan;

It works fine for rescaning my origin folder and inserting the new songs in SAMs database, but the inserted songs are kind of hidden, because they donīt get to the specific genre/category folder. I can find the new songs by searching after them, but they donīt appear in the specific folder...

I don't use SAM myself so I can't test this but, as best I can tell, you still have to add the tracks to the proper categories. Something like this:




SUBDIR['C:\Users\Christian\Google Drive'].Rescan;

{Add music to Rock genre}
CAT['Rock'].Clear;
CAT['Rock'].AddDir('C:\Users\Christian\Google Drive\Rock',False,ipBottom);

{Add music to Pop genre}
CAT['Pop'].Clear;
CAT['Pop'].AddDir('C:\Users\Christian\Google Drive\Pop',False,ipBottom);



Repeating the CAT parts for each genre. That is assuming you have your music separated into genre directories in a similar fashion.

Hope that helps.

cgomes
10-03-2013, 02:51 PM
Thank you so much PapaBear! It worked!

By the way, do you think you can help me with this as well?

http://forums.broadcastingworld.net/showthread.php?12599-Shared-SAM%B4s-Database&p=84236#post84236

PapaBearPW
10-04-2013, 09:21 AM
As best I can tell, Firebird will not work that way.

From their website (http://www.firebirdsql.org/file/documentation/reference_manuals/user_manuals/html/qsg25-installing.html):


You cannot locate components of the server, or any database, on a mapped drive, a filesystem share or a network filesystem.

With MySQL I think it should be possible but since I have never tried this myself, I can't say for certain. The best thing would probably be to request some support from Spacial Audio for this. Sorry I can't be of more help on this one.

cgomes
10-08-2013, 02:45 AM
No prob papabear!

thank you again for your help and your time..

Speargons
09-24-2016, 10:57 AM
it was helpful for me too.. so thanks from me too