add current files
This commit is contained in:
@@ -1,16 +1,26 @@
|
||||
from .baseapi import BaseAPI
|
||||
import pathlib
|
||||
import subprocess
|
||||
import requests
|
||||
import typing_extensions
|
||||
from typing import List, Optional, Dict, Any, Union
|
||||
from komgapi.errors import KomgaError, LoginError, ResultErrror
|
||||
from typing import Optional
|
||||
|
||||
from komgapi.schemas import * # Progress, Series
|
||||
|
||||
from .baseapi import BaseAPI
|
||||
|
||||
|
||||
class SettingsController(BaseAPI):
|
||||
def __init__(self, username, password, url, timeout=20) -> None:
|
||||
super().__init__(username, password, url, timeout)
|
||||
def __init__(
|
||||
self,
|
||||
username: Optional[str] = None,
|
||||
password: Optional[str] = None,
|
||||
api_key: Optional[str] = None,
|
||||
url: str = "",
|
||||
timeout: int = 20,
|
||||
) -> None:
|
||||
super().__init__(
|
||||
username=username,
|
||||
password=password,
|
||||
api_key=api_key,
|
||||
url=url,
|
||||
timeout=timeout,
|
||||
)
|
||||
|
||||
def getSettings(self) -> Settings:
|
||||
url = self.url + "settings"
|
||||
|
||||
Reference in New Issue
Block a user