mps-youtube / yewtube

yewtube, forked from mps-youtube , is a Terminal based YouTube player and downloader. No Youtube API key required.
GNU General Public License v3.0
8.07k stars 648 forks source link

Read `mpv.conf` for mpv global settings #964

Open lamyergeier opened 5 years ago

lamyergeier commented 5 years ago

Your Environment

mpsyt version : 0.2.8 notes : released 17 February 2018 pafy version : 0.5.4 (youtube-dl backend) youtube-dl version : 2019.01.17 Python version : 3.7.3 (default, Mar 30 2019, 15:09:56) [GCC 5.4.0 20160609] Processor : x86_64 Machine type : x86_64 Architecture : 64bit, ELF Platform : Linux-4.15.0-46-generic-x86_64-with-debian-buster-sid sys.stdout.enc : UTF-8 default enc : utf-8 Config dir : /home/nikhil/.config/mps-youtube env:TERM : xterm-256color env:SHELL : /bin/bash env:LANG : en_US.UTF-8 env:LANGUAGE : en_US:en

Ubuntu 18.04

MPV

Issue / Suggestion

cat ~/.config/mpv/mpv.conf 
ytdl-raw-options=sub-format=en,write-srt=
mpv https://www.youtube.com/watch?v=oPPJ7GGDyAw

Also I have symlinked the files inside ~/.config/mps-youtube:

lrwxrwxrwx 1 nikhil   17 Mar 31 20:03 mpv-input.conf -> ../mpv/input.conf
lrwxrwxrwx 1 nikhil   15 Mar 31 20:03 mpv-mpv.conf -> ../mpv/mpv.conf

Also, Is there ways to specify commandline arguments for youtube-dl?

Please add this feature if it is not supported.