Coder Social home page Coder Social logo

ckreutzer / python-tvrage Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 8.0 248 KB

python-tvrage is a client interface for tvrage.com's XML-based api feeds (see http://www.tvrage.com/xmlfeeds.php).

Home Page: http://pypi.python.org/pypi/python-tvrage/

License: Other

Python 100.00%

python-tvrage's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

python-tvrage's Issues

API.latest_episode returns None

When calling latest_episode on a TV show where a new season has been announced, but episodes from the season are yet to air, None will be returned.

An example

>>> import tvrage.api
>>> show = tvrage.api.Show('Community');
>>> show.latest_episode
>>> show.season(4).episode(13).airdate
datetime.date(2013, 5, 9)
>>> show.season(5).episode(1).airdate
datetime.date(2014, 1, 2)

As it can be seen, latest_episode returns nothing where it should have returned season 4, episode 13.

from exceptions import failes

all tests pass except for the exceptions because the import doesn't work. I replaced the from and just imported exceptions to run the test api. great library, thanks.

chrisallick:tvrage chrisallick$ ls
init.py api.py api.pyc api_tests.py exceptions.py feeds.py feeds.pyc quickinfo.py quickinfo_test.py util.py util.pyc
chrisallick:tvrage chrisallick$ python api_tests.py
Traceback (most recent call last):
File "api_tests.py", line 33, in
from api import Show
File "/Users/chrisallick/Downloads/tvrage/api.py", line 35, in
from exceptions import (ShowHasEnded, FinaleMayNotBeAnnouncedYet,
ImportError: cannot import name ShowHasEnded
chrisallick:tvrage chrisallick$ python
Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

import exceptions
^D
chrisallick:tvrage chrisallick$

TVRage connection forcibly closed

I am getting

tvrage error [Errno 10054] An existing connection was forcibly closed by the remote host.

I think this relates to urllib2 and the connection timing out. Is there a way to keep the connection alive? I have seen some mention of this issue on stackoverflow with a few solutions, one of which includes moving to urllib3.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.