Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error parsing commandline option Title #1085

Closed
smileservices opened this issue May 13, 2020 · 10 comments
Closed

Error parsing commandline option Title #1085

smileservices opened this issue May 13, 2020 · 10 comments

Comments

@smileservices
Copy link

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
Copy link

bogdantomasciuc commented May 15, 2020

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

@LittleWhite-tb
Copy link

LittleWhite-tb commented May 16, 2020

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
Copy link

LittleWhite-tb commented May 16, 2020

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
Copy link
Contributor

kz6wk9 commented May 16, 2020

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

@LittleWhite-tb
Copy link

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

@AyoungDukie
Copy link

AyoungDukie commented Jun 8, 2020

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
Copy link

GokulNC commented Aug 3, 2020

Solved it by:

  • pip uninstall mps-youtube
  • pip install git+https://github.com/mps-youtube/mps-youtube/

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

  • As soon as you open your player by mpsyt, do set player mpv

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

@mahendrap1512
Copy link

I solved it by

  • first downloaded mplayer using sudo apt install mplayer
  • then set player mplayer
    That's it and now i can enjoy music on terminal
    Mplayer is a terminal based player.

@GlennOu66304
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants