mirror of
https://github.com/markqvist/Sideband.git
synced 2025-07-23 06:50:53 -04:00
Added PyDub
This commit is contained in:
parent
446181aa58
commit
53479d4700
11 changed files with 3344 additions and 0 deletions
14
sbapp/pydub/logging_utils.py
Normal file
14
sbapp/pydub/logging_utils.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
"""
|
||||
|
||||
"""
|
||||
import logging
|
||||
|
||||
converter_logger = logging.getLogger("pydub.converter")
|
||||
|
||||
def log_conversion(conversion_command):
|
||||
converter_logger.debug("subprocess.call(%s)", repr(conversion_command))
|
||||
|
||||
def log_subprocess_output(output):
|
||||
if output:
|
||||
for line in output.rstrip().splitlines():
|
||||
converter_logger.debug('subprocess output: %s', line.rstrip())
|
Loading…
Add table
Add a link
Reference in a new issue