znuff / limnoria-tvmaze Goto Github PK
View Code? Open in Web Editor NEWA quick and dirty TVMaze.com plugin for Limnoria/Supybot.
A quick and dirty TVMaze.com plugin for Limnoria/Supybot.
Hey, Thanks for the plugin
So, when a show doesn't have a schedule (like all Netflix and Amazon shows), the bot errors out when using --details view. Example: !tv Stranger things
If you need a log let me know but you should be able to reproduce easily.
Error: TypeError: 'NoneType' object is not subscriptable
Occurs on shows with no episodes yet, like http://www.tvmaze.com/shows/2781/twin-peaks
(I have converted to python3 with the 2to3 tool)
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/supybot/callbacks.py", line 1274, in _callCommand
pass
File "/usr/lib/python3.4/site-packages/supybot/utils/python.py", line 91, in g
finally:
File "/usr/lib/python3.4/site-packages/supybot/callbacks.py", line 1255, in callCommand
msg.args[0], msg.prefix)
File "/usr/lib/python3.4/site-packages/supybot/commands.py", line 1080, in newf
f(self, irc, msg, args, _state.args, *_state.kwargs)
File "/home/.../.supybot/plugins/tvmaze/plugin.py", line 57, in tv
show['premiered'][:4], show['status'])
TypeError: 'NoneType' object is not subscriptable
ERROR 2015-09-29T09:30:44 supybot Exception id: 0xb2045
If the show have no previous episodes the 'tv' command throws this error:
Error: KeyError: 'previousepisode'
Experienced this with the show Con Man.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.