示例#1
0
from app.util import create_config

webhook_enabled = create_config("WebHook:Enabled", default=True)
webhook_url_list = create_config("WebHook:UrlList", default=[])
webhook_text_max_length = create_config("WebHook:TextMaxLength", default=100)
webhook_max_duration = create_config("WebHook:MaxDuration", default=60 * 30)
示例#2
0
from app.util import create_config

wp_enabled = create_config("WordPress:Enabled", default=True)
wp_xmlrpc_url = create_config("WordPress:XmlRpcUrl", default="")
wp_username = create_config("WordPress:Username", default="")
wp_password = create_config("WordPress:Password", default="")
wp_embed_width = create_config("WordPress:EmbedWidth", default=560)
wp_embed_height = create_config("WordPress:EmbedHeight", default=315)
wp_max_duration = create_config("WordPress:MaxDuration", default=60 * 30)
示例#3
0
from app.util import create_config

message_broker = create_config("MessageBroker", default="mqtt://message_broker/")
示例#4
0
import asyncio

from app.util import create_config

logging_webhook_urls = create_config("Logging:WebHookUrlList", default=[])
示例#5
0
from app.util import create_config

youtube_enabled = create_config("YouTube:Enabled", default=True)
youtube_api_key = create_config("YouTube:ApiKey", default="")
start_from = create_config("YouTube:StartFrom", default="")
video_process_delay = create_config("YouTube:VideoProcessDelay", default=10.0)
channel_id = create_config("YouTube:ChannelId")
polling_rate = create_config("YouTube:PollingRate", default=60.0)
manual_videos = create_config("YouTube:CustomVideos", default=[])
youtube_num_iterations_until_refetch = create_config(
    "YouTube:NumIterationsUntilRefetch", default=10
)
youtube_default_avatar = create_config(
    "YouTube:DefaultAvatarUrl", default="https://i.imgur.com/eYw9nVR.jpg"
)
示例#6
0
from app.util import create_config

access_code_pickle_path = create_config("Pickle:AccessCode",
                                        default="pickles/access_code.pickle")
processed_pickle_path = create_config("Pickle:Processed",
                                      default="pickles/processed.pickle")
playlist_history_pickle_path = create_config(
    "Pickle:PlaylistHistory", default="pickles/playlist_history.pickle")
podbean_posted_pickle_path = create_config(
    "Pickle:PodBeanPosted", default="pickles/podbean_posted.pickle")
webhook_posted_pickle_path = create_config(
    "Pickle:WebHookPosted", default="pickles/webhook_posted.pickle")
wp_post_history_pickle_path = create_config(
    "Pickle:WordPressPosted", default="pickles/wp_post_history.pickle")
示例#7
0
from app.util import create_config, get_public_ip

host = create_config("Server:Host", default="0.0.0.0")
port = create_config("Server:Port", default="23808")
public_host = create_config("Server:PublicHost", default=get_public_ip)
示例#8
0
from app.util import create_config

podbean_enabled = create_config("PodBean:Enabled", default=True)
client_id = create_config("PodBean:ClientId")
client_secret = create_config("PodBean:ClientSecret")
title_pattern = create_config("PodBean:TitlePattern", default=".+")
title_negative_pattern = create_config("PodBean:TitleNegativePattern",
                                       default="")