parrisserver 

Developer Scripts: 7
Posts: 146
Thanked 7 times
|
Added April 21, 2012 at 10:31 pm
USING PLAYON ON ,WII, AND VMCPLAYIT INSIDE WINDOWS MEDIA CENTER
COMCAST INTERNET
WINDOWS SERVER 2008R2 (64BIT)
AMD ATHLON DUAL CORE 4.0 RAM
|
tremendoza

Posts: 20
Thanked 0 times
|
Added April 22, 2012 at 4:16 pm
I hope someone can help me out here. I'm completely new to this but I catch on quickly and I'm trying to make a script for mastertoons.com but every time I try to parse links using folder parser I get "the magic number in Gzip header is incorrect"... I'm at a loss. Thanks!
|
Jeromy 

Admin
Developer Scripts: 47
Posts: 856
Thanked 40 times
|
Added April 22, 2012 at 4:57 pm
@tremendoza wrote:
I hope someone can help me out here. I'm completely new to this but I catch on quickly and I'm trying to make a script for mastertoons.com but every time I try to parse links using folder parser I get "the magic number in Gzip header is incorrect"... I'm at a loss. Thanks!
post the Script Maker project file, so I can take a look.
devices:
PlayStation 3
WDTV Live Plus HD
Wii
XBMC
|
tremendoza

Posts: 20
Thanked 0 times
|
Added April 22, 2012 at 5:40 pm
So here's the file... I haven't been able to find a single website that lets me view its source with the script maker either.
|
Jeromy 

Admin
Developer Scripts: 47
Posts: 856
Thanked 40 times
|
Added April 23, 2012 at 6:55 pm
@tremendoza wrote:
So here's the file... I haven't been able to find a single website that lets me view its source with the script maker either.
That website has a malformed GZip compression issue that normal browsers can decode, but the script maker cannot.
Save this code as a .lua and load it into PlayOn. The check the log and see if PlayOn decoded the website
local s = GetURL('http://mastertoons.com/New-Episodes.php')
_l(s)
_sm("Done")
devices:
PlayStation 3
WDTV Live Plus HD
Wii
XBMC
|
SPONSOR
|
|
Jeromy 

Admin
Developer Scripts: 47
Posts: 856
Thanked 40 times
|
Added April 23, 2012 at 7:17 pm
That website has a malformed GZip compression issue that normal browsers can decode, but the script maker cannot.
I take this back. I found and fixed the bug in the Script Maker, but the bug is present in PlayOn, so it will not work until they update the code. I've email one of the developers with the updated code and it's up to them to fix it. I do not know if or when they will.
You may need to look at creating a http object within code to work around this bug.
Also @tremendoza do not connect your code block to the folder parser. Connect it to the root object.
devices:
PlayStation 3
WDTV Live Plus HD
Wii
XBMC
|
tremendoza

Posts: 20
Thanked 0 times
|
Added April 23, 2012 at 10:03 pm
Ok.. In any case, for the assistance, I appreciate it. There's also this website "anilinkz.com" that I'd like to script but accessing it doesn't work either. I get this error 'system.net.webexcpetion: the remote server returned an error: (403) forbidden'... Can you point me in the right direction?
|
tremendoza

Posts: 20
Thanked 0 times
|
Added April 24, 2012 at 8:40 am
So I'm also working on this script as well but it won't play videos when I select them. PlayOn gets thumbs, folders and list order no problem but none of them start when I hit the play button. Can someone take a look and tell me what I'm missing? Thanks.
|
Jeromy 

Admin
Developer Scripts: 47
Posts: 856
Thanked 40 times
|
Added April 24, 2012 at 6:34 pm
@tremendoza wrote:
Ok.. In any case, for the assistance, I appreciate it. There's also this website "anilinkz.com" that I'd like to script but accessing it doesn't work either. I get this error 'system.net.webexcpetion: the remote server returned an error: (403) forbidden'... Can you point me in the right direction?
You'll need to trick that website into thinking your script is a normal browser by using the GetURLX() function. This function is aliased in the Script Maker as Post URL. See the attached project file.
devices:
PlayStation 3
WDTV Live Plus HD
Wii
XBMC
|
tremendoza

Posts: 20
Thanked 0 times
|
Added April 24, 2012 at 11:30 pm
Thanks for the nudge @Jeromy, It works now. Can you tell me why my master toons script won't play anything? Also, now that I can get virtual folders from anilinkz, how do I link them to a video parser or another folder parser. Check out the what I've done so far.
|
Jeromy 

Admin
Developer Scripts: 47
Posts: 856
Thanked 40 times
|
Added April 25, 2012 at 5:46 am
@tremendoza wrote:
Thanks for the nudge @Jeromy, It works now. Can you tell me why my master toons script won't play anything? Also, now that I can get virtual folders from anilinkz, how do I link them to a video parser or another folder parser. Check out the what I've done so far.
Your Master Toons won't play because the player does not automatically start. You will need to click the play button.
You need to watch all the videos in the Help menu of the Script Maker. If you watch all the videos you will have a much better understanding of how Scripts interact with PlayOn, and how PlayOn interacts with websites.
devices:
PlayStation 3
WDTV Live Plus HD
Wii
XBMC
|
tremendoza

Posts: 20
Thanked 0 times
|
Added April 25, 2012 at 8:12 am
Sorry for jumping into this in such a green state, I hope I'm not beginning to try your patience @Jeromy. I have watched the videos and the result was being able to put that bit of code together for the anilinkz sample I uploaded in my previous post. Please look at it and tell how I can link a video parser to it, I can't figure out what function to call to use the data from the links it provides. About the Master Toons, I've tried simulate mouse click but maybe I did it wrong...
|
dlflannery 

Developer Scripts: 2
Posts: 49
Thanked 3 times
|
Added April 29, 2012 at 7:13 am
Jeromy,
Script Maker for Windows looks great! I've just installed it and started viewing the help videos (really helpful!) and experimenting with the design interface. One thing that threw me at first is how to make connections. I got the impression you should click and drag while actually you must click once at each end of the connection. Maybe this has already been mentioned earlier in this thread but there doesn't seem to be a search function on this forum.
EDIT: Sorry, the videos clearly say to click the plug then click the socket. My bad!
Last edited on April 29, 2012 at 05:37
Devices: Logitech Revue Google TV, TiVo HD and PyTivo, iPod Touch, iPad4
|
tremendoza

Posts: 20
Thanked 0 times
|
Added May 01, 2012 at 10:09 am
I'm trying pull a single player out of a number of different players on a page for example: http://www.gogoanime.com/naruto_shippuden_episodes_25, can someone help me out? I parsed the page with a video parser to get a list of videos but it resolved into a page with multiple players.
Last edited on May 01, 2012 at 10:19
|
tremendoza

Posts: 20
Thanked 0 times
|
Added May 03, 2012 at 9:45 pm
@Jeromy can you give me an example of how I would go about using the "if/then" item in the script maker. I'd like to use it to switch to an alternate folder parser if the first one doesn't retrieve any data. Thanks.
|
sippin30

Posts: 3
Thanked 0 times
|
Added May 07, 2012 at 4:19 pm
Love the script maker. I was wondering if u could make a video on how to make a script that includes tv shows and movies. Such as the script "tv links". Thanks!
|
Jeromy 

Admin
Developer Scripts: 47
Posts: 856
Thanked 40 times
|
Added May 09, 2012 at 6:33 am
@tremendoza wrote:
I'm trying pull a single player out of a number of different players on a page for example: http://www.gogoanime.com/naruto_shippuden_episodes_25, can someone help me out? I parsed the page with a video parser to get a list of videos but it resolved into a page with multiple players.
Last edited on May 01, 2012 at 10:19
Sorry about the delay.
I would use a Video Parser to get a list of the players. See the attached script. You will need to add a simulate click object as well.
devices:
PlayStation 3
WDTV Live Plus HD
Wii
XBMC
|
Jeromy 

Admin
Developer Scripts: 47
Posts: 856
Thanked 40 times
|
Added May 09, 2012 at 6:38 am
@tremendoza wrote:
@Jeromy can you give me an example of how I would go about using the "if/then" item in the script maker. I'd like to use it to switch to an alternate folder parser if the first one doesn't retrieve any data. Thanks.
That's more complex than I think the Script Maker should be used to handle. BUT I think it's possible by enclosing your Folder Parsers inside functions and using code blocks to call the different functions.
devices:
PlayStation 3
WDTV Live Plus HD
Wii
XBMC
|
dlflannery 

Developer Scripts: 2
Posts: 49
Thanked 3 times
|
Added May 10, 2012 at 1:38 pm
Jeromy,
I downloaded your "multiple players" project to study it as a learning experience. I added code to only resolve the first (topmost) player and to simulate the mouse click, and it worked. I see two issues however, which I hope you or someone can help me with:
1. On this player, and on all players I have programmed that require mouse clicks, the simulated click sometimes doesn't work (so I just get the player waiting to be clicked). I'm not saying I've had a site that NEVER worked. The problem is most likely to occur the first time I visit a site in a PlayOn session. Once that static web page gets cached, no amount of retries will get the mouse click to work unless I either load another site or restart the PlayOn server (thus clearing the cache, I assume). I suspect this is a timing issue and is worse on sites that are slow loading. So I wonder if inserting some delay, perhaps just before the simulated click, would help? If so, my next question is how? It doesn't look like a sleep function is part of lua code.
2. The Anime video from the first (topmost) player of the multiple-players site has its sub-titles cropped off the bottom. I don't know if that could be explained by the 30 pixel clip in GetPlayerViewingRectangle -- it seems like more than 30 pix but I need to try removing that. But that raises other questions in my mind, such as:
2a. In every example I've seen the get_BrowserSize() function is overridden to return 640x480. What determines what are the optimum numbers for this? And do they relate to the clipping described above?
2b. Would the zoom function be a good way to bring the clipped subtitles into view?
Thanks for your work and Script Maker -- I'm having a lot of fun.
EDIT: Removing the 30 pix clip at the bottom restored the subtitles. (But questions 2a and 2b still stand!)
Last edited on May 10, 2012 at 02:06
Devices: Logitech Revue Google TV, TiVo HD and PyTivo, iPod Touch, iPad4
|
Jeromy 

Admin
Developer Scripts: 47
Posts: 856
Thanked 40 times
|
Added May 10, 2012 at 2:48 pm
@dlflannery wrote:
Jeromy,
1. On this player, and on all players I have programmed that require mouse clicks, the simulated click sometimes doesn't work (so I just get the player waiting to be clicked). I'm not saying I've had a site that NEVER worked. The problem is most likely to occur the first time I visit a site in a PlayOn session. Once that static web page gets cached, no amount of retries will get the mouse click to work unless I either load another site or restart the PlayOn server (thus clearing the cache, I assume). I suspect this is a timing issue and is worse on sites that are slow loading. So I wonder if inserting some delay, perhaps just before the simulated click, would help? If so, my next question is how? It doesn't look like a sleep function is part of lua code.
I don't know why the simulated mouse click doesn't work every time. That may be a bug with PlayOn. You may want to use the Director Code block to try and simulate the mouse click at different stages of the player interaction. Check out the wiki
2a. In every example I've seen the get_BrowserSize() function is overridden to return 640x480. What determines what are the optimum numbers for this? And do they relate to the clipping described above?
Setting browser size is literally telling PlayOn to set the size of it's internal browser to that size. I intentionally set the size because if you point directly to a player, not a web page with a player, then the browsers tends to stretch the flash player to fit and this can cause slow play back issues. It's safe to override this for most cases.
2b. Would the zoom function be a good way to bring the clipped subtitles into view?
I've never encountered a situation where zoom would helped. Last I checked it was a function that did not even work on some PC's, so it would not be prudent to rely on it. I think it's best to just clip out what you do or do not need by adjusting the viewing rectangle.
devices:
PlayStation 3
WDTV Live Plus HD
Wii
XBMC
|