summaryrefslogtreecommitdiff
path: root/imdb-lookup
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2014-12-21 22:58:09 +0100
committerYves Fischer <yvesf-git@xapek.org>2014-12-21 22:58:09 +0100
commit02afa4a99fcb9e899e786357254708402a7b73ef (patch)
treebfba3883954b89e60a28c1ec7243feb8a0d3aa44 /imdb-lookup
parent1e2e2cfbf805bd126816c11dd7e10099aa15a582 (diff)
downloadscripts-02afa4a99fcb9e899e786357254708402a7b73ef.tar.gz
scripts-02afa4a99fcb9e899e786357254708402a7b73ef.zip
smaller poster
Diffstat (limited to 'imdb-lookup')
-rw-r--r--imdb-lookup/css/style.css4
-rwxr-xr-ximdb-lookup/imdbinfo.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/imdb-lookup/css/style.css b/imdb-lookup/css/style.css
index 5f04ced..3d4b99b 100644
--- a/imdb-lookup/css/style.css
+++ b/imdb-lookup/css/style.css
@@ -27,9 +27,9 @@
}
.poster {
margin: 10px;
- width: 154px;
+ width: 92px;
float: left;
- min-height: 200px;
+ min-height: 138px;
box-shadow: 0px 0px 5px 0px gray;
}
.info {
diff --git a/imdb-lookup/imdbinfo.py b/imdb-lookup/imdbinfo.py
index 5e92994..6318bfb 100755
--- a/imdb-lookup/imdbinfo.py
+++ b/imdb-lookup/imdbinfo.py
@@ -130,9 +130,9 @@ class TMDBCache(object):
r.close()
return r.content
- return self._cache(movie_id, "tmdb_poster.jpg", download)
+ return self._cache(movie_id, "tmdb_poster_{}.jpg".format(f), download)
- def poster_low(self, movie_id, format="w154"):
+ def poster_low(self, movie_id, format="w92"):
data = self.poster(movie_id, format)
if not data:
return None