summaryrefslogtreecommitdiffstats
path: root/config/migrate-scripts/migrate-db-1eca969.sh
diff options
context:
space:
mode:
authorBen Heller <ben@bheller.me>2020-09-02 13:28:57 -0700
committerGitHub <noreply@github.com>2020-09-02 20:28:57 +0000
commit4a6e920d0e4e2dd4b67006e203e5776893c3639b (patch)
tree01cec67bf862968d56f078d901608c153bea83b0 /config/migrate-scripts/migrate-db-1eca969.sh
parent13f58d602f0884349bcef5d84f045c4c6140ced7 (diff)
downloadinvidious-4a6e920d0e4e2dd4b67006e203e5776893c3639b.tar.gz
invidious-4a6e920d0e4e2dd4b67006e203e5776893c3639b.tar.bz2
invidious-4a6e920d0e4e2dd4b67006e203e5776893c3639b.zip
Use new youtube API to fetch channel videos (#1355)
* Use new API to fetch videos from channels This mirrors the process used by subscriptions.gir.st. The old API is tried first, and if it fails then the new one is used. * Use the new API whenever getting videos from a channel I created the get_channel_videos_response function because now instead of just getting a single url, there are extra steps involved in getting the API response for channel videos, and these steps don't need to be repeated throughout the code. The only remaining exception is the bypass_captcha function, which still only makes a request to the old API. I don't know whether this code needs to be updated to use the new API for captcha bypassing to work correctly. * Correctly determine video length with new api * Remove unnecessary line
Diffstat (limited to 'config/migrate-scripts/migrate-db-1eca969.sh')
0 files changed, 0 insertions, 0 deletions