mirror of
https://github.com/beetbox/beets.git
synced 2025-12-07 09:04:33 +01:00
Moved from Pool to ThreadPool
This commit is contained in:
parent
22a6a0e6ef
commit
6c2daa061e
1 changed files with 2 additions and 2 deletions
|
|
@ -25,7 +25,7 @@ import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
from multiprocessing import Pool
|
from multiprocessing import ThreadPool
|
||||||
from distutils.spawn import find_executable
|
from distutils.spawn import find_executable
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
|
|
@ -104,7 +104,7 @@ class AcousticBrainzSubmitPlugin(plugins.BeetsPlugin):
|
||||||
|
|
||||||
def command(self, lib, opts, args):
|
def command(self, lib, opts, args):
|
||||||
# Create threadpool
|
# Create threadpool
|
||||||
pool = Pool()
|
pool = ThreadPool()
|
||||||
# Get items from arguments
|
# Get items from arguments
|
||||||
items = lib.items(ui.decargs(args))
|
items = lib.items(ui.decargs(args))
|
||||||
pool.map(self.analyze_submit, items)
|
pool.map(self.analyze_submit, items)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue