Skip to content

Commit

Permalink
Changes to mpv args
Browse files Browse the repository at this point in the history
  • Loading branch information
BasioMeusPuga committed Jan 30, 2020
1 parent e27632e commit 92e5176
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions twitchy/twitchy_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@ def parse_options(self):
player_final = player
if player == 'mpv':
if hw_accel != 'false':
player_final = 'mpv --hwdec={0} --cache 8192'.format(hw_accel)
player_final = 'mpv --hwdec={0} --cache=auto'.format(hw_accel)
else:
player_final = 'mpv --cache 8192'
player_final = 'mpv --cache=auto'

default_quality = video_section.get('DefaultQuality', 'high')
if default_quality not in ['low', 'medium', 'high', 'source']:
Expand Down
4 changes: 2 additions & 2 deletions twitchy/twitchy_play.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def play(self):
display_name = self.channel_params['display_name']
player = Options.video.player_final
if player[:3] == 'mpv':
player += f' --title {display_name}'
player += f' --title={display_name}'
quality = Options.quality_map[self.channel_params['quality']]

# The following prints to the console
Expand Down Expand Up @@ -148,7 +148,7 @@ def __init__(self, display_name, vod_title, vod_url):
self.player_process = None

def play(self):
player = Options.video.player_final + f' --title {self.display_name}'
player = Options.video.player_final + f' --title={self.display_name}'
args_to_subprocess = (
f"streamlink {self.vod_url} best --player '{player}'")
hls_settings = ' --hls-segment-threads 3 --player-passthrough=hls'
Expand Down

0 comments on commit 92e5176

Please sign in to comment.