Reformatting.

This commit is contained in:
Roland 2022-05-19 21:38:55 -06:00
parent 530f317a37
commit f2d57fcb23
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
3 changed files with 4 additions and 9 deletions

View file

@ -20,8 +20,7 @@ from wrolpi.downloader import Downloader, Download, DOWNLOAD_MANAGER_CONFIG, Dow
from wrolpi.errors import UnknownChannel, ChannelURLEmpty, UnrecoverableDownloadError
from wrolpi.vars import PYTEST
from .channel.lib import create_channel, get_channel
from .common import apply_info_json, get_no_channel_directory, \
get_videos_directory
from .common import apply_info_json, get_no_channel_directory, get_videos_directory
from .lib import upsert_video, refresh_channel_videos, get_downloader_config, get_channel_source_id
from .models import Video, Channel
from .schema import ChannelPostRequest

View file

@ -449,7 +449,7 @@ VIDEO_DOWNLOADER_CONFIG: VideoDownloaderConfig = VideoDownloaderConfig(global_=T
TEST_VIDEO_DOWNLOADER_CONFIG: VideoDownloaderConfig = None
def get_downloader_config():
def get_downloader_config() -> VideoDownloaderConfig:
global TEST_VIDEO_DOWNLOADER_CONFIG
if isinstance(TEST_VIDEO_DOWNLOADER_CONFIG, VideoDownloaderConfig):
return TEST_VIDEO_DOWNLOADER_CONFIG