Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Periodic problem with ytsearch: #6084
Comments
|
Here's another one - same general idea, but different (and better) error messages. $ youtube-dl.py -f best -j "ytsearch: chicago i" > outputfile NOTE: I see now that this machine is running the 6/15 version, not 6/25. I haven't turned on the auto-update script for this machine yet. Anyway, I've seen these errors for several weeks now, and I have seen them on the 6/25 version, though maybe not as often as on the on the 6/15. Anyway, it is definitely a real problem in all recent versions. |
|
I could reproduce the error once yesterday, but I have tried a few times today and it works. It would be helpful if you run it with |
|
OK - I'll try that. Of course, now it will start working again... Anyway, I'm glad you were able to reproduce it at least once. |
|
I was getting this "TypeError: expected string or buffer" when trying to download the following video: $ youtube-dl https://www.youtube.com/watch?t=29&v=n_ztW_LLdZo $ youtube-dl --version And with this other video it worked fine: $ youtube-dl --prefer-ffmpeg https://www.youtube.com/watch?v=IME3cj1RVF8 I tried the first one with and without the "--prefer-ffmpeg" with the same results, but it worked when I tried it quoting the URL: $ youtube-dl --prefer-ffmpeg "https://www.youtube.com/watch?t=29&v=n_ztW_LLdZo" Thanks to @dstftw for the advice. |
|
$ youtube-dl https://www.youtube.com/watch?v=A8204bAX_h0 $ youtube-dl --verbose https://www.youtube.com/watch?v=A8204bAX_h0 During handling of the above exception, another exception occurred: Traceback (most recent call last): |
|
@comradekingu that's a different problem and is already fixed. Update to 2017.01.10 |
|
Just out of curiosity, why am I being CC'd on this.
Note that this is not the first time that I've received unexpected emails from this list. Don't get me wrong; I have participated in the list and appreciate getting notifications of threads that I am involved in. But not sure why I'm getting them from threads that I am not involved in.
On Tuesday, January 10, 2017 12:58 PM, Yen Chi Hsuan <notifications@github.com> wrote:
@comradekingu that's a different problem and is already fixed. Update to 2017.01.10—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
This is most likely fixed by a49eccd. Feel free to open a new issue if it's still broken in the next version. For another error ( |
I have a script that uses youtube-dl and the 'ytsearch:" functionality. Periodically (about once every 3 or 4 runs), it fails to find what it should find. Error message is as shown below. I just retry it, with exactly the same command line and args and it succeeds. Any ideas what causes this? Latest version (2015.06.25) of the program. Note: Example below is one specific search string but it happens all the time with all sorts of (pop music) searches. This is only the one specific (latest) instance I've seen of it.
$ youtube-dl.py -f best -j "ytsearch: let me be there olivia" > outputfile
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/bin/youtube-dl.py/main.py", line 19, in
File "/usr/local/bin/youtube-dl.py/youtube_dl/init.py", line 405, in main
File "/usr/local/bin/youtube-dl.py/youtube_dl/init.py", line 395, in _real_main
File "/usr/local/bin/youtube-dl.py/youtube_dl/YoutubeDL.py", line 1502, in download
File "/usr/local/bin/youtube-dl.py/youtube_dl/YoutubeDL.py", line 650, in extract_info
File "/usr/local/bin/youtube-dl.py/youtube_dl/extractor/common.py", line 273, in extract
File "/usr/local/bin/youtube-dl.py/youtube_dl/extractor/common.py", line 1099, in _real_extract
File "/usr/local/bin/youtube-dl.py/youtube_dl/extractor/youtube.py", line 1524, in _get_n_results
File "/usr/lib/python2.7/re.py", line 177, in findall
return _compile(pattern, flags).findall(string)
TypeError: expected string or buffer
$