Commit graph

21 commits

Author SHA1 Message Date
jesopo
b3a18da182 _call_shortener should take 2 more args 2020-03-08 23:59:31 +00:00
jesopo
0cdd3d5b6c urllib was meant for yourls.py not shorturl.py 2020-03-08 23:58:24 +00:00
jesopo
042688ce77 add urllib import 2020-03-08 23:56:00 +00:00
jesopo
e41ea90c62 support extended url shorteners that take server and optional context (channel) 2020-03-08 23:34:41 +00:00
jesopo
49d9cbdb87 exports.get_one() -> exports.get() 2020-03-08 14:14:00 +00:00
jesopo
3453479235 utilise @utils.export for function exporting in more places 2020-02-19 17:29:10 +00:00
jesopo
2d21dfa229 utils.http.Response.data should always be bytes - add .decode and .soup 2019-11-26 13:42:01 +00:00
jesopo
4bfb4c3200 Add IntRangeSetting, reorder OptionsSetting arg order 2019-08-30 14:40:54 +01:00
jesopo
03c7e8f066 return matching string from buffer.find() as most uses were redundantly regexing 2019-08-13 13:48:03 +01:00
jesopo
73fd3f37ce Allow url shorteners to be specified per-channel 2019-08-05 10:48:16 +01:00
jesopo
89cb69ed46 have !unshorten look back throgh logs for a url 2019-07-23 18:07:47 +01:00
jesopo
cb07a5d708 OptionsSetting ctor should have empty options when using options_factory 2019-06-29 23:23:57 +01:00
jesopo
19f716ab4c Implemnt _options_factory for OptionsSetting to have dynamic options 2019-06-29 22:26:28 +01:00
jesopo
ae9d099a41 Refactor set/channelset/serverset/botset in to 'utils.Setting' objects 2019-06-28 23:16:05 +01:00
jesopo
297c403248 add !unshorten 2019-06-26 18:09:39 +01:00
jesopo
2e41f93c4d add --depends-on hashflags to shorturl.py 2019-06-25 21:31:30 +01:00
jesopo
94dc2655e7 merge bitly code back in to shorturl.py as we use it for default shortener 2019-06-25 21:30:40 +01:00
jesopo
12181bfec6 Add system to have multiple url shorteners and chose which to use 2019-06-25 17:53:00 +01:00
jesopo
8797be9457 return unshortened url when shortening fails 2019-06-20 16:35:58 +01:00
jesopo
268c5adb3c Add depends-on hashflags to relevant modules 2019-05-25 21:40:06 +01:00
jesopo
ed57ac7c17 Move isgd.py to shorturl.py and switch back to using bit.ly 2019-05-01 08:17:48 +01:00
Renamed from modules/isgd.py (Browse further)