Commit graph

15 commits

Author SHA1 Message Date
jesopo
5eceb5655c Minor code stylisation in imgur.py 2019-02-25 09:59:38 +00:00
dngfx
6471360656
Update imgur.py 2019-02-25 09:01:52 +00:00
Dan
6771c3fec1 Switch to elif 2019-02-24 21:14:08 +00:00
Dan
ccd924d9e7 Remove superfluous json import and change datetime to match code standards. 2019-02-24 21:13:02 +00:00
Dan
4daba2b1ac Remove bold title, set NSFW_TEXT variable, fix bold spacing, fix PEP8 line breaks between definitions. Remove _imgur def and hook straight into code. 2019-02-24 21:10:25 +00:00
dngfx
0444f9c0b9
Update imgur.py
Remove debug logging cruft
2019-02-24 20:37:17 +00:00
dngfx
266cbbfe1e
Update imgur.py
Add auto-imgur for auto linking of imgur and make the linking a bit fancier.
2019-02-24 20:34:10 +00:00
jesopo
793d234a0b 'utils.http.get_url' -> 'utils.http.request', return a Response object from
utils.http.request
2018-12-11 22:26:38 +00:00
jesopo
18d055bb9e Check if a url is a gallery first, 'event' -> 'data' typo, actually return from
_prefix
2018-10-31 17:54:44 +00:00
jesopo
04e369a92d Use gallery API endpoint for gallery urls 2018-10-31 17:44:21 +00:00
jesopo
ff1d4da362 Support galleries in modules/imgur.py 2018-10-31 17:41:12 +00:00
jesopo
8212fc51eb imgur url hashids aren't always 7 characters 2018-10-31 16:29:24 +00:00
jesopo
bf6a740f7b Fix typo in modules/imgur.py that caused headers passed to utils.http.get_url
to be a set, not a dict. (',' -> ':')
2018-10-31 16:17:22 +00:00
jesopo
0066cb313e REGEX_IMAGE should be a compiled regex! 2018-10-31 16:16:31 +00:00
jesopo
f073613848 Add first version of modules/imgur.py 2018-10-31 16:12:28 +00:00