Adding database records manually

Help each other out

Adding database records manually

Postby cioffij on Wed Aug 23, 2006 1:51 pm

I've integrated the Shoutcast plugin (which is great, I might add), nad soon realized there are some Internet radio stations that are NOT Shoutcast stations, that I want to listen to.

So, created another category (radio) and added them manually. With some research I discovered that the database must be based on the "music" template or it won't send the URLs to Winamp. This seems to be controlled by thge <type> tag.

I can edit the XML directly - and have done so - to add this tag to my stations. But is there a way to make the "Add item" or "Add sub-item" buttons create this tag for each new track so I can use the GUI? I added a <template>music</template> line thinking this might do it, but nope.

I haven't been able to find any documentation on this.

Is there a way to do this?

Thanks

Jim C
cioffij
 
Posts: 26
Joined: Thu Aug 03, 2006 12:40 am

Postby hvs69 on Wed Aug 23, 2006 5:52 pm

No. You can only do it through setup (F2) screen.
hvs69
 
Posts: 219
Joined: Wed Feb 11, 2004 8:06 am

Postby suutar on Wed Aug 23, 2006 5:55 pm

this may be roundabout, but it seems like it could be possible to build a plugin (using vb.net and xscript to run it) that could do it for you.
suutar
 
Posts: 13
Joined: Mon Aug 21, 2006 8:39 pm

Postby cioffij on Fri Aug 25, 2006 4:26 am

hvs69 wrote:No. You can only do it through setup (F2) screen.


But that's just it -- I AM using the F2 setup screen. When you add a new record it does not create the record with all the fields in it. Or any fields, for that matter.... And in particular, the type tag, which isn't even a field, needs to be created with a editor.

Surely I am doing something wrong. Doesn't setup program allow you to create records that are "whole"?

Jim
cioffij
 
Posts: 26
Joined: Thu Aug 03, 2006 12:40 am

Postby hvs69 on Sun Aug 27, 2006 5:42 am

I don't think I understand your question.

In the F2>database section you can create a new database by typing a name and hitting the create button. Then you go into the Edit mode where you can add new records or sub-records. The only thing I normally do at this point is modify the "display" field. Once all the records are added, I choose one record and add all the fields that I want and then I hit the button "add to all" to add those fields to all the records. Then you can modify the fields in each record.

I never had to create any large databases this way. Usually I let either Xlobby or a plugin manipulate my databases.
hvs69
 
Posts: 219
Joined: Wed Feb 11, 2004 8:06 am

Postby cioffij on Wed Aug 30, 2006 3:11 pm

hvs69 wrote:I don't think I understand your question.


Thanks. The problem is not the fields that display in the GUI. Yes, I can create those, although I would expect an "add" to use the template for each record and add them automatically. (not meaning to complain, just an observation).

The problem is this "type" tag. In the music database or in this case, my shoutcast and internet radio databases, if you want the audioplayer to recognize an item as a track and play it, the item has to have this tag. Like so:

<item>
<parameter>C:\Audio Files\Bluegrass\Alison Krauss\So Long, So Wrong\02 No Place to Hide.wma</parameter>
<display>No Place to Hide</display>
<type>track</type>
<information>
<tracknumber>2</tracknumber>
<artist>Alison Krauss &amp; Union Station</artist>
<trackfilename>02 No Place to Hide.wma</trackfilename>
<comments>www.eMusicTagEditor.com</comments>
<trackname>No Place to Hide</trackname>
</information>
</item>


It is this type tag with "track" in it that I need. I don't see a way to create this except to (a) edit the XML or (b) write a program to do it. I'm suggesting that if the template on which a database is based has one of these in an item, then when you add an item, it should create them, either blank or with defaults.

Perhaps this should be a feature suggestion.

Do you know any way to add items to the music databse manually (using the database editor) in such a way that they will actually play? The items I want to enter are streaming URLs (.pls)

Jim[/b]
cioffij
 
Posts: 26
Joined: Thu Aug 03, 2006 12:40 am