mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-22 07:56:18 -05:00
Returning all urls from a playlist, unless they're already downloaded. Changing all which() calls to contain BIN for clarity.
This commit is contained in:
parent
01c7f0716b
commit
c772b57ddb
8 changed files with 58 additions and 77 deletions
|
|
@ -125,7 +125,7 @@ async def import_files(files: List[str]):
|
|||
IMPORT_EVENT.clear()
|
||||
|
||||
|
||||
BASH = which('bash', '/bin/bash', warn=True)
|
||||
BASH_BIN = which('bash', '/bin/bash', warn=True)
|
||||
|
||||
|
||||
async def import_file(path: Path):
|
||||
|
|
@ -143,7 +143,7 @@ async def import_file(path: Path):
|
|||
else:
|
||||
raise ValueError(f'Cannot import unknown file! {path}')
|
||||
|
||||
cmd = f'{BASH} {PROJECT_DIR}/scripts/import_map.sh {path.absolute()}'
|
||||
cmd = f'{BASH_BIN} {PROJECT_DIR}/scripts/import_map.sh {path.absolute()}'
|
||||
logger.debug(f'Running import script: {cmd}')
|
||||
start = now()
|
||||
proc = await asyncio.create_subprocess_shell(cmd, stderr=asyncio.subprocess.PIPE, stdout=asyncio.subprocess.PIPE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue