-
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from offish/v1.3.3
v1.3.3
- Loading branch information
Showing
10 changed files
with
142 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
|
||
__title__ = 'twitchtube' | ||
__author__ = 'offish' | ||
__license__ = 'MIT' | ||
__version__ = '1.3.2' | ||
__title__ = "twitchtube" | ||
__author__ = "offish" | ||
__license__ = "MIT" | ||
__version__ = "1.3.3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,64 @@ | ||
import pathlib | ||
|
||
# Note: | ||
# Note: | ||
# Changing FRAMES and or RESOULTION will heavily impact load on CPU. | ||
# If you have a powerful enough computer you may set it to 1080p60 | ||
# If you have a powerful enough computer you may set it to 1080p60 | ||
|
||
# Secrets | ||
CLIENT_ID = '' # Twitch Client ID | ||
OAUTH_TOKEN = '' # Twitch OAuth Token | ||
CLIENT_ID = "" # Twitch Client ID | ||
OAUTH_TOKEN = "" # Twitch OAuth Token | ||
|
||
|
||
# Paths | ||
PATH = str(pathlib.Path().absolute()) | ||
CLIP_PATH = PATH + '\\clips\\{}\\{}' | ||
CLIP_PATH = PATH + "\\clips\\{}\\{}" | ||
|
||
|
||
# Video | ||
GAMES = ['Just Chatting', 'Team Fortress 2'] | ||
VIDEO_LENGTH = 10.5 # in minutes (doesn't always work for some reason) | ||
RENDER_VIDEO = True # If downloaded clips should be rendered into one video (True/False) | ||
FRAMES = 30 # Frames per second (30/60) | ||
RESOLUTION = (720, 1280) # (height, width) for 1080p: (1080, 1920) | ||
FILE_NAME = 'rendered' # Name of the rendered video | ||
GAMES = ["Just Chatting", "Team Fortress 2"] | ||
VIDEO_LENGTH = 10.5 # in minutes (doesn't always work for some reason) | ||
RENDER_VIDEO = ( | ||
True # If downloaded clips should be rendered into one video (True/False) | ||
) | ||
FRAMES = 30 # Frames per second (30/60) | ||
RESOLUTION = (720, 1280) # (height, width) for 1080p: (1080, 1920) | ||
FILE_NAME = "rendered" # Name of the rendered video | ||
|
||
|
||
# Other | ||
SAVE_TO_FILE = True # If YouTube stuff should be saved to a separate file e.g. title, description & tags (True/False) | ||
SAVE_FILE_NAME = 'youtube' # Name of the file YouTube stuff should be saved to | ||
UPLOAD_TO_YOUTUBE = True # If the video should be uploaded to YouTube after rendering (True/False) | ||
DELETE_CLIPS = True # If the downloaded clips should be deleted after rendering the video (True/False) | ||
TIMEOUT = 3600 # How often it should check if it has made a video today (in seconds) | ||
SAVE_TO_FILE = True # If YouTube stuff should be saved to a separate file e.g. title, description & tags (True/False) | ||
SAVE_FILE_NAME = "youtube" # Name of the file YouTube stuff should be saved to | ||
UPLOAD_TO_YOUTUBE = ( | ||
True # If the video should be uploaded to YouTube after rendering (True/False) | ||
) | ||
DELETE_CLIPS = True # If the downloaded clips should be deleted after rendering the video (True/False) | ||
TIMEOUT = 3600 # How often it should check if it has made a video today (in seconds) | ||
|
||
|
||
# Twitch | ||
RETRIES = 5 | ||
|
||
# Twitch API Request Options | ||
HEADERS = {'Accept': 'application/vnd.twitchtv.v5+json', 'Client-ID': CLIENT_ID} | ||
PARAMS = {'period': 'day', 'language': 'en', 'limit': 100} # 100 is max | ||
HEADERS = {"Accept": "application/vnd.twitchtv.v5+json", "Client-ID": CLIENT_ID} | ||
PARAMS = {"period": "day", "language": "en", "limit": 100} # 100 is max | ||
|
||
|
||
# YouTube | ||
|
||
# YouTube Video | ||
TITLE = '' # If not given a title it would take the title of the first clip, and add "- *game* Highlights Twitch" | ||
TITLE = "" # If not given a title it would take the title of the first clip, and add "- *game* Highlights Twitch" | ||
CATEGORY = 20 # 20 for Gaming | ||
|
||
|
||
# YouTube Tags | ||
TAGS = { | ||
'Just Chatting': 'just chatting, just chatting clips, just chatting twitch clips', | ||
'Team Fortress 2': 'tf2, tf2 twitch, tf2 twitch clips' | ||
"Just Chatting": "just chatting, just chatting clips, just chatting twitch clips", | ||
"Team Fortress 2": "tf2, tf2 twitch, tf2 twitch clips", | ||
} | ||
|
||
# YouTube Descriptions | ||
DESCRIPTIONS = { | ||
'Just Chatting': 'Just Chatting twitch clips \n\n{}\n', | ||
'Team Fortress 2': 'TF2 twitch clips\n\n{}\n' | ||
"Just Chatting": "Just Chatting twitch clips \n\n{}\n", | ||
"Team Fortress 2": "TF2 twitch clips\n\n{}\n", | ||
} | ||
# {} will be replaced with a list of streamer names |
Oops, something went wrong.