Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: foo_httpcontrol (Read 939301 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

foo_httpcontrol

Reply #350
Oblikoamorale
Thank you for this quick job for as much joy and fun in this.


foo_httpcontrol

Reply #351
Code: [Select]
    v0.85 25 Apr
       add: stop after queue ability: Playback main menu checkbox,
            SAQ cmd and [SAQ] macro;
       add: Enqueue one or more playlist items:
            cmd=EnqueueTrack
            param1=numbers separated by any delitemeter;
       add: Dequeue one or more playlist items:
            cmd=DequeueTrack
            param1=numbers separated by any delitemeter;
       add: experimental media library browser based on up to three
            user-definable metadata grouping fields;
       ---: recompiled against SDK-2008-11-29;

foo_httpcontrol

Reply #352
I just found this the other day and this component and the whole 'ipod touch as a remote' just looks great.
simply amazing component! I'm lookin all over the net for internet enabled handheld devices.

Anyway, as for Aurics' ipod touch webui, I've tweaked it a bit
available here
added: Clear playlist option; playlist kept growing and growing without an option to remove things remotely.
tweak: EnqueueDir changed to EnqueueDirSubdirs on the browse pane; alleviates artist wide playlist additions, I'll admit it isn't a good idea on the root directory.
tweak: hArt and albumArt only forced to width; respects aspect ratio of the image
tweak: other misc things like disc.tracknumber and adjusting the interface for it (look at readme.txt for playlist row change)

There are some issues though
critical
i1) quotation marks in the ARTIST name break the playlist view; had to manually remove it from the playlist in foobar and refresh, Clear then Refresh alleviates it
cosmetic
i2) characters such as ë and ü show up as ë and lü on the browse view directory header
i3) play/pause buttons show black squares on buttonpress
i4) albumArt pane doesn't change when it switches to a new album

some feature requests
fr1) albumArt view can we have it vertical-aligned somehow(center/middle digipack art between header and buttons). I was trying to do this myself (0 years of experience with html/css/js)
fr2) remembers where it left off on the browse pane, scroll bar and directory wise
fr3) progress bar and volume control, perhaps on the scrollbar-less albumArt pane
fr4) refresh playlist on enqueue; Play, EmptyPlaylist and Shuffle seem to have their own refresh

foo_httpcontrol 0.85 has arrived!
I have an Issue with the Query step of %genre%, in my media library I use this multiple value field to a nice extent (avg. ~4 values) and the Query gives me 145 results when the Facets component only shows 47
e.g Electronic; Glitch; Hip Hop shows up as "Electronic, Glitch, Hip Hop" and querying Electronic, Glitch or Hip Hop doesn't list this or other multiple value albums.

foo_httpcontrol

Reply #353
RavinGoneBad, yep, multiple metadata field values are not supported (yet). other than that, does the query work as it supposed to?

foo_httpcontrol

Reply #354
The query seems to work as expected. However I think it should not change the current playlist (dangerous) but rather use its own playlist (with user definable name). I tried "Send results to different playlist" but it generates a new playlist each time a new query is used which is slightly annoying.

Interesting development anyway !

foo_httpcontrol

Reply #355
do you mean it keeps adding a new playlist every time you do query? both createsimpleautoplaylist and query commands won't add playlist unless there are no playlist named "Query" exist.

foo_httpcontrol

Reply #356
do you mean it keeps adding a new playlist every time you do query? both createsimpleautoplaylist and query commands won't add playlist unless there are no playlist named "Query" exist.

In some cases it creates several "Query" playlists .. not always. It happens for example when you change the
"Keep autoplaylist" flag.


foo_httpcontrol

Reply #358
NEMO7538, confirmed and fixed. and other cases are?



foo_httpcontrol

Reply #361
Now it's working again. But thanks for the mirror.

foo_httpcontrol

Reply #362
i get the following error:

Quote
Forbidden
You don't have permission to access to this document on this server.


using vista + windows-firewall. any ideas?


//edit (solved): remote ip was wrong. localhost =/= 127.0.0.1 (?)

foo_httpcontrol

Reply #363
I tried to use the Del command with a number associated with the index of the current playlist item, but it doesn't seem to do anything. I'm getting the index by calling item_focus, which seems to return the number that I am looking for. The overlying code is based off Auric's original template, and I've been tweaking it around to add things I would like to have. Has anyone gotten it to work, or am I just doing something wrong? Thanks.

update: got it to work after specifying the third parameter, the playlist index...

I gave HELPER2 %artist% - %title%, but the dash, or any other text I put in there always disappears? What is the method you use to separate artist from track? Thanks.

 

foo_httpcontrol

Reply #364
eli2k, Del uses active playlist to remove selected item(s) if you don't specify playlist index. perhaps a different playlist was active while you were trying to remove items from the other one?

regarding helper2 issue - sorry, it looks like due to the recently introduced bug in rendering module, helper2 and helper3 were always replaced with helper1. fixed without increasing component version.

foo_httpcontrol

Reply #365
eli2k, Del uses active playlist to remove selected item(s) if you don't specify playlist index. perhaps a different playlist was active while you were trying to remove items from the other one?


Thanks for the quick fix! I was on the active playlist on foobar, trying to delete it and staring at the foobar screen to see if it would be deleted, but didn't seem to work until I told it which playlist to choose. Works fine, though!

Is it possible to send a Mute command to foobar with your plugin at the moment?

foo_httpcontrol

Reply #366
Thanks for the quick fix! I was on the active playlist on foobar, trying to delete it and staring at the foobar screen to see if it would be deleted, but didn't seem to work until I told it which playlist to choose. Works fine, though!
I cannot reproduce such behaviour. can you show the exact request which doesn't delete item(s)? the easiest way to see it is "Log access to console" checkbox in component preferences.
Is it possible to send a Mute command to foobar with your plugin at the moment?
nope. but it's not that hard to code in asynchronious interface, is it?

foo_httpcontrol

Reply #367
I cannot reproduce such behaviour. can you show the exact request which doesn't delete item(s)? the easiest way to see it is "Log access to console" checkbox in component preferences.

nope. but it's not that hard to code in asynchronious interface, is it?


This is the command I used:

Code: [Select]
onclick=sendCommand('Del'," + fooVars.item_focus + "," + fooVars.playlist_current + ");


Without the fooVars.playlist_current variable, the command did not do anything. I'm assuming if it would delete at least delete something without the third parameter, but it did not seem to be doing that.

I'm not sure what you mean to code with an asynh interface, but I don't see how I can interface with foobar without being able to send a Mute command to your plugin first, then to foobar. But it's not too important.

foo_httpcontrol

Reply #368
This is the command I used:
Code: [Select]
onclick=sendCommand('Del'," + fooVars.item_focus + "," + fooVars.playlist_current + ");

Without the fooVars.playlist_current variable, the command did not do anything. I'm assuming if it would delete at least delete something without the third parameter, but it did not seem to be doing that.
I'm not familiar with the internal details of this UI you are working on. all I know is calling http://your_ip:your_port/?cmd=Del&param1=N deletes item number N of active playlist. if you want to find out what's really happening in your case, you have to know what command url your UI generates. log access to console will help you.

I'm not sure what you mean to code with an asynh interface, but I don't see how I can interface with foobar without being able to send a Mute command to your plugin first, then to foobar. But it's not too important.
well, it's simple. before muting you have to store current volume level in any JS variable. after that, issue command that sets volume level to 0. that's it, sound is muted. to un-mute sound and restore volume to pre-muted state, issue command changing volume level to value stored in that variable.
and since the UI is asynchronious (at least it seems so), this variable won't get lost between commands issued by UI.

foo_httpcontrol

Reply #369
Hi sorry for this very noob question - but I couldn't find the answer.

The Ipod look that Ravingonebad tweaked looks very good. My question is: is this only for use on an Ipod, or can it be used on a windows based PDA, and then just looks like an Ipod?


foo_httpcontrol

Reply #370
you never know until you try. my guess is as Windows Mobile Internet Explorer capabilities are *very* limited, it won't work. perhaps Opera Mobile will perform better.

foo_httpcontrol

Reply #371
I noticed an issue that comes up when swapping playlists, that is that browser client doesnt know that the currently playing track is not on the new playlist, along the same lines is that there is no way to jump back to the playlist that has the currently playing track on it (if you dont know what list that is).

Is there any possibility of a solution for this?

foo_httpcontrol

Reply #372
I noticed an issue that comes up when swapping playlists, that is that browser client doesnt know that the currently playing track is not on the new playlist, along the same lines is that there is no way to jump back to the playlist that has the currently playing track on it (if you dont know what list that is).
Is there any possibility of a solution for this?

yeah, it looks like there is something wrong with playing track indication when swiching playlists. strangest thing is that I've seen it working properly before
and no, there are no macro standing for playing playlist index, as there hasn't been any demand for it. anyways, fb2k state macros became a bit messy, I guess it's time to do a little cleanup.

foo_httpcontrol

Reply #373
Thanks for supporting multiple meta-data fields  , no more 'query's filling up the playlist manager too, very good 

I did find a bug(?) tho with the multiple fields, they don't include/exclude each other.
steps example...
Code: [Select]
$meta_sep(genre,;) -> $meta_sep(genre,;) -> %album artist% '['%date%']' %album%

Selecting Ambient gives 110 results then... selecting Downtempo next gives 88 results!
(Facets: if you select them both gives 156, ambient and downtempo results are the same 110 and 88)
Perhaps I'm using this in the wrong way or it wasn't designed for inclusion.
Facets doesn't have the ability to exclude things either, like filtering for things that only share two tags x and y
side note: 47 genre results on the 1st step, selecting Ambient leaves me with 17 results for my next choice so it must know what albums share x and y tags right?
in Facets typing out 'ambient downtempo' does exclude everything else and shows only 45 results...
I didn't know about this $meta_sep(X,Y), $meta_sep(X,Y,Z) before! doesn't seem to work like it does here in other components, that fine tho, works for us  , ill fiddle with this more later


cosmetic type request that emulates how the album list panel works
mock-up
Code: [Select]
$meta_sep(genre,;) -> $meta_sep(genre,;) -> [%album artist%]|'['%date%']' %album%

I think this would give the ability to do 'node' type addition, could be helpful.
  can't think of anything else...
oh and you cant use the query drop-down box to go through what you've searched, that could be cool

forgive all my ramblings, I'm just too excited to deliver this in a well thought out manner

foo_httpcontrol

Reply #374
RavinGoneBad, weird! it shouldn't behave the way you described. step filters are supposed to be connected with logical 'and' between themselves (and I thought they are). I'll check what's going on later.

Quote
oh and you cant use the query drop-down box to go through what you've searched, that could be cool
uhh, I don't get it. what do you mean?

by the way, thanks for feedback!