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

problem with specific URL user videos #482

Closed
snakeryslug opened this issue May 8, 2016 · 3 comments
Closed

problem with specific URL user videos #482

snakeryslug opened this issue May 8, 2016 · 3 comments

Comments

@snakeryslug
Copy link

I do
mpsyt url https://youtube.com/watch?v=U8YYM_7KUpw then u1 and get a traceback:

File "C:\Users\dnkeller\AppData\Local\Programs\Python\Python35-32\Scripts\mpsyt-script.py", line 9, in <module> load_entry_point('mps-youtube==0.2.6', 'console_scripts', 'mpsyt')() File "c:\users\dnkeller\appdata\local\programs\python\python35-32\lib\site-packages\mps_youtube\main.py", line 3695, in main if matchfunction(i.function, i.regex, userinput): File "c:\users\dnkeller\appdata\local\programs\python\python35-32\lib\site-packages\mps_youtube\main.py", line 3644, in matchfunction func(*matches) File "c:\users\dnkeller\appdata\local\programs\python\python35-32\lib\site-packages\mps_youtube\main.py", line 2991, in user_more usersearch_id('/'.join([user, channel_id, '']), 0, True) TypeError: sequence item 0: expected str instance, NoneType found

It might have to do with the user having an Ö in the name.

@ids1024
Copy link
Contributor

ids1024 commented May 8, 2016

This should be fixed in e3b1c9c.

@p-hash
Copy link

p-hash commented Jun 23, 2016

Got mostly same issue. Here is a traceback:

  File "/usr/local/bin/mpsyt", line 9, in <module>
    load_entry_point('mps-youtube==0.2.6', 'console_scripts', 'mpsyt')()
  File "/home/paul/.local/lib/python3.5/site-packages/mps_youtube/main.py", line 3695, in main
    if matchfunction(i.function, i.regex, userinput):
  File "/home/paul/.local/lib/python3.5/site-packages/mps_youtube/main.py", line 3644, in matchfunction
    func(*matches)
  File "/home/paul/.local/lib/python3.5/site-packages/mps_youtube/main.py", line 2991, in user_more
    usersearch_id('/'.join([user, channel_id, '']), 0, True)
TypeError: usersearch_id() takes 1 positional argument but 3 were given

After that mps-youtube crashed.

Command to reproduce:

mpsyt url https://youtube.com/watch?v=54reWaleWSU, u 1

And version info

~ $ mpsyt -v
mpsyt version  : 0.2.6
   notes       : released 1 January 2016
pafy version   : 0.5.1
Python version : 3.5.1+ (default, Mar 30 2016, 22:46:26) 
[GCC 5.3.1 20160330]
Processor      : x86_64
Machine type   : x86_64
Architecture   : 64bit, ELF
Platform       : Linux-4.4.0-24-generic-x86_64-with-Ubuntu-16.04-xenial
sys.stdout.enc : UTF-8
default enc    : utf-8
Config dir     : /home/paul/.config/mps-youtube
env:TERM       : xterm
env:SHELL      : /usr/bin/fish
env:LANG       : en_US.UTF-8
env:LANGUAGE   : en

@ids1024
Copy link
Contributor

ids1024 commented Jun 24, 2016

@p-hash It is fixed in git (a new version with the fix has not been released yet).

@ids1024 ids1024 closed this as completed Jun 27, 2016
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

3 participants