3rd November 2005 at 3:15 pm #116
I had been working on a smart playlist form that emulates iTunes’ smart playlist dialog when I saw that someone else had done more or less the same thing. D’oh.
Mine is up here anyway, if anyone cares to look at it: http://migrantcoder.com/smart/
[*]it can’t load any playlist info yet, so it would be useless for editing[*]it’s artificially limited to 10 criteria. edit the config at the top of smart_builder.js to change that.
I wasn’t originally going to use a popup, but I ended up there for ease of integration into the latest nightly. I’ve got it plugged into my local admin-root and it seems to work pretty well.
Edit: I’ve posted an update over on page 3 (at the bottom)
Post edited by: rick, at: 2005/11/18 05:344th November 2005 at 3:26 am #3749
I like the way you use the dropdowns for field selection
and the +/- to add or remove rules …
E4th November 2005 at 9:41 am #3750
Yeah, I like the “+” and “-” buttons. I might steal that, if it’s okay… I’ll credit you, of course.
— Ron4th November 2005 at 3:09 pm #3751
Hehe… I was going to ask about that, too 😉
I had +/- buttons in my version, but didn’t get them to run on all browsers, so I more or less delayed them 😉
Your version looks very well coded, though it doesn’t work on Safari and is a kind of overkill in my opinion 😉4th November 2005 at 3:59 pm #3752
hmm, the wizzard and the manual editor let me insert a line like ‘title includes “world”‘ and that is actually inserted into the database.
On rescanning mt-daapd crashes … (20051101) …
Please, can one of you produce some help in which fields are actually supported ?
It also would be nice if the difference in syntax between the frontend and sqlite is explained ….5th November 2005 at 8:33 am #3753
title includes “world” should be valid.
check the notes on the nightlies page… that has all the valid field names and operators.
basically three different kinds of fields: date kind, int kind, and string kind.
for string kind:
fieldname = “string value”
fieldname includes “string value”
for int fields:
fieldname = integer, fieldname < integer, fieldname > integer, fieldname = integer
for date fields, more complex.. check the ngihtly notes… something like:
fieldname > 1 week before today
— Ron6th November 2005 at 3:04 pm #3754
This version of the wizard is really nice and it does work with Internet Explorer. (Please don’t shhot me for mentioning Microsoft).
The current versions of the smart playlist, the experimental playlist page and the java applet don’t work with Internet Explorer. Just as well I have Firefox also on my system.
MC7th November 2005 at 2:23 am #3755
The experimental playlist page was just that. At some point, it will get re-written in a different way.
The applet page… is it perhaps that you don’t have a JVM loaded?
As far as anything actually working with IE, it’s good to hear, but it isn’t an overwhelming consideration on my part. I’m way more concerned with Safari working, as that’s my browser of choice. 🙂
I have a windows machine around here, now, but it’s just inconvenient to get to — I have to swap hard drives to boot to it, so I tend to not do that very often. Only when I have to troubleshoot something windows-specific.
I should probably load a windows system in vmware for testing though.
Perhaps I could start working on ie compatibility. I guess I just hoped someone else would furnish patches. 🙂
— Ron9th November 2005 at 1:55 am #3756
I have had a little play and done some investigation.
I am using Avant Browser (a customised version of Internet Explorer), by default it uses the MSJVM even though the Sun JVM may be loaded to the system. I have now removed the MSJVM and the Java Applet is working fine in both Avant Browser and Internet Explorer. The experimental playlist and the smart playlist still do not function in either Avant Browser or Internet Explorer.
Post edited by: surfermc, at: 2005/11/08 17:569th November 2005 at 1:00 pm #3757
All the pages that don’t work (because they appear blank) in IE require a simple fix. Change the script tags from self-closing ones () to opening and closing tags ().
IE has had this bug, well, always.
Post edited by: rick, at: 2005/11/10 22:079th November 2005 at 1:04 pm #3758
Change the script tags from self-closing ones () to opening and closing tags ().
Of course that should have been “…( <script/> ) to opening and closing tags ( <script></script> )…”
Post edited by: rick, at: 2005/11/10 22:0910th November 2005 at 12:11 pm #3759
Glad you didn’t, though.
I looked at that and looked at that and was COMPLETELY mystified. I tried “debugging by removing giant sections of html” and still nothing rendered.
For a company whose bread and butter is development tools, I’m surprised development on IE is so… bad. Open source generally has losing, cumbersome tools, but the moz js debugger (Venkman) is amazingly great. Maybe the IE team should aspire to mozilla.
Seriously, thanks for finding this. I was wrathful and cursing Microsoft. 🙂11th November 2005 at 6:13 am #3760
I’m happy to help. I write web apps for a living, so the <script/> problem is something I’ve run into and learned to avoid. Sorry I didn’t take a look sooner.11th November 2005 at 8:59 am #3761
Clearly I don’t!
— Ron18th November 2005 at 1:29 pm #3762
Back on the original topic of my playlist wizard. 🙂
I’ve made some updates, and thrown together a page for it here: http://migrantcoder.com/daapd/
You can play with a copy of it there, and anyone who wants to use it can download a patch for the latest nightly (20051117). Let me know if there are any problems with the patch.
The one big feature still lacking is loading a playlist, so it’s still useless for editing. That’s coming, though.
You must be logged in to reply to this topic.