FireFly Media Server › Firefly Media Server Forums › Firefly Media Server › General Discussion › Playlist Wizard
- This topic has 15 replies, 4 voices, and was last updated 19 years ago by rpedde.
-
AuthorPosts
-
09/11/2005 at 1:04 PM #3758rickGuest
rick wrote:
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:09
10/11/2005 at 12:11 PM #3759rpeddeParticipantNice… I did indeed boot up a windows machine, had a look at it, saw absolutely no errors, couldn’t get the *#$)@# javascript debugger to work, decided that windows was such an uncomfortable development platform I gave up.
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. 🙂
11/11/2005 at 6:13 AM #3760rickGuestI’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.
11/11/2005 at 8:59 AM #3761rpeddeParticipantClearly I don’t!
— Ron
18/11/2005 at 1:29 PM #3762rickGuestBack 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.
–rick
18/11/2005 at 1:56 PM #3763rpeddeParticipantnice…
as far as loading a playlist — what if there was a way to retrieve a particular playlist not just as text, but the parse tree as represented in JSON? Then you could just eval it, and set dropdowns based on the returned object.
Something like:
{“rootnode”: {
“left”: {
“expression” : {
“field” : “genre”,
“optype” : “string”,
“notflag” : “0”,
“operator” : “includes”,
“value” : “rock”
}},
“optype” : “logical”,
“operator” : “and”,
“right” : {
“expression” {
“field” : “year”,
“optype” : “int”,
“notflag” : “0”,
“operator” : “=”,
“value” : “1980”
}}
}which would be “(genre includes “rock”) and (year = 1980)”
Not sure if that’s all balanced and all, but you get the idea. Basically every node has an optype, which is logical, string, int or date, logicals are ands or ors, with a right and left node. string int and date are expressions with field, operator and value, with a boolean for not.
Probably pretty trivial to emit from mt-daapd… I have to build the parse tree to emit sql anyway, could just as easily make it drop the parse tree as JSON.
Let me know if you think it would be helpful.
— Ron
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.