PageRenderTime 40ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/DDG/Spice/KhanAcademy.pm

https://github.com/robertbrook/zeroclickinfo-spice
Perl | 26 lines | 20 code | 6 blank | 0 comment | 1 complexity | 6e096f0d7249acb5326f361d5e0f8108 MD5 | raw file
  1. package DDG::Spice::KhanAcademy;
  2. use DDG::Spice;
  3. primary_example_queries "khan academy videos";
  4. secondary_example_queries "khan trigonometry";
  5. description "Shows Khan Academy videos";
  6. name "Khan Academy";
  7. code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/KhanAcademy.pm";
  8. icon_url "/i/khanacademy.org.ico";
  9. topics "math";
  10. category "reference";
  11. attribution web => ['http://thoughtherder.org','Arlo Breault'],
  12. email => ['arlolra@gmail.com','Arlo Breault'],
  13. github => ['https://github.com/arlolra','arlolra'];
  14. spice to => 'http://gdata.youtube.com/feeds/api/videos?&author=khanacademy&max-results=50&alt=json-in-script&callback={{callback}}&v=2&q=$1';
  15. triggers any => "khan", "khan academy";
  16. handle remainder => sub {
  17. return $_ if $_;
  18. return;
  19. };
  20. 1;