Page 7 of 15

Re: MediaMonkey

Posted: Tue Oct 20, 2009 5:40 am
by Pako
jitterjames wrote:One little trick I added manually to the plugin on my machine...

When loading a playlist by filter, I changed the code so that it would start playing after the first 10 songs were added to the now playing list, instead of waiting to the end. That way, it may take a long time to complete but it seems like it is responding quickly. :twisted:
Yes, this is a great idea. I'll just implement. Just means it probably will tonight. Now it's 07:30 in the morning and it seems, I'll have to work today also :) .
Pako

Re: MediaMonkey

Posted: Tue Oct 20, 2009 5:26 pm
by Pako
jitterjames wrote:I noticed that you have a website. Because of all the hard work I am making you do on this plugin, I would like to help you if you want to make an English version of your site. I don't know if this would be useful to you or not.
It might take a while because I am quite busy at the moment, but I would be happy to help you when I have time.
Thank you for the offer, but now I do not need to do something with my website. By the way - some already have and in the English version:
http://ruckl.wz.cz/egon_en/egon_en.php
http://ruckl.wz.cz/biprog_en/biprog_en.php
http://ruckl.wz.cz/socketboard_en/socketboard_en.php
http://ruckl.wz.cz/bootloader_en/bootloader_en.php
Translation pages for me made one friend from Slovakia. I know him also only through the internet.
He deals with something completely different and EventGhost not used.
jitterjames wrote:One little trick I added manually to the plugin on my machine...
When loading a playlist by filter, I changed the code so that it would start playing after the first 10 songs were added to the now playing list, instead of waiting to the end. That way, it may take a long time to complete but it seems like it is responding quickly. :twisted:
So from that I do not feel good.
Before I went home from work, I tried it several times and always ended in an error message.
Now I'm home. At home I have a better computer (faster and much more RAM) and here it works.
But I am not satisfied with the way I had imagined:
The problem is the time, when MM already play, but still perform load of playlist.
At that time, I must not send to EventGhost no command concerning MediaMonkey (eg Next).
Otherwise, the EG in a state of 'busy' (yellow icon) and all other commands are deferred until the operation "Load Playlist ..." is completed.
Under these circumstances, I see only two possible ways:
1) To refrain from implementing this option
2) This option offered as an optional (checkbox) with an explicit warning to the unpleasant behavior
and the possibility crash for weaker computer.
Pako

Re: MediaMonkey

Posted: Tue Oct 20, 2009 7:58 pm
by jitterjames
ok, let me see if I can duplicate that behaviour on my machine.

Re: MediaMonkey

Posted: Tue Oct 20, 2009 10:07 pm
by jitterjames
Pako wrote:
jitterjames wrote: The problem is the time, when MM already play, but still perform load of playlist.
At that time, I must not send to EventGhost no command concerning MediaMonkey (eg Next).
Otherwise, the EG in a state of 'busy' (yellow icon) and all other commands are deferred until the operation "Load Playlist ..." is completed.
I have this problem anyway, using the plugin without modifying it. If I load a playlist by filter that is very large, and then click play before it has finished loading, bad things happen... I get the yellow icon and when the playlist is finished loading EG does this:

Code: Select all

MediaMonkey: Load Playlist by Filter: 
Main.MM_stoped
PS3.Button.Play
      MediaMonkey: Play
         Stack trace (most recent call last) (1194):
           File "threading.pyc", line 497, in __bootstrap
           File "threading.pyc", line 525, in __bootstrap_inner
           File "threading.pyc", line 477, in run
           File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 179, in __MainLoop
           File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 202, in __DoOneEvent
           File "C:\Program Files\EventGhost\eg\Classes\ActionThread.py", line 78, in HandleAction
           File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 72, in __call__
           File "C:\Program Files\EventGhost\eg\Classes\EventGhostEvent.py", line 178, in Execute
           File "C:\Program Files\EventGhost\eg\Core.py", line 216, in RunProgram
           File "C:\Program Files\EventGhost\eg\Classes\ActionItem.py", line 242, in Execute
           File "C:\Program Files\EventGhost\eg\Classes\ActionBase.py", line 168, in CallWrapper
           File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 983, in __call__
           File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 890, in SendCommand
           File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 309, in CallWait
         Error in Action: "MediaMonkey: Play"
         Traceback (most recent call last) (1194):
           File "C:\Program Files\EventGhost\eg\Classes\ActionBase.py", line 168, in CallWrapper
           File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 983, in __call__
           File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 890, in SendCommand
           File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 311, in CallWait
         Exception: Timeout in MediaMonkeyWorkerThread.CallWait()
I don't think the problem is caused by asking mediaMonkey to start playing immediately.

Is the problem coming from the 'trigger events' ? If yes, then I think you should just forget about the trigger events. I don't think it is worth the trouble.

Re: MediaMonkey

Posted: Thu Oct 22, 2009 12:41 pm
by Pako
The last two days I have not had time. Today I tried something and it seems that I know how to do it.
But it will be enough work and so it still will take some time.
Pako

Re: MediaMonkey

Posted: Thu Oct 22, 2009 1:49 pm
by jitterjames
let me know if I can help in any way

Re: MediaMonkey

Posted: Thu Oct 22, 2009 2:50 pm
by Pako
Not yet. I will only need to test and make linguistic revision.
Something you can do just now. I have one idea and I would be interested in your opinion:

1) I want to cancel the checkbox "Load only accessible tracks ..."

2) I want to create a new action "Get not accessible tracks". The result should be a window with a list of unavailable songs
and should be option to delete selected (or all) of these songs from the library.

3) To use the free checkbox, I want to offer a new option "Clear content the Now Playing window before loading playlist"
or "Learning songs add to current playlist Now Playing" (I need to find shorter and more accurate term).
I hope that the meaning of section 3 is clear.

Pako

Re: MediaMonkey

Posted: Thu Oct 22, 2009 3:38 pm
by jitterjames
Pako wrote: 1) I want to cancel the checkbox "Load only accessible tracks ..."
OK with me, I never use that.
Pako wrote: I want to create a new action "Get not accessible tracks". The result should be a window with a list of unavailable songs and should be option to delete selected (or all) of these songs from the library.
I would call this: "Show/Edit inaccessible tracks" or "Show/Edit tracks that MediaMonkey cannot access"
This might be useful to some people (not me) but it might make more sense to do with with a script/hotkey.
Pako wrote: 3) To use the free checkbox, I want to offer a new option "Clear content the Now Playing window before loading playlist"
or "Learning songs add to current playlist Now Playing" (I need to find shorter and more accurate term).
I hope that the meaning of section 3 is clear.
Pako
I like the first idea, I think I understand it to mean "Clear the now playing playlist before adding new tracks".

the second part: "Learning songs add to current playlist Now Playing"
I don't understand this. Can you explain it a different way? What do you mean by "Learning Songs"?

Re: MediaMonkey

Posted: Thu Oct 22, 2009 5:48 pm
by Pako
jitterjames wrote:the second part: "Learning songs add to current playlist Now Playing"
I don't understand this. Can you explain it a different way? What do you mean by "Learning Songs"?
Well, again mine bad dictionary :) .
It should be something like "found" or "obtained".
This second term (Found songs add to current playlist Now Playing) is actually the opposite of the first.
I did not know what is more natural in English.

I also forgot an important point number 4:
4) I intend to cancel the option "With/without waiting" and a result return solely as a payload of event.
I think that almost nobody knew that a result exists.
Pako

Re: MediaMonkey

Posted: Thu Oct 22, 2009 6:24 pm
by jitterjames
OK. I understand. We are adding songs.

the options is to either:

- clear the playlist first
- leave the playlist as it is, and ADD the new songs to the end.

correct?
4) I intend to cancel the option "With/without waiting" and a result return solely as a payload of event.
I think that almost nobody knew that a result exists.
That is probably a good idea. I don't know if anyone will miss it, but it is better to keep it as simple as possible. I think maybe there are too many options now. This is partly my fault of course.

Actually I am surprised that more people are not commenting on this thread. MediaMonkey and EventGhost are both great, and your plugin is one reason I started using them both! :D There must be many people using your plugin, but I guess they are just happy with the old version.

Re: MediaMonkey

Posted: Thu Oct 22, 2009 6:37 pm
by Pako
jitterjames wrote:OK. I understand. We are adding songs.
the options is to either:
- clear the playlist first
- leave the playlist as it is, and ADD the new songs to the end.
correct?
It is entirely accurate.
jitterjames wrote:Actually I am surprised that more people are not commenting on this thread. MediaMonkey and EventGhost are both great, and your plugin is one reason I started using them both! :D There must be many people using your plugin, but I guess they are just happy with the old version.
I also do not understand, but most people are probably too lazy. If I understood, as well Bitmonster complained about it.
Pako

Re: MediaMonkey

Posted: Wed Oct 28, 2009 7:37 pm
by Pako
So here is another version. Please test.
I think it's much better.
Time, when EG not executed a commands immediately, still exists.
But first, this time is now much shorter and second,
this time MediaMonkey does not respond nor the mouse clicks.
Please re-perform linguistic proofreading.
I made changes in more places.

Pako

Re: MediaMonkey

Posted: Wed Oct 28, 2009 7:45 pm
by jitterjames
OK. I'm busy with REAL work right now but I'll take a look as soon as I get a chance.

Re: MediaMonkey

Posted: Thu Oct 29, 2009 9:28 pm
by jitterjames
are you sure you tested this version? Has anyone else tried it? Maybe it is just my computer but I am having so many problems with this that I don't know where to start.

Let's just say it is completely unstable. I have been having some other issues with my computer so maybe it is just me.

Can anyone else verify that is version works OK?

Re: MediaMonkey

Posted: Thu Oct 29, 2009 9:48 pm
by jitterjames
OK, lets just start with load playlist by filter:

here's the result
Unhandled exception in WorkerThread <MediaMonkeyWorkerThread>:
Callers stack:
File "threading.pyc", line 497, in __bootstrap
File "threading.pyc", line 525, in __bootstrap_inner
File "threading.pyc", line 477, in run
File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 179, in __MainLoop
File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 221, in __DoOneEvent
File "C:\Program Files\EventGhost\eg\Classes\ActionThread.py", line 83, in HandleAction
File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 79, in __call__
File "C:\Program Files\EventGhost\eg\Classes\UndoHandler\Configure.py", line 31, in DoExecute
File "C:\Program Files\EventGhost\eg\Classes\ActionItem.py", line 252, in Execute
File "C:\Program Files\EventGhost\eg\Classes\ActionBase.py", line 168, in CallWrapper
File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 2538, in __call__
Traceback (most recent call last) (1194):
File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 202, in __DoOneEvent
File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 225, in HandleAction
File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 72, in __call__
File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 505, in LoadFilterPlaylist
File "C:\Program Files\EventGhost\plugins\MediaMonkey\__init__.py", line 403, in LoadPlaylist
TypeError: object.__new__() takes no parameters
and here's the macro

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1194">
    <Action>
        MediaMonkey.LoadPlaylistByFilter(u'', 0, [[2, 6, u'jack']], False, 0, 0, True, False, 100, 0, 0, 0, True)
    </Action>
</EventGhost>
I will try this on another computer, and I will check to see if there is a newer version of MediaMonkey I can download, but if you find a problem with the plugin please let me know.

Load Playlist by Name seems to work, but SQL and Filter don't. Other basic functions seem OK.

Thanks, Jitter