Chyron Output
This commit is contained in:
parent
e7aefe643e
commit
292b54d353
@ -1,4 +1,5 @@
|
|||||||
import config
|
import config
|
||||||
|
import utilities_script as utilities
|
||||||
|
|
||||||
class Chyron_Module():
|
class Chyron_Module():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@ -25,6 +26,9 @@ class Chyron_Module():
|
|||||||
if c.itemName == name:
|
if c.itemName == name:
|
||||||
self.chyron_items.remove(c)
|
self.chyron_items.remove(c)
|
||||||
|
|
||||||
|
def updateChyronFile(self):
|
||||||
|
dir = utilities.get_dir("stream_sources")
|
||||||
|
|
||||||
|
|
||||||
class ChyronItem():
|
class ChyronItem():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|||||||
@ -40,6 +40,16 @@ def rescale_value(value, min, max):
|
|||||||
print("got ", returnValue)
|
print("got ", returnValue)
|
||||||
return 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):
|
def contains_slur(input: str):
|
||||||
containsSlur: bool = False
|
containsSlur: bool = False
|
||||||
parsedMessage = input.split(" ")
|
parsedMessage = input.split(" ")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user