master updates #22

Merged
alex_orid merged 10 commits from master into db-module 2021-04-09 22:06:25 +00:00
2 changed files with 14 additions and 0 deletions
Showing only changes of commit 292b54d353 - Show all commits

View File

@ -1,4 +1,5 @@
import config
import utilities_script as utilities
class Chyron_Module():
def __init__(self):
@ -25,6 +26,9 @@ class Chyron_Module():
if c.itemName == name:
self.chyron_items.remove(c)
def updateChyronFile(self):
dir = utilities.get_dir("stream_sources")
class ChyronItem():
def __init__(self):

View File

@ -40,6 +40,16 @@ def rescale_value(value, min, max):
print("got ", returnValue)
return returnValue
def get_dir(selected_dir):
"""
Checks for the tts directory, and will create it if it does not exist
:return: the relative file path of the tts dir
"""
dir = os.path.join(os.getcwd(), selected_dir) # this is platform-agnostic
if not os.path.exists(dir):
os.mkdir(dir)
return dir
def contains_slur(input: str):
containsSlur: bool = False
parsedMessage = input.split(" ")