mirror of
https://github.com/saveweb/biliarchiver.git
synced 2024-09-19 11:05:28 -07:00
chore: use subprocess form asyncio
This commit is contained in:
parent
0bc8ce39f8
commit
ad22950946
@ -3,7 +3,6 @@ from asyncio import Queue
|
||||
from contextlib import asynccontextmanager
|
||||
from datetime import datetime
|
||||
from typing import List
|
||||
import subprocess
|
||||
import re
|
||||
|
||||
try:
|
||||
@ -121,6 +120,7 @@ async def add_from_collection(sid: int):
|
||||
|
||||
|
||||
async def add_from_source(source_type: str, source_id: int):
|
||||
from asyncio import subprocess
|
||||
# make sure source_id is valid integer
|
||||
try:
|
||||
source_id = int(source_id)
|
||||
|
Loading…
Reference in New Issue
Block a user