rasjones / anarchintosh-projects

Automatically exported from code.google.com/p/anarchintosh-projects
0 stars 0 forks source link

180upload links don't work #177

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to watch 180upload link
2. Notice it doesn't work
3. You get a parsing error

What is the expected output? What do you see instead?
You can view the link

What version of the product are you using? On what operating system?
Linux XBMC 11. Plugin 1.1.12

Please provide any additional information below.
In default.py change the lines indicated below

def resolve_180upload(url):

    try:
        dialog = xbmcgui.DialogProgress()
        dialog.create('Resolving', 'Resolving 180Upload Link...')
        dialog.update(0)

        print '180Upload - Requesting GET URL: %s' % url
        html = net.http_GET(url).content
+      
+       data1 = re.search('<input type="hidden" name="op" value="(.+?)">', 
html).group(1)
+       data2 = re.search('<input type="hidden" name="id" value="(.+?)">', 
html).group(1)
+       data3 = re.search('<input type="hidden" name="fname" value="(.+?)">', 
html).group(1)
+
+       data = {'op': str(data1), 'id': str(data2), 'fname': str(data3), 
'usr_login':'', 'referer':'', 'method_free':'Free download'}
+
+       html = net.http_POST(url, data).content
 +      
        data1 = re.search('<input type="hidden" name="op" value="(.+?)">', html).group(1)
        data2 = re.search('<input type="hidden" name="id" value="(.+?)">', html).group(1)
        data3 = re.search('<input type="hidden" name="rand" value="(.+?)">', html).group(1)

        data = {'op': data1, 'id': data2, 'rand': data3, 'referer':url}^M

Original issue reported on code.google.com by yul...@gmail.com on 9 Jul 2012 at 10:40

Attachments: