Merge branch 'master' of github.com:mps-youtube/yewtube
Esse commit está contido em:
@@ -2,6 +2,10 @@
|
||||
|
||||
<!--next-version-placeholder-->
|
||||
|
||||
## v2.9.4 (2023-01-28)
|
||||
### Fix
|
||||
* Semantic release python pypi receipe ([`495629a`](https://github.com/mps-youtube/yewtube/commit/495629ab78534a1a6b36a2adae2bc6c200083706))
|
||||
|
||||
## v2.9.3 (2023-01-28)
|
||||
### Fix
|
||||
* Updated readme metioned yewtube as fork of mpsyt ([`385d6a7`](https://github.com/mps-youtube/yewtube/commit/385d6a77708991d1d27371067023b253c2d14770))
|
||||
|
||||
@@ -113,6 +113,9 @@ class mpv(CmdPlayer):
|
||||
def launch_player(self, cmd):
|
||||
self.input_file = _get_input_file()
|
||||
cmd.append('--input-conf=' + self.input_file)
|
||||
self.conf_dir = _get_conf_dir()
|
||||
if self.conf_dir is not None:
|
||||
cmd.append('--config-dir=' + self.conf_dir)
|
||||
self.sockpath = None
|
||||
self.fifopath = None
|
||||
|
||||
@@ -310,6 +313,17 @@ def _get_input_file():
|
||||
tmpfile.write(conf)
|
||||
return tmpfile.name
|
||||
|
||||
def _get_conf_dir():
|
||||
"""
|
||||
Check if an mpv configuration directory is present in the
|
||||
main configuration directory, and return its path if so
|
||||
"""
|
||||
confpath = os.path.join(paths.get_config_dir(), "mpv")
|
||||
if os.path.isdir(confpath):
|
||||
util.dbg("using %s for configuration directory", confpath)
|
||||
return confpath
|
||||
return None
|
||||
|
||||
|
||||
def _get_mpv_version(exename):
|
||||
""" Get version of mpv as 3-tuple. """
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
||||
with open('requirements.txt', 'r') as fh:
|
||||
requirements = fh.readlines()
|
||||
|
||||
__version__ = "2.9.3"
|
||||
__version__ = "2.9.4"
|
||||
|
||||
options = dict(
|
||||
name="yewtube",
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário