Commit Graph

28 Commits

Author SHA1 Message Date
Bryan Koroleski fe3ed74057 Accounts for situations where no videos are returned.
Sometimes, Youtube will say that there is one result,
but won't return anything.
2014-09-25 13:22:20 -05:00
stoneLeaf 420bb2bf21 Youtube plugin no longer relies on locale (fixes #53)
The plugin relied on the locale module to provide digit grouping of the view count. It could cause various encoding issues.
The digit grouping is now based on a simple homemade function.
2014-04-02 01:20:38 -07:00
Ryan Hitchman cb8c437772 flake8 + autopep8 (whitespace fixes) 2014-01-14 13:12:37 -08:00
Ryan Hitchman ab88f2d50d youtube: add '.yt' alias 2014-01-08 17:29:35 -08:00
stoneLeaf ff1832c471 Fixed a locale issue in the youtube plugin
locale.format() can throw a UnicodeDecodeError in some cases. The use of str.decode() prevents its occurrence.
See http://stackoverflow.com/questions/4082645/using-python-2-xs-locale-module-to-format-numbers-and-currency
2012-04-12 01:52:32 +02:00
rainyday 815efcb902 Edited youtube filter so bot can return limited information on
restricted videos (ex: not allowed in bot's region).
2010-12-03 10:57:14 +08:00
Ryan Hitchman 6452c1169c disable !command, enable fuzzy command matching, make help automatic, add disabled_command (for fuzzy command match disabling), misc bugs 2010-05-07 17:16:44 -06:00
Ryan Hitchman e55774b770 refactor http (and html, xml, json) handling into util/http.py (not done for dotnetpad), fix mtg, remove dict & goonsay 2010-04-22 21:47:41 -06:00
Ryan Hitchman 24a837c606 add hook.regex -- regex search against private messages 2010-03-11 17:19:36 -07:00
Ryan Hitchman 1e6c08fb30 rewrite hooking and dispatcher 2010-03-11 16:34:54 -07:00
melonhead b7ef6968f7 Add help for .youtube 2010-03-05 23:09:36 +00:00
melonhead ea70af8ef1 Youtube: more flexible url matching
Youtube: support for youtu.be and yooouuutuuube urls
2010-03-05 03:04:25 +00:00
Ryan Hitchman 253881f4b4 PEP8 compliance + clean dotnetpad 2010-02-28 19:32:41 -07:00
Ryan Hitchman ab8f316eb9 prettify gcalc, make youtube search use jsonc interface 2010-02-28 18:39:29 -07:00
Ryan Hitchman a4ada7893c remove debug print lines that melonhead left in 2010-02-28 18:16:34 -07:00
melonhead 663dfe884b Hurf durf can't have subroutines with the same name 2010-03-01 01:12:10 +00:00
melonhead 51e5744d26 Moved youtube search method inside youtube.py 2010-03-01 01:08:54 +00:00
melonhead 08dfdb746d Added youtube search plugin 2010-02-28 13:09:56 +00:00
Ryan Hitchman f39b4bf9cf make youtube plugin notify about restricted content 2010-02-14 12:10:21 -07:00
Ryan Hitchman 56c1119443 rewrite youtube plugin again to use jsonc interface and report more information 2010-02-13 18:11:42 -07:00
Ryan Hitchman 9d139d8760 rewrite youtube plugin to use json instead of lxml.etree and to be more flexible 2010-02-12 22:13:55 -07:00
Hamled c183032774 Fix unintentional changes to plugin directory structure. 2010-01-16 20:24:36 -08:00
Hamled c8df4dfb38 Fix to twitter replied-to feature. Currently does not function correctly. 2010-01-16 20:12:17 -08:00
Ryan Hitchman 40be3038ab restructure utilities, harmonize imports, add doc on other bots 2009-07-08 11:04:30 -06:00
Ryan Hitchman 5ea26b8ff7 PEP8 compliance (only whitespace changes) 2009-04-17 18:57:18 -06:00
Ryan Hitchman 1810447e28 disabling youtube plugin for now 2009-03-16 18:58:19 -06:00
Ryan Hitchman 1000f6ede3 youtube.py and xml.etree.ElementTree -> lxml.etree 2009-03-16 18:55:54 -06:00
Ryan Hitchman d560cb90dc changing magical discipline from arcane to serpentine 2009-03-15 22:30:46 -06:00