2011-07-29, 16:35
bad reply..........
t0mm0 Wrote:are you using a free account? if so you need to add the correct delay before accessing the video link (see this code from anarchintosh for a handy countdown function)
t0mm0
pythonn00b Wrote:nope, im using a real account, I just took it out when I posted the code here. I think im getting the correct url from m3gaupload and get a direct link. But maybe Im not using the cookies the right way and im getting it as a free user. How could I know?
for url in match:
url=url.replace(' ','%20')
addLink("SOURCE",url,'')
divingmule Wrote:Should there really be spaces in the url? You might try replacing with "%20"
Code:for url in match:
url=url.replace(' ','%20')
addLink("SOURCE",url,'')
t0mm0 Wrote:by 'real' account do you mean 'free' or 'premium'? i don't kniow anything about how premium accounts work as i don't have one, but free accounts require 25 seconds waiting before accessing the url, if you don't log in at all you need to wait 45 seconds.
you can try loading the page 'http://www.megaupload.com/?c=account' from your script and printing the html you get back - that will tell you what sort of account it is logged in as.
t0mm0
pythonn00b Wrote:guys, I got video
The problem was the path for the cookies, I was pointing to / just deleted that and looked in my current plugin folder and the login was successful and could scrap the correct link. Thats with a premium account.
t0mm0 Wrote:cool, glad you got it sorted!
hopefully the urlresolver stuff i'm currently working on will avoid the need for this complication in the future
t0mm0
pythonn00b Wrote:t0mm0, please add the usage of your modules in the top description, because I want to use the countdown module and I will have to go over it slowly(because Im really a newbie) to figure out how to use it.
If you could give me a hint it would be great(Y)
[b]countdown(time_to_wait,title='',text='')[/b]
time_to_wait = num of seconds to delay
title = title of dialog box (optional)
text = line of text to go in the dialog box (optional)
t0mm0 Wrote:that code is by anarchintosh, but it's pretty self explanatory:
Code:[b]countdown(time_to_wait,title='',text='')[/b]
time_to_wait = num of seconds to delay
title = title of dialog box (optional)
text = line of text to go in the dialog box (optional)
i think documentation is really important, so the urlresolver stuff will be fully documented in the code and with an example addon and probably a tutorial too, once it gets to a more stable state.
t0mm0.
pythonn00b Wrote:okay guys, I have cornered my error just want to know if you know anything about this..