diff -Nru python-tmdbsimple-2.1.0/debian/changelog python-tmdbsimple-2.2.0/debian/changelog --- python-tmdbsimple-2.1.0/debian/changelog 2018-01-09 07:25:18.000000000 +0000 +++ python-tmdbsimple-2.2.0/debian/changelog 2018-06-01 13:44:25.000000000 +0000 @@ -1,3 +1,16 @@ +python-tmdbsimple (2.2.0-1) unstable; urgency=low + + [ Ondřej Nový ] + * d/control: Set Vcs-* to salsa.debian.org + * d/control: Remove ancient X-Python-Version field + * d/control: Remove ancient X-Python3-Version field + + [ Michael Fladischer ] + * New upstream release. + * Bump Standards-Version to 4.1.4. + + -- Michael Fladischer Fri, 01 Jun 2018 15:44:25 +0200 + python-tmdbsimple (2.1.0-1) unstable; urgency=low * New upstream release. diff -Nru python-tmdbsimple-2.1.0/debian/control python-tmdbsimple-2.2.0/debian/control --- python-tmdbsimple-2.1.0/debian/control 2018-01-09 07:25:18.000000000 +0000 +++ python-tmdbsimple-2.2.0/debian/control 2018-06-01 13:44:25.000000000 +0000 @@ -11,12 +11,10 @@ python-setuptools, python3-all, python3-setuptools, -Standards-Version: 4.1.3 -X-Python-Version: >= 2.7 -X-Python3-Version: >= 3.3 +Standards-Version: 4.1.4 Homepage: https://github.com/celiao/tmdbsimple/ -Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/python-tmdbsimple.git -Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/python-tmdbsimple.git +Vcs-Browser: https://salsa.debian.org/python-team/modules/python-tmdbsimple +Vcs-Git: https://salsa.debian.org/python-team/modules/python-tmdbsimple.git Testsuite: autopkgtest-pkg-python Package: python-tmdbsimple diff -Nru python-tmdbsimple-2.1.0/.gitignore python-tmdbsimple-2.2.0/.gitignore --- python-tmdbsimple-2.1.0/.gitignore 2018-01-07 00:03:14.000000000 +0000 +++ python-tmdbsimple-2.2.0/.gitignore 2018-04-09 04:23:43.000000000 +0000 @@ -13,6 +13,7 @@ # editors ## Vim files .*.swp +.idea # other notes diff -Nru python-tmdbsimple-2.1.0/setup.py python-tmdbsimple-2.2.0/setup.py --- python-tmdbsimple-2.1.0/setup.py 2018-01-07 00:03:14.000000000 +0000 +++ python-tmdbsimple-2.2.0/setup.py 2018-04-09 04:23:43.000000000 +0000 @@ -11,14 +11,14 @@ # requests[security]: http://stackoverflow.com/questions/29134512/insecureplatformwarning-a-true-sslcontext-object-is-not-available-this-prevent/29202163#29202163 setup( name = 'tmdbsimple', - version = '2.1.0', + version = '2.2.0', author = 'Celia Oakley', author_email = 'celia.oakley@alumni.stanford.edu', description = 'A Python wrapper for The Movie Database API v3', keywords = ['movie', 'the movie database', 'movie database', 'tmdb', 'wrapper', 'database', 'themoviedb', 'moviedb', 'api'], url = 'https://github.com/celiao/tmdbsimple', - download_url = 'https://github.com/celiao/tmdbsimple/tarball/2.1.0', + download_url = 'https://github.com/celiao/tmdbsimple/tarball/2.2.0', packages = ['tmdbsimple'], long_description=read('README.rst'), install_requires = ['requests'], diff -Nru python-tmdbsimple-2.1.0/tests/test_movies.py python-tmdbsimple-2.2.0/tests/test_movies.py --- python-tmdbsimple-2.1.0/tests/test_movies.py 2018-01-07 00:03:14.000000000 +0000 +++ python-tmdbsimple-2.2.0/tests/test_movies.py 2018-04-09 04:23:43.000000000 +0000 @@ -67,6 +67,12 @@ response = movie.credits() self.assertTrue(hasattr(movie, 'cast')) + def test_movies_external_ids(self): + id = MOVIE_ID + movie = tmdb.Movies(id) + response = movie.external_ids() + self.assertTrue(hasattr(movie, 'imdb_id')) + def test_movies_images(self): id = MOVIE_ID movie = tmdb.Movies(id) diff -Nru python-tmdbsimple-2.1.0/tmdbsimple/__init__.py python-tmdbsimple-2.2.0/tmdbsimple/__init__.py --- python-tmdbsimple-2.1.0/tmdbsimple/__init__.py 2018-01-07 00:03:14.000000000 +0000 +++ python-tmdbsimple-2.2.0/tmdbsimple/__init__.py 2018-04-09 04:23:43.000000000 +0000 @@ -17,7 +17,7 @@ """ __title__ = 'tmdbsimple' -__version__ = '2.1.0' +__version__ = '2.2.0' __author__ = 'Celia Oakley' __copyright__ = 'Copyright (c) 2013-2018 Celia Oakley' __license__ = 'GPLv3' diff -Nru python-tmdbsimple-2.1.0/tmdbsimple/movies.py python-tmdbsimple-2.2.0/tmdbsimple/movies.py --- python-tmdbsimple-2.1.0/tmdbsimple/movies.py 2018-01-07 00:03:14.000000000 +0000 +++ python-tmdbsimple-2.2.0/tmdbsimple/movies.py 2018-04-09 04:23:43.000000000 +0000 @@ -25,6 +25,7 @@ 'info': '/{id}', 'alternative_titles': '/{id}/alternative_titles', 'credits': '/{id}/credits', + 'external_ids': '/{id}/external_ids', 'images': '/{id}/images', 'keywords': '/{id}/keywords', 'release_dates': '/{id}/release_dates', @@ -97,6 +98,23 @@ response = self._GET(path, kwargs) self._set_attrs_to_values(response) + return response + + def external_ids(self, **kwargs): + """ + Get the external ids for a specific movie id. + + Args: + language: (optional) ISO 639-1 code. + append_to_response: (optional) Comma separated, any movie method. + + Returns: + A dict respresentation of the JSON returned from the API. + """ + path = self._get_id_path('external_ids') + + response = self._GET(path, kwargs) + self._set_attrs_to_values(response) return response def images(self, **kwargs):