LinuxMCE Forums

General => Users => Topic started by: golgoj4 on April 16, 2008, 01:59:00 am

Title: Playlist Editor - Rewrite
Post by: golgoj4 on April 16, 2008, 01:59:00 am
Hey all,

So im making a new playlist editor. And I would like the community's input.

This started when LON22 created the batch assign script. I liked it because it let me organize the media a little bit faster than go through every single file.

Which brings us to the playlist editor. I wanted to add some functionality to it as well as make it run just a little faster.

blah blah blah.

The 1st incarnation is done* and I was looking on some input from the community on a couple things:


I dont see how to add a file here so i'll just post the link to where it is. The instructions are on that page, but i'll say them here too.

   1. Copy into the /var/www/  directory
   2. Unzip
   3. Point browser to the directory on your core. EX: http://dcerouter/DDMB/
   4. All files need to be in the same folder.
   5. After that,  flame me for bad coding.  :P

Thats about it.

Note: This should'nt break your system or existing playlists. If anything, there may be an issue with the playlist ordering. If you recieve an error, its because it was fixing something in the background. Performing the same action that gave an error should would the second time because any issues with playlist order will have been fixed. There is one error that i have yet to track down which involves funky characters in the filename. Nothing breaks, just tells you there was an error.

Also, it was updated on 4-16-08, minor issue with adding playlists.

Link http://langstonball.com/component/option,com_docman/task,cat_view/gid,33/Itemid,37/ (http://langstonball.com/component/option,com_docman/task,cat_view/gid,33/Itemid,37/)
Title: Re: Playlist Editor - Rewrite
Post by: PeteK on April 16, 2008, 05:49:40 am
Thanks!
Title: Re: Playlist Editor - Rewrite
Post by: golgoj4 on April 16, 2008, 07:44:56 am
Thanks!

there have been some suggestions that I do it in er java. thing is, i know nothing about java. so if anyone has any tips, suggestions, pointers, etc that would get me there it would be appreciated.

basically, i dont care what language its in as long as:

-you can drag files to their destination
-you can add cover art the same way
-can update attributes in that manner too

I only have the 1st done, but the rest will be coming soon with this method. Im learning so i dont think i mind doing it twice, but java is completely foreign, to me at least.

PS. i know something about it bugged you. tell me :)
Title: Re: Playlist Editor - Rewrite
Post by: bulek on April 16, 2008, 09:20:48 am
Hi,

thanks for effort. I really like it. It seems quite promising also to replace general media interface.

I haven't found Filename sorting possibility - is it somewhere under different name or .. ?

I'm quite used to directory structure browsing...

Thanks again,

regards,

Bulek.
Title: Re: Playlist Editor - Rewrite
Post by: golgoj4 on April 16, 2008, 09:27:22 am
Hi,

thanks for effort. I really like it. It seems quite promising also to replace general media interface.

I haven't found Filename sorting possibility - is it somewhere under different name or .. ?

I'm quite used to directory structure browsing...

Thanks again,

regards,

Bulek.


Hey Bulek,

Browsing by file is still on the way as im learning the code as i go along. Kind of a tutorial from hell. I do, however realize the need for this because if a file is missing an attribute,  how are you supposed to find it? Im working on the browse by file part at the moment, so you hopefully wont have to wait too much longer.
Title: Re: Playlist Editor - Rewrite
Post by: totallymaxed on April 16, 2008, 10:47:38 pm
Hey all,

So im making a new playlist editor. And I would like the community's input.

This started when LON22 created the batch assign script. I liked it because it let me organize the media a little bit faster than go through every single file.

Which brings us to the playlist editor. I wanted to add some functionality to it as well as make it run just a little faster.

blah blah blah.

The 1st incarnation is done* and I was looking on some input from the community on a couple things:

  • Colors and layout. I am not a graphic designer. Nor do I claim to be. So if any suggestions on the look and feel would be awesome.  My main goal was to get it working first, make it pretty second.
  • Coding. This isnt as important right now but by the time this is done, it will need to be added into the webadmin so its organized with the rest webadmin. Problem is, im having some difficulty there, so if anyone has any suggestions, please let me know.

I dont see how to add a file here so i'll just post the link to where it is. The instructions are on that page, but i'll say them here too.

   1. Copy into the /var/www/  directory
   2. Unzip
   3. Point browser to the directory on your core. EX: http://dcerouter/DDMB/
   4. All files need to be in the same folder.
   5. After that,  flame me for bad coding.  :P

Thats about it.

Not, this shouldnt break your system or existing playlists. If anything, there may be an issue with the playlist ordering. If you recieve an error, its because it was fixing something in the background. performing the same action that gave an error should would the second time because any issues with playlist order will have been fixed.

Link http://langstonball.com/component/option,com_docman/task,cat_view/gid,33/Itemid,37/ (http://langstonball.com/component/option,com_docman/task,cat_view/gid,33/Itemid,37/)

Nice work! I only had a quick play with it but it looks great and seems to basically work... will play around with it tomorrow and give some feedback :-)

All the best

Andrew
Title: Re: Playlist Editor - Rewrite
Post by: lon22 on April 17, 2008, 06:45:11 pm
Nice... I ran it yesterday. Looked good from my first viewing. I will play around with it later and provide you with any feedback.

lon22
Title: Re: Playlist Editor - Rewrite
Post by: MarcoZan on April 17, 2008, 08:05:23 pm
Hi all

probably I'm missing something obvious ... nevertheless I followed the link but found nothing (a page with a download category called LMCE, with nothing inside)

Can anyone point me in the proper direction?

TIA

Marco
Title: Re: Playlist Editor - Rewrite
Post by: golgoj4 on April 17, 2008, 08:50:26 pm
Hi all

probably I'm missing something obvious ... nevertheless I followed the link but found nothing (a page with a download category called LMCE, with nothing inside)

Can anyone point me in the proper direction?

TIA

Marco

click on LMCE. Sorry its not more obvious, i just only have one thing to download at the moment.
Title: Re: Playlist Editor - Rewrite
Post by: golgoj4 on April 17, 2008, 08:51:57 pm
Hi all

probably I'm missing something obvious ... nevertheless I followed the link but found nothing (a page with a download category called LMCE, with nothing inside)

Can anyone point me in the proper direction?

TIA

Marco
Sorry, I suck. When i updated it, i forgot to re-publish it for non registered guests. Its there now :) sorry bout that
Title: Re: Playlist Editor - Rewrite
Post by: sfalcon1 on April 18, 2008, 04:29:11 am
cool. looks very promising.    Does linuxmce use shockwave/flash  anywhere else? 
Title: Re: Playlist Editor - Rewrite
Post by: golgoj4 on April 18, 2008, 05:24:54 am
cool. looks very promising.    Does linuxmce use shockwave/flash  anywhere else? 

nope. and im planning to replace the flash with straight javascript with the same functionality. Someone wisely pointed out that using a closed program like flash makes it hard to maintain for others. so the flash version is sort of a 'quick' prototype before the final doodad.
Title: Re: Playlist Editor - Rewrite
Post by: golgoj4 on April 20, 2008, 11:49:44 am
4-20-08

added a delete function, resized some things.
Title: Re: Playlist Editor - Rewrite
Post by: 1audio on April 21, 2008, 08:57:42 am
I like the work so far. You could use Gnash http://www.gnu.org/software/gnash/ (http://www.gnu.org/software/gnash/) the FOSS version of Flash. And since most users will be editing on a desktop machine, not repurposing their TV for editing, using flash is less of an issue.

You don't have a delete for a song added that isn't wanted. The reordering didn't seem to work for me. Possibly because I have a bad entry in the list. I'll get some input to you on functionality and graphics in the next few days if you want. . . I think this is a good start on a better content manager than LMCE currently has.

Would it be possible to suppress attributes that may not make sense, like some of the video ones for music content?

And adding a complete album in one pass would be nice.

Title: Re: Playlist Editor - Rewrite
Post by: totallymaxed on April 21, 2008, 02:30:46 pm
cool. looks very promising.    Does linuxmce use shockwave/flash  anywhere else? 

nope. and im planning to replace the flash with straight javascript with the same functionality. Someone wisely pointed out that using a closed program like flash makes it hard to maintain for others. so the flash version is sort of a 'quick' prototype before the final doodad.

Well Firefox is installed as standard with the Adobe Flash 9 plugin installed

Andrew
Title: Re: Playlist Editor - Rewrite
Post by: tschak909 on April 21, 2008, 08:10:02 pm
*hmm* but you still need the Flash authoring program to modify it and work on it.

come on people, are you really this dense?

Putting reliance on a commercial piece of software to modify a component is NOT a smart thing to do with a FREE SOFTWARE PROJECT!

-Thom
Title: Re: Playlist Editor - Rewrite
Post by: totallymaxed on April 21, 2008, 09:21:30 pm
*hmm* but you still need the Flash authoring program to modify it and work on it.

come on people, are you really this dense?

Putting reliance on a commercial piece of software to modify a component is NOT a smart thing to do with a FREE SOFTWARE PROJECT!

-Thom


Yes... but you don't need to use 'commercial tools' to build Flash/Gnash apps.

But in any case i was not advocating continuing use of Flash at all... I was just pointing out we already ship with Flash 9 installed.

Andrew

Title: Re: Playlist Editor - Rewrite
Post by: golgoj4 on April 21, 2008, 11:30:41 pm
I like the work so far. You could use Gnash http://www.gnu.org/software/gnash/ (http://www.gnu.org/software/gnash/) the FOSS version of Flash. And since most users will be editing on a desktop machine, not repurposing their TV for editing, using flash is less of an issue.

You don't have a delete for a song added that isn't wanted. The reordering didn't seem to work for me. Possibly because I have a bad entry in the list. I'll get some input to you on functionality and graphics in the next few days if you want. . . I think this is a good start on a better content manager than LMCE currently has.

Would it be possible to suppress attributes that may not make sense, like some of the video ones for music content?

And adding a complete album in one pass would be nice.



Sorry i wasnt specific on how to remove songs. You simply drag them from the list. I also added a new method to find stuff specifically by album, performer, etc. I will eventually add more features to this but that brings me to my second point.

Thom: Im still learning javascript, and as i stated before, eventually the flash will disappear and be replaced by the Javascript.  You made it clear that it wasnt a good idea to use this method, and you have a very solid point. But as many say: jump in and help. So thats what im doing. slowly? Yes. Its not like there were a lot of people interested in getting down and doing it, and im certainly not the most qualified.  but dont worry, im not that thick that I would leave it in a 'closed' state. If anything, this is a dry run to get ideas on where I want to end up.

So dont worry, I dont intend to call it done until we have a happy javascript version.  :-X Its just a matter of me learning it. tbh, im sure some enterprising young individual could start now with the php i've done on it so far (maybe?). Oh well, dont sweat it people. We will get there :)

As far as
Title: Re: Playlist Editor - Rewrite
Post by: coley on April 22, 2008, 12:05:47 pm
Am I the only one missing something here - it doesn't work for me.
Downloaded zip, extracted as per instructions, pointed browser at localhost.
Page starts to load - Playlist frame appears, and no more.
Browser says waiting for localhost but nothing else draws on screen.

Any pointers?

thx
-Coley.
Title: Re: Playlist Editor - Rewrite
Post by: golgoj4 on April 22, 2008, 04:16:54 pm
Am I the only one missing something here - it doesn't work for me.
Downloaded zip, extracted as per instructions, pointed browser at localhost.
Page starts to load - Playlist frame appears, and no more.
Browser says waiting for localhost but nothing else draws on screen.

Any pointers?

thx
-Coley.

do you have any playlists currently? It should throw an error if it cant connect to the db. In the latest version you can add playlists from that same screen as well.
Title: Re: Playlist Editor - Rewrite
Post by: coley on April 22, 2008, 04:30:50 pm
ah - no I had no playlists set up.
Will try with latest version at home later.

-Coley.
Title: Re: Playlist Editor - Rewrite
Post by: MarcoZan on April 22, 2008, 11:20:59 pm
Hi golgoj4

I gave a try to last release and it sounds good to me. Also UI is not that bad (for sure more usable than UI1..).

I faced an error while trying to remove a song from a playlist. Dragging the unwanted song out of the list throws this error:


Code: [Select]
[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL: /playlistDelete.php"]



And when I try to drag a song to a different position within the playlist I get the following error:

Code: [Select]
<br />
<b>Warning</b>:  implode() [<a href='function.implode'>function.implode</a>]: Argument to implode must be an array. in <b>/var/www/DDMB/playlistAdd.php</b> on line <b>23</b><br />
  Files Added!

In both cases song is not removed/shifted.

Apart of this, I think that it looks very promising.

Thanks for your effort

Marco
Title: Re: Playlist Editor - Rewrite
Post by: golgoj4 on April 23, 2008, 01:00:17 am
Hi golgoj4

I gave a try to last release and it sounds good to me. Also UI is not that bad (for sure more usable than UI1..).

I faced an error while trying to remove a song from a playlist. Dragging the unwanted song out of the list throws this error:


Code: [Select]
[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL: /playlistDelete.php"]

thanks for the feedback. i will into this.



And when I try to drag a song to a different position within the playlist I get the following error:

Code: [Select]
<br />
<b>Warning</b>:  implode() [<a href='function.implode'>function.implode</a>]: Argument to implode must be an array. in <b>/var/www/DDMB/playlistAdd.php</b> on line <b>23</b><br />
  Files Added!

In both cases song is not removed/shifted.

Apart of this, I think that it looks very promising.

Thanks for your effort

Marco

Title: Re: Playlist Editor - Rewrite
Post by: golgoj4 on April 23, 2008, 09:26:58 am
I like the work so far. You could use Gnash http://www.gnu.org/software/gnash/ (http://www.gnu.org/software/gnash/) the FOSS version of Flash. And since most users will be editing on a desktop machine, not repurposing their TV for editing, using flash is less of an issue.

You don't have a delete for a song added that isn't wanted. The reordering didn't seem to work for me. Possibly because I have a bad entry in the list. I'll get some input to you on functionality and graphics in the next few days if you want. . . I think this is a good start on a better content manager than LMCE currently has.

Would it be possible to suppress attributes that may not make sense, like some of the video ones for music content?

And adding a complete album in one pass would be nice.



Thanks for the feed back.

in the next pass i hope to:

-fix the reordering issue
-add in tooltips or a help popup. btw, to remove unwanted files drag them from the list. i will more than likely add a trash can icon or something to make it more obvious.
-arrange the filtering to just show music related attributes such as performers, genres, albums, etc.
-About the albums: add them all at once how exactly? I was thinking:
  -select by filter by album and then dragging the album to the play list without having to go to the file panel to select each one.
  -Or a small pop up showing the album with check boxes for the track(s) you want?


And another question while we are on media.
Shares. Right now im trying to work out a browse by file system but its kickin mah butt. help?!? Currently the best I have is searching by path, but that isnt quite where I want to be. I've been staring at what they've done in the webadmin currently for a couple months and it still doesn't make sense so any help is appreciated.

For instance. I know how many hd's i have and where they are. But i dont know how other stuff show up under the system, namely windows shares, network storage and raid drives. Any examples of tips on that would be great.

thanks for the feedback again
-golgoj4
Title: Re: Playlist Editor - Rewrite
Post by: wombiroller on June 03, 2008, 04:55:50 am
Hey golgoj4, all,

Thanks for the tool. I recently installed this and can browse to the URL - however I can't get the file panel to populate.

I have a playlist created - can see all my media in the second box (e.g. sort by Performer brings all my music up), however when I select anyone - it just pops up with a loading box: " Select by Genre <artist name> Loading"...

It'll stay that way for ever if I don't cancel it (click OK), and the file panel won't get populated. Using 0710.

Any ideas on how I can fix this?

Cheers,
Adriel.
Title: Re: Playlist Editor - Rewrite
Post by: 1audio on June 03, 2008, 06:05:04 am
I have been using it and I do have it working. The operation is a little mystical since it doesn't give a lot of clues as to whats happening. And if the metadata isn't right or hasn't been read by LMCE its, well, "lost".

I would really like to see more progress on it and a file manager/attribute editor component. The attribute editor in LMCE is very clunky and slow to use. However there aren't other options. I tried media monkey and its edits are not recognized by LMCE. I'm using FLAC so thats part of the problem.
Title: Re: Playlist Editor - Rewrite
Post by: colinjones on June 03, 2008, 07:51:25 am
I have been using it and I do have it working. The operation is a little mystical since it doesn't give a lot of clues as to whats happening. And if the metadata isn't right or hasn't been read by LMCE its, well, "lost".

I would really like to see more progress on it and a file manager/attribute editor component. The attribute editor in LMCE is very clunky and slow to use. However there aren't other options. I tried media monkey and its edits are not recognized by LMCE. I'm using FLAC so thats part of the problem.

Not sure about FLAC, but I edit all my id3 embedded tags for audio (mp3) just using Windows XP explorer against the file share (local). Go to properties of the file, and enter what you want, OK. You can also select multiple files, choose properties, then change only the attributes you want to be the same, and OK. UpdateMedia does the rest. There are plenty of other mp3 editors as well..... but I agree a single Flash(y) interface like golgoj5 started to create/modify playlists and attributes would be a huge boon! Hope he's still working on it!