]> git.bitcoin.ninja Git - youtube-dl/commit
[youtube] Fix ytsearch* when cookies are provided
authorYen Chi Hsuan <yan12125@gmail.com>
Thu, 2 Feb 2017 17:28:24 +0000 (01:28 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Thu, 2 Feb 2017 17:28:24 +0000 (01:28 +0800)
commita22b2fd19bd8c08d50f884d1903486d4f00f76ec
tree5b1b33f9e525f1f170f3e347229981eea7a1471e
parentc54c01f82dba6d3e982c73c81ad71c49f31d8af1
[youtube] Fix ytsearch* when cookies are provided

Closes #11924

The API with `page` is no longer used in browsers, and YouTube always
returns {'reload': 'now'} when cookies are provided.

See http://youtube.github.io/spfjs/documentation/start/ for how SPF
works. Basically appending static link with a `spf` parameter yields the
corresponding dynamic link.
ChangeLog
youtube_dl/extractor/youtube.py