Playlist file queries

V2.6 Help, If you need help and cannot find it in the FAQ area of this forum feel free to ask the question and someone will reply back.

Moderators: webmaster, Christian, Kuok-Tim, ChrisClark, Forum Support

Playlist file queries

Postby kck » Sun Feb 10, 2008 7:30 pm

I note the very useful addition that playlists now include all the details of a song so that if you transfer them to another computer that doesn't have all the songs in the list they are still available and can be imported if necessary. (This could have been particularly useful to me this morning if I had engaged my brain early enough!)

So, a couple of questions . . .

1. Can you publish the details (schema?) of the playlist files? (I could reverse-engineer them but original information is better).

2. Is there a limit to the number of songs that can go into a playlist? Would this be a reasonable way to import a large number of songs at once?

Thanks,
Steve
kck
Senior
 
Posts: 57
Joined: Mon Jul 12, 2004 3:39 pm
Location: Cumbria, UK

Re: Playlist file queries

Postby Jonathan Hills » Mon Feb 11, 2008 9:32 pm

There's already an import function, why not just use that??
Jonathan Hills
Most Senior
 
Posts: 111
Joined: Sun Jan 29, 2006 9:32 pm
Location: Colchester Essex

Re: Playlist file queries

Postby kck » Sun Feb 17, 2008 8:25 pm

Jonathan Hills wrote:There's already an import function, why not just use that??


Because unless I've missed something it's for importing from a database that is already in the Zionworx (i.e. TurboDB) format.
(It's possible I have missed something. I haven't had a lot of time to investigate but that's the way it looks to me).

Steve
kck
Senior
 
Posts: 57
Joined: Mon Jul 12, 2004 3:39 pm
Location: Cumbria, UK

Re: Playlist file queries

Postby Jonathan Hills » Wed Feb 20, 2008 10:46 pm

You talked about using a playlist on 2 computers. For this to work, they must both have zionworx, so why not just use the import function?
Or am I missing something?
Jonathan Hills
Most Senior
 
Posts: 111
Joined: Sun Jan 29, 2006 9:32 pm
Location: Colchester Essex

Re: Playlist file queries

Postby ChrisClark » Thu Feb 21, 2008 6:54 pm

The thought is that being able to construct an XML file of songs in the correct format would allow someone to import a (large) number of songs into ZionWorx from another format. ie If you had an Access database of songs - you could export these into an xml format an just open as a play list in ZW to load into the database

I think the original inspiration was that he was transferring from one ZW system to another and hadn't realised this feature was there - and now knowing it is Steve sounds like he is definitely thinking outside the box with how it could be used.

The full playlist xml has a lot of additional information such as styles that isn't required for just importing songs - so we will look at what the minimum requirements are for the playlist xml file and look at making it available on the website.
ChrisClark
Site Admin
 
Posts: 196
Joined: Thu May 27, 2004 5:43 am
Location: Auckland, NZ

Re: Playlist file queries

Postby kck » Fri Feb 22, 2008 7:50 pm

Thanks Chris; that's exactly what I was wondering.

I have a number of possibilities in mind, not least a solution to the perennial Song of Fellowship question that is acceptable to all parties (including Kingsway).

I have done various experiments to import lots of data in one go, including the now-superceded Bible idea in V2.5.
Although the TurboDB tool allows for data importing it doesn't make it user-friendly. When I saw this new facility I was very optimistic.

Looking forward in anticipation,
Steve
kck
Senior
 
Posts: 57
Joined: Mon Jul 12, 2004 3:39 pm
Location: Cumbria, UK

Re: Playlist file queries

Postby kck » Sun Feb 24, 2008 10:57 pm

Without wishing to pre-empt the official information (which I'd still be very keen to see) I think I am close to success with this.
I've got a PHP page that I can upload the Songs of Fellowship 4 SongPro format data and return a playlist file that Zionworx 2.6 seems to import OK.
I still need to do some further work and some more checking but it looks good so far.
This means if you've got the SoF4 CD-ROM then there is a good possibility of being able to easily load the songs into Zionworx.

Since it is simply data conversion there shouldn't be any copyright complaints. It also means that if you have other SongPro format data you should be able to import it into Zionworx.

I'm still investigating other solutions for SoF1-3 which didn't come with the data in SongPro format.

Watch this space!
Steve
kck
Senior
 
Posts: 57
Joined: Mon Jul 12, 2004 3:39 pm
Location: Cumbria, UK

Re: Playlist file queries

Postby davepartridge » Sun Feb 24, 2008 11:00 pm

That would be grand if you do get this sorted!
davepartridge
Senior
 
Posts: 53
Joined: Mon Oct 03, 2005 10:48 pm
Location: Essex

Re: Playlist file queries

Postby kck » Thu Feb 28, 2008 7:20 pm

OK. There are still a few things I'd like to work on to improve this but I think it's worth offering it for beta testing at least.

I strongly recommend backing up your database before using it. That's just common sense before any kind of bulk update but even more so for something experimental.

If you're still interested go to http://www.steveprior.plus.com/zionworx/index.htm

Please post comments, observations, etc. here.

Cheers,
Steve
kck
Senior
 
Posts: 57
Joined: Mon Jul 12, 2004 3:39 pm
Location: Cumbria, UK

Re: Playlist file queries

Postby davepartridge » Fri Feb 29, 2008 7:21 am

Just had a very quick go with this and it appears to have worked. I like to have the song numbers etc. in the song titles for convenience for us musicians, but I can go through and add those manually.

I tend to have Song title (Number) as the main title and then Number Song Title as the alternative title so that we can search by either.

Thanks for this great tool - it has saved a significant number of man-hours!
davepartridge
Senior
 
Posts: 53
Joined: Mon Oct 03, 2005 10:48 pm
Location: Essex

Re: Playlist file queries

Postby kck » Fri Feb 29, 2008 9:50 am

Glad you like it!

The options you describe are the kind of things I'd still like to get around to, possibly allowing the user to choose from a range of options. I'm still new to PHP though so I didn't want to do too much at once. And this seemed useful as it was.
I'm particularly keen to check the title against the first line and put the latter in the alternative title if it is different. But I need to make sure it's not just different because of text case, punctuation or the like. (And it may never be different at all - I haven't looked closely at the SongPro data).

Watch this space!

Thanks,
Steve
kck
Senior
 
Posts: 57
Joined: Mon Jul 12, 2004 3:39 pm
Location: Cumbria, UK

Re: Playlist file queries

Postby kck » Fri Feb 29, 2008 10:19 am

Found a bug.

If you upload the RTF file from SoF4 instead of the SongPro one it doesn't complain but just creates a file with no song data in it.
I thought I'd put some checking in that would catch this but if I have it's obviously inadequate.

Just to re-iterate - you need to upload a SongPro format file. It won't convert an RTF file. That is a much more involved process if it's possible at all. (Believe me, I've tried - lots of manual editing always seems to be necessary).

Steve
kck
Senior
 
Posts: 57
Joined: Mon Jul 12, 2004 3:39 pm
Location: Cumbria, UK

Re: Playlist file queries

Postby brainier » Fri Mar 07, 2008 5:27 pm

We style our songs as "SoF XXXX Title In Title Case" as was the style of the SoF macro on this site for a number of years.

I managed to get something similar by opening the XML file I got from using the above application (amazing - thanks so much) in Microsoft Access and adding a new column (Title2) which contained the alternative title (as does the Title column) and modifying Title1 to show "SoF xxxx " at the start (which I exported the data to Excel to do this). Back to Access to convert back to XML. And then a little find replace in Notepad to add in the missing XML (</TPlayListNode></PlayListNodes> or something like that which is missing at the end of each song) and he presto - a working Songs of Fellowship 4!

Now to delete the import of SoF4 I did from before Christmas from my database without removing other songs!
Brian Reid
Woodstock Road Baptist Church, Oxford, UK
http://wrbc.org.uk/
brainier
Expert User
 
Posts: 325
Joined: Sun Oct 02, 2005 7:51 pm
Location: Oxford, UK.

Re: Playlist file queries

Postby mark thompson » Fri Mar 07, 2008 10:12 pm

many thanks, works a treat :D
mark thompson
Junior
 
Posts: 14
Joined: Tue Apr 20, 2004 7:57 pm
Location: Lincoln, UK

Re: Playlist file queries - bulk import of songs

Postby kck » Sat Mar 08, 2008 5:12 pm

OK, I've added the option to have an alternative title that is preceded by the book and song number (as listed in the SongPro file).
I've also title-cased both this alternative and the ordinary title.

It turns out that the SongPro files don't include any alternative titles so my investigations in that direction haven't produced anything.

And it should now complain if the file you upload is an RTF instead of one in SongPro format.

Steve
kck
Senior
 
Posts: 57
Joined: Mon Jul 12, 2004 3:39 pm
Location: Cumbria, UK

Next

Return to Zionworx V2.6 Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron