|
@@ -1,7 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -65,7 +65,7 @@ def set_hashtags(title): # Sets up hash tags to be appended to social media
|
|
|
check_title = title.lower()
|
|
|
default_tags = '#Owncast '
|
|
|
tags = ''
|
|
|
-
|
|
|
+
|
|
|
for tag in tag_dict.keys():
|
|
|
if tag in check_title:
|
|
|
print(f'Found {tag}, adding {tag_dict[tag]} to hashtags.')
|
|
@@ -75,7 +75,7 @@ def set_hashtags(title): # Sets up hash tags to be appended to social media
|
|
|
return tags
|
|
|
|
|
|
def social_post(msg, discmsg):
|
|
|
-
|
|
|
+
|
|
|
logging.info(f'{get_now()} - Posting to Mastodon.')
|
|
|
response = requests.post(m_api_url,
|
|
|
params={'status': msg},
|
|
@@ -86,11 +86,11 @@ def social_post(msg, discmsg): # Post to Mastodon
|
|
|
for line in json_response:
|
|
|
logging.debug(f'{get_now()} - API returned: {line}: {json_response[line]}')
|
|
|
|
|
|
-
|
|
|
+
|
|
|
twitter.update_status(status=msg)
|
|
|
logging.info(f'{get_now()} - Posted to Twitter.')
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
data = {
|
|
|
'content': discmsg
|