diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2014-11-22 17:41:30 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2014-11-22 17:41:30 +0100 |
commit | 52d575324f40c8cead9e9132b004974fda82aefd (patch) | |
tree | 186fdbdf154a90f9578969a4b5a2bbd602c0c697 /imdb-lookup/imdbinfo.py | |
parent | 67058d7bbd0baf245bb463e1412723b9fbc281f9 (diff) | |
download | scripts-52d575324f40c8cead9e9132b004974fda82aefd.tar.gz scripts-52d575324f40c8cead9e9132b004974fda82aefd.zip |
unicode string for rating
Diffstat (limited to 'imdb-lookup/imdbinfo.py')
-rwxr-xr-x | imdb-lookup/imdbinfo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/imdb-lookup/imdbinfo.py b/imdb-lookup/imdbinfo.py index 0917acf..b41ff62 100755 --- a/imdb-lookup/imdbinfo.py +++ b/imdb-lookup/imdbinfo.py @@ -154,7 +154,7 @@ def do_rating(args, imdb_ids): f = math.sin(math.pi * ( info["vote_average"]/10.0 ) ) d = (float(info["vote_count"]) / maxvotes) - 0.5 info['rating'] = info["vote_average"] + 2 * d * f - print("{rating:.02f} {imdb_id} {title:30s} avg={vote_average:.1f} count={vote_count:.0f}".format(**info)) + print(u"{rating:.02f} {imdb_id} {title:30s} avg={vote_average:.1f} count={vote_count:.0f}".format(**info)) def do_index(args, imdb_ids): |