This commit is contained in:
Sebastian Goscik
2023-03-07 00:42:49 +00:00
parent 1ff59773f1
commit 07c2278428
6 changed files with 15 additions and 18 deletions

View File

@@ -6,7 +6,7 @@ __version__ = '0.8.8'
# from .unifi_protect_backup_core import UnifiProtectBackup # from .unifi_protect_backup_core import UnifiProtectBackup
from .downloader import VideoDownloader from .downloader import VideoDownloader
from .uploader import VideoUploader
from .event_listener import EventListener from .event_listener import EventListener
from .purge import Purge
from .missing_event_checker import MissingEventChecker from .missing_event_checker import MissingEventChecker
from .purge import Purge
from .uploader import VideoUploader

View File

@@ -1,12 +1,12 @@
import asyncio
import logging import logging
from time import sleep from time import sleep
import asyncio
from typing import List from typing import List
from pyunifiprotect.data.websocket import WSAction, WSSubscriptionMessage from pyunifiprotect.api import ProtectApiClient
from pyunifiprotect.data.nvr import Event from pyunifiprotect.data.nvr import Event
from pyunifiprotect.data.types import EventType from pyunifiprotect.data.types import EventType
from pyunifiprotect.api import ProtectApiClient from pyunifiprotect.data.websocket import WSAction, WSSubscriptionMessage
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View File

@@ -5,7 +5,6 @@ from typing import List
import aiosqlite import aiosqlite
from dateutil.relativedelta import relativedelta from dateutil.relativedelta import relativedelta
from pyunifiprotect import ProtectApiClient from pyunifiprotect import ProtectApiClient
from pyunifiprotect.data.types import EventType from pyunifiprotect.data.types import EventType

View File

@@ -1,10 +1,10 @@
"""Main module.""" """Main module."""
import asyncio import asyncio
from datetime import datetime, timezone
import logging import logging
import os import os
import shutil import shutil
from cmath import log from cmath import log
from datetime import datetime, timezone
from time import sleep from time import sleep
from typing import Callable, List from typing import Callable, List
@@ -18,17 +18,16 @@ from unifi_protect_backup import (
Purge, Purge,
VideoDownloader, VideoDownloader,
VideoUploader, VideoUploader,
notifications,
) )
from unifi_protect_backup.utils import ( from unifi_protect_backup.utils import (
SubprocessException, SubprocessException,
VideoQueue,
human_readable_size,
parse_rclone_retention, parse_rclone_retention,
run_command, run_command,
setup_logging, setup_logging,
human_readable_size,
VideoQueue,
) )
from unifi_protect_backup import notifications
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View File

@@ -5,10 +5,10 @@ import re
from datetime import datetime from datetime import datetime
import aiosqlite import aiosqlite
from pyunifiprotect.data.nvr import Event
from pyunifiprotect import ProtectApiClient from pyunifiprotect import ProtectApiClient
from pyunifiprotect.data.nvr import Event
from unifi_protect_backup.utils import get_camera_name, VideoQueue, run_command, setup_event_logger, human_readable_size from unifi_protect_backup.utils import VideoQueue, get_camera_name, human_readable_size, run_command, setup_event_logger
class VideoUploader: class VideoUploader:

View File

@@ -1,13 +1,12 @@
import asyncio
import logging import logging
import re import re
import asyncio
from typing import Optional, List
from datetime import datetime from datetime import datetime
from typing import List, Optional
from dateutil.relativedelta import relativedelta
from pyunifiprotect import ProtectApiClient
from apprise import NotifyType from apprise import NotifyType
from dateutil.relativedelta import relativedelta
from pyunifiprotect import ProtectApiClient
from unifi_protect_backup import notifications from unifi_protect_backup import notifications