Chyron Output
This commit is contained in:
parent
e7aefe643e
commit
292b54d353
@ -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):
|
||||
|
||||
@ -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(" ")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user