Welcome
News:
Got some news to share? Post it in the
[Link Removed] You are not allowed to view links. Please login or register
Register or Login
General
Forum!
Pages: 1 ... 6 7 [8]
  Print  
Author Topic: Scripts Plugin (No longer required)  (Read 37254 times)
0 Members and 2 Guests are viewing this topic.
bobisms
Jr. Member
**

Times Thanked: 10
Posts: 76


View Profile
« Reply #105 on: February 03, 2010, 11:50:13 AM »


hottamale,

I think its the function below, I didn't save the code once I discovered I could pass utc to the VideoResourceX routine and it would translate to local time for me.

Bob

function foxnewsFormatDate(s)
-- 2010-02-02T19:16:54Z
-- 11/22/2009 12:33:00 PM
 local fudge = 5*60;

 local t={};
 t.isdst = 0;
 t.year,t.month,t.day,t.hour,t.min,t.sec = string.match(s,"(%d+)%-(%d+)%-(%d+)T(%d+)Sad%d+)Sad%d+)");
   
 local offset=os.difftime(os.time(), os.time(os.date("!*t",os.time() )));
 local stamp = os.date("%m/%d/%Y %r",os.time(t)+offset-fudge);

 return(stamp);
end
Logged

bobisms
ps3, wired connection, windows 7, 7Mbps down, and 892Kbps up
bobisms
Jr. Member
**

Times Thanked: 10
Posts: 76


View Profile
« Reply #106 on: February 04, 2010, 10:09:14 AM »

Hottamale,

The os.date command is the one that causes playon to crash (latest : 2.59.3684.65 on windows 7) with script plugin 0.9
Log(os.date("%Y-%m-%dT%TZ",0));

Under a linux install of lua, this works with an output as expected;
> print(os.date("%Y-%m-%dT%TZ",0));
1969-12-31T17:00:00Z

The os.time command works properly.

Bob
Logged

bobisms
ps3, wired connection, windows 7, 7Mbps down, and 892Kbps up
spat72
Full Member
***

Times Thanked: 1
Posts: 108



View Profile
« Reply #107 on: February 10, 2010, 03:35:54 PM »

suggestion - Please include updated dates in topic header with updates to the script plugin as it was doing before even though it is now being done through the new site. It is a little confusing.

I was prompted by a script to update the script plugin. When I checked this site and saw the last update as 11/12/2009 I was wondering what was up? Of course it didn't take long to figure it out, but it would help to lessen the confusion.

Also are updates to the scripts being mirrored here? If not maybe just eliminating all but a link to the script site would be better? That way things would be a little more fluid. Or providing only scripts on this site that are not provided on the script site if there are any like that.

Does that make any since?..........
Logged

OS: Windows 7 Home Premium 32bit (desktop)AMD Athlon X2
      Windows 7 Home Premium 64bit (laptop)AMD Turion Neo X2
DLNA: WDTV Live / Samsung BD-C5500
Connection: Wired
ISP: TWC 10Mb
Lawson380
Newbie
*

Times Thanked: 0
Posts: 2


View Profile
« Reply #108 on: March 03, 2010, 10:26:55 AM »

I've never used scripts before. I have the scripts plugin but I'm not sure how to download a script. Windows keeps saying that it doesn't know what to open it with and asking what I'd like to use [program]. What do I tell it?
Logged
hotTamale
Just Havin Fun
Administrator
Hero Member
*****

Times Thanked: 167
Posts: 1070


View Profile Email
« Reply #109 on: March 03, 2010, 11:43:11 AM »

Lawson,

The best source of scripts is the
[Link Removed] You are not allowed to view links. Please login or register
Register or Login
www.playonscripts.com
site.  You just download them to your desktop and copy them into the scripts folder C:\Program Files (x86)\MediaMall\plugins\Scripts, no (x86) for 32 bit systems.  Then restart playon then select the scripts plugin using your favorite DNLA client.  Select the script to play and enjoy.

hotTamale
Logged

PS3 Wired, PS3 Wireless, DSM-520
j2048b
Newbie
*

Times Thanked: 0
Posts: 1


View Profile
« Reply #110 on: March 17, 2010, 09:57:35 PM »

For some reason the only script showing up for me is this one:

Movieshare Movies.lua


even though i have a folder full of them,

how do i add them to the script plugin? I have tried everything i can read and think of, and still a no go!

help a script knew bee out!!

Logged
hotTamale
Just Havin Fun
Administrator
Hero Member
*****

Times Thanked: 167
Posts: 1070


View Profile Email
« Reply #111 on: March 18, 2010, 07:51:55 AM »

j2048b,

First have you restarted playon, easy mistake. Second, where are you looking when you say the only script that shows up is movshare?  If you are in Playon settings under plugins/Script Plugin, that list will only show scripts that have user options available.  If you are looking under scripts on your dlna device and you are using vista or win7, the scripts may have been copied into the scripts folder but may have been placed into the "compatability" folder.  In win explorer move to the scripts folder and look for a button labeled compatability files.  If it exists click it and the missing scripts should appear.  Just move them back to the scripts folder and restart playon.

hotTamale
Logged

PS3 Wired, PS3 Wireless, DSM-520
Guitaroomasta
Developer Tier 2
Full Member
*****

Times Thanked: 57
Posts: 150



View Profile
« Reply #112 on: April 03, 2010, 06:09:18 PM »

Hello all,
This is directed mainly at mopenstein but applies to everyone.  First and foremost thanks for the great plugin, it makes extending PlayOn much easier for novices like myself.  I have been working a script recently and I have come across what I believe is a bug in the provided str_unescape() function.  

I tried passing a URL encoded chunk of data to it and Lua kept crashing with the error: "System.UriFormatException: Invalid URI: There is an invalid sequence in the string."

After gradually narrowing the cause of the error I determined for sure that it is str_unescape() I found this very odd as I have used the function plenty of times before.  I have provided an example of the URL Encoded/Decocoded data in the attached text file because the forum kept automatically decoding and embeding the data.

I managed to work around the problem by using a simple function "unescape" from the "
[Link Removed] You are not allowed to view links. Please login or register
Register or Login
Programming for Lua
" online book that does the same exact thing as str_unescape().

I don't know what the problem is but something in the encoded data I provided is causing it fail in this rare instance.  I thought is might be something others may want to be aware of.

Thanks Again,
Guitaroomasta
« Last Edit: April 04, 2010, 01:03:43 AM by Guitaroomasta » Logged

Devices: PS3 (Wireless), Xbox 360 (Wireless) XBMC (On the same PC as the PlayOn Server)
PC: x86, Windows Vista, Core 2 Duo 2.0Ghz, 3GB Ram, NVIDIA 8400M GT
mopenstein
Administrator
Hero Member
*****

Times Thanked: 123
Posts: 757


View Profile
« Reply #113 on: April 03, 2010, 07:18:58 PM »

thanks, I look into it
Logged
Pages: 1 ... 6 7 [8]
  Print  
 
Jump to: