This adds a simple rate limiter that tracks the last thirty (30) queries made by the library. If the 30th previous query was made within the last ten (10) seconds, the rate limiter will wait until that time has lapsed. This mechanism is currently blocking, and there is no switch to make it non-blocking. Fixes #49
Solved: For unknown reason, PagedIterator_parent changes its length. This sometimes makes PagedIterator.next() raise IndexError. ```python Traceback (most recent call last): File "/home/vagrant/.virtualenvs/omelete.v3/bin/django-admin", line 9, in <module> load_entry_point('Django==1.7.1', 'console_scripts', 'django-admin')() File "/home/vagrant/.virtualenvs/omelete.v3/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line utility.execute() File "/home/vagrant/.virtualenvs/omelete.v3/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 377, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/vagrant/.virtualenvs/omelete.v3/local/lib/python2.7/site-packages/django/core/management/base.py", line 288, in run_from_argv self.execute(*args, **options.__dict__) File "/home/vagrant/.virtualenvs/omelete.v3/local/lib/python2.7/site-packages/django/core/management/base.py", line 338, in execute output = self.handle(*args, **options) File "/vagrant/omelete/omelete/series/management/commands/import_series_tmdb.py", line 33, in handle for i, result in enumerate(itertools.chain(*[tmdb3.searchSeries(query=x) or  for x in search_keys])): File "/home/vagrant/.virtualenvs/omelete.v3/local/lib/python2.7/site-packages/tmdb3/pager.py", line 25, in next return self._parent[self._index] File "/home/vagrant/.virtualenvs/omelete.v3/local/lib/python2.7/site-packages/tmdb3/pager.py", line 70, in __getitem__ return self._data[index] IndexError: list index out of range ```
…eturned in trailer URLs by the API. For example, movie 180951 returns a 'LEFT-TO-RIGHT MARK' (U+200E) after the last character of the source. This has been reported to TMDB at http://www.themoviedb.org/talk/543145fb0e0a2656e2001bc4
This corrects a misspelling in error handling code that would cause an irrelevant error to be thrown when unable to access an existing cache file. This misspelling issue would only appear after a fatal error had occurred, so there is no change in behavior. Signed-off-by: Raymond Wagner <email@example.com>
This updates the version number and readme for the new Television series support on TheMovieDb.org. I still want to do some tweeking on the names and general presentation, but this has been sitting around for long enough and should get pushed upstream.
This temporarily resolves an issue where the TheMovieDb server returns nulls in searches when a movie has been deleted but not yet flushed out of the cache. This prevents the error internally, but does not attempt to re-order to remove the nulls, so is merely passing the issue onto the application using this library. Refs #29