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 645 forks source link

Error parsing commandline option Title #1085

Closed smileservices closed 1 year ago

smileservices commented 4 years ago

Executed a search and wanted to play a song. It didn't play and it gave this error

Issue / Suggestion

Exiting... (Fatal error) Error parsing commandline option title: option requires parameter

Your Environment

mpsyt version : 0.2.7.1 notes : released 6 July 2016 pafy version : 0.5.2 (youtube-dl backend) youtube-dl version : 2020.03.24 Python version : 3.8.2 (default, Apr 27 2020, 15:53:34) [GCC 9.3.0] Processor : x86_64 Machine type : x86_64 Architecture : 64bit, ELF Platform : Linux-5.4.0-29-generic-x86_64-with-glibc2.29 sys.stdout.enc : utf-8 default enc : utf-8 Config dir : /home/vladimir/.config/mps-youtube env:TERM : xterm-256color env:SHELL : /bin/bash env:LANG : en_US.UTF-8

Ubuntu 20.04

bogdantomasciuc commented 4 years ago

I face this issue too. As a detail. I updated API key with my own from google using Youtube Data API v3.

LittleWhite-tb commented 4 years ago

Got the same problem on Linux Manjaro

mpsyt version      : 0.2.8
   notes           : released 17 February 2018
pafy version       : 0.5.5 (youtube-dl backend)
youtube-dl version : 2020.05.08
Python version     : 3.8.2 (default, Apr  8 2020, 14:31:25) 
[GCC 9.3.0]
Processor          : 
Machine type       : x86_64
Architecture       : 64bit, ELF
Platform           : Linux-4.19.121-1-MANJARO-x86_64-with-glibc2.2.5
sys.stdout.enc     : utf-8
default enc        : utf-8
Config dir         : /home/alexandre/.config/mps-youtube
env:TERM           : xterm-256color
env:SHELL          : /bin/bash
env:LANG           : fr_FR.UTF-8

Using mpv 0.32.0

LittleWhite-tb commented 4 years ago

Found how to bypass this one. I changed my audio/video player (set player vlc). Usually, I am using mpv. By setting it to vlc the music does play correctly. Thus, I am thinking that the problem is linked on how mpv is invoked.

kz6wk9 commented 4 years ago

Always make sure to read some already created issues before creating a new one, this is already fixed for months by #1053

LittleWhite-tb commented 4 years ago

I confirm the fix. I used the version from git and it is now working properly. Thank you !

AyoungDukie commented 4 years ago

See #1069 for reference. Edit: Also #1054 and #1052 In defense of the OP

  1. The linked issue appears to be the only 1069 is the only open issue I could find that notes this problem, and it pertains to building from source for MPV, so at first blush may not seem to pertain to mps-youtube while browsing issues.
  2. As you yourself noted in the 1069, currently no distributed version of mps-youtube has this, so the workarounds essentially are to
    • Use an alternate player to MPV (or alternatively use an older MPV build; (0.31 works for me)
    • Use a development version of mps-youtube
GokulNC commented 4 years ago

Solved it by:

Ensure the latest mpv is installed (atleast v0.32). Use: https://mpv.io/installation/

Should work now. If you face any errors, just search the issues tab.

mahendrap1512 commented 4 years ago

I solved it by

GlennOu66304 commented 3 years ago

Found how to bypass this one. I changed my audio/video player (set player vlc). Usually, I am using mpv. By setting it to vlc the music does play correctly. Thus, I am thinking that the problem is linked on how mpv is invoked.

Agree with this solution on my Ubuntu 20, just set the VLC as my default audio and video player, then issue gone, thank you for the answer.

elquimista commented 3 years ago
  1. https://github.com/mps-youtube/mps-youtube/issues/1085#issuecomment-667908462
  2. https://github.com/mps-youtube/mps-youtube/pull/1092