diff -u pastebinit-0.9/debian/changelog pastebinit-0.9/debian/changelog --- pastebinit-0.9/debian/changelog +++ pastebinit-0.9/debian/changelog @@ -1,3 +1,9 @@ +pastebinit (0.9-0ubuntu1.1) hardy; urgency=low + + * patched for compatibility with new pastebinit.com API (LP #526849) + + -- Arand Nash Sun, 04 Apr 2010 13:10:03 +0200 + pastebinit (0.9-0ubuntu1) hardy; urgency=low * New upstream release (0.9) only in patch2: unchanged: --- pastebinit-0.9.orig/pastebinit +++ pastebinit-0.9/pastebinit @@ -36,16 +36,15 @@ def getParameters(website, content, user, jabberid, version, format, parentpid, permatag, title, username, password): "Return the parameters array for the selected pastebin" params={} - # pastebin.com v0.50 + # pastebin.com 2010-02-24 (new owner + API) if re.search("http://((([a-zA-Z0-9\-_\.]*)(pastebin\.com)))", website) and not website == "http://www.pastebin.com": - params['poster'] = user - params['code2'] = content - params['version'] = version - params['parent_pid'] = parentpid #For reply, "" means homepage (new thread) - params['format'] = format #The format, for syntax hilighting - params['paste'] = "Send" - params['remember'] = "0" #Do you want a cookie ? - params['expiry'] = "f" #The expiration, f = forever + params['page'] = "/api_public.php" + params['paste_name'] = user + params['paste_code'] = content + params['paste_format'] = format #The format, for syntax hilighting + params['paste_expire_date'] = "N" #The expiration, N = no expiry + params['submit'] = "submit" + params['regexp'] = '^http://.*pastebin.com/(.*)$' elif website == "http://pastebin.ca": params['name'] = user params['content'] = content