Merge lp:~blueyed/pastebinit/pastebin-dpaste.com into lp:pastebinit

Proposed by Daniel Hahler
Status: Merged
Merged at revision: 223
Proposed branch: lp:~blueyed/pastebinit/pastebin-dpaste.com
Merge into: lp:pastebinit
Diff against target: 22 lines (+18/-0)
1 file modified
pastebin.d/dpaste.com.conf (+18/-0)
To merge this branch: bzr merge lp:~blueyed/pastebinit/pastebin-dpaste.com
Reviewer Review Type Date Requested Status
Paul Bissex (community) Needs Fixing
Pastebinit Developers Pending
Review via email: mp+203654@code.launchpad.net
To post a comment you must log in.
208. By Daniel Hahler <email address hidden>

dpaste.com: send hold=on

This will keep the paste for 30 days after last access.

Revision history for this message
Paul Bissex (paul-bissex) wrote :

Hi, I run dpaste.com and I'm psyched to see this in the pipeline. Here are few corrections, mostly stemming from an upgrade to the site in May 2014.

* The current API is at http://dpaste.com/api/v2/ (v1 API is deprecated but does still work)
* The format field is now called 'syntax' (http://dpaste.com/api/v2/syntax-choices/). If it is empty, it will default to plain text ('text')
* The 'hold' option is gone; now 'expiry_days' can be set from 1 to 365.

Let me know if I can provide any other help.

review: Needs Fixing
209. By Daniel Hahler <email address hidden>

dpaste.com: update for new API

Ref: https://code.launchpad.net/~blueyed/pastebinit/pastebin-dpaste.com/+merge/203654/comments/598200

Revision history for this message
Daniel Hahler (blueyed) wrote :

Paul, thanks for your feedback. I have incorporate it.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'pastebin.d/dpaste.com.conf'
2--- pastebin.d/dpaste.com.conf 1970-01-01 00:00:00 +0000
3+++ pastebin.d/dpaste.com.conf 2014-11-26 11:46:47 +0000
4@@ -0,0 +1,18 @@
5+[pastebin]
6+basename = dpaste.com
7+regexp = http://dpaste.com
8+
9+[format]
10+user = poster
11+content = content
12+title = title
13+format = syntax
14+page = page
15+expiry_days = expiry_days
16+
17+[defaults]
18+# Empty means "text".
19+format =
20+page = /api/v2/
21+# Keep it for 30 days after last access. Otherwise only for 7 days.
22+expiry_days = 30

Subscribers

People subscribed via source and target branches

to all changes: