summaryrefslogtreecommitdiff
path: root/imdb-lookup
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2014-12-21 23:19:27 +0100
committerYves Fischer <yvesf-git@xapek.org>2014-12-21 23:19:27 +0100
commitbdfaf600d4226c7201ff9ffff1a6534b3ab909b5 (patch)
treecd3a0c1cc3ca313e4e7d8c8da5dd97f5268c368a /imdb-lookup
parent7cad21790ff34fa1ab10478210d2b788fd7bb992 (diff)
downloadscripts-bdfaf600d4226c7201ff9ffff1a6534b3ab909b5.tar.gz
scripts-bdfaf600d4226c7201ff9ffff1a6534b3ab909b5.zip
parallel
Diffstat (limited to 'imdb-lookup')
-rwxr-xr-ximdb-lookup/imdbinfo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/imdb-lookup/imdbinfo.py b/imdb-lookup/imdbinfo.py
index 688d03c..54ab2b6 100755
--- a/imdb-lookup/imdbinfo.py
+++ b/imdb-lookup/imdbinfo.py
@@ -358,7 +358,7 @@ def do_index(args, imdb_ids):
out = open(filename, "w")
out.write(callbackName)
out.write("(")
- pool = Pool(processes=10) # parallel fetchers
+ pool = Pool(processes=6) # parallel fetchers
infos = pool.map(getInfo, imdb_ids)
json.dump(list(filter(bool,infos)), out)
out.write(")")