Bernardo Meurer
31c95482d9
Fix imports
2018-08-13 23:23:41 -03:00
Bernardo Meurer
6c2daa061e
Moved from Pool to ThreadPool
2018-08-13 23:22:40 -03:00
Bernardo Meurer
22a6a0e6ef
Parallelized absubmit
2018-08-13 22:44:45 -03:00
Adrian Sampson
34246a00e7
Fix #2673 : JSON file encoding in absubmit
...
First, it's best to open the file as binary so the JSON module itself
can figure out how to decode it (it will just use UTF-8). Then, we can
use `load` instead of `loads` to avoid needing to read the file
explicitly ourselves.
2017-08-27 10:20:36 -04:00
Jakub Wilk
95a868bb50
Don't hardcode errno constant
...
The value of ENOENT is architecture-dependent, so don't assume
it's always 2.
2017-04-23 23:28:32 +02:00
inytar
71aab6d743
Remove check for supported formats in absubmit
...
Also lower the logging to warning if the extractor fails
to analyse a file
2017-03-16 11:26:54 -04:00
inytar
aab84413ec
Merge remote-tracking branch 'upstream/master'
2017-03-16 11:08:17 -04:00
Adrian Sampson
0b5b20d799
Robust import of distutils submodule ( fix #2376 )
...
This would fail if the `spawn` module in the `distutils` package was not
already imported somewhere else.
2017-01-07 17:15:13 -05:00
inytar
a5aee3f677
Absubmit close temporary file
...
Fix error when deleting the file under Windows
2017-01-02 14:05:59 -05:00
inytar
0975ee709b
Absubmit fix failing to load distutils.spawn
2017-01-02 14:05:17 -05:00
inytar
b57b3f761e
Add header to the absubmit plugin
2016-12-31 18:27:27 -05:00
inytar
cfe9c0f3d4
Remove fixed TODO comment
2016-12-31 14:11:55 -05:00
inytar
146516704f
Update comments for clarification
2016-12-26 16:11:48 -05:00
inytar
b86187089b
Update errors and logging of ABSubmit plugin
...
A UserError is now raised if the plugin can be started.
If an item fails to be analyzed or be submited an error is logged and
the next item is tried.
2016-12-26 16:05:10 -05:00
inytar
f61aa7a016
Move extractor sha calculation to pluging init.
2016-12-23 17:48:29 -05:00
inytar
fd3ff917d2
Implement the basic AcousticBrainz Submit plugin
2016-12-23 17:27:46 -05:00