diff options
author | James Taylor <user234683@users.noreply.github.com> | 2019-12-22 18:29:31 -0800 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2019-12-22 18:29:31 -0800 |
commit | 222117143f7d528efe0362e1b2a68b564393d4c5 (patch) | |
tree | 1e2e15d83e9230a20071eb72379110ce91a8fcc5 /youtube/templates/status.html | |
parent | bafae2837ea2207269d9eea2ea982f4030b37c7f (diff) | |
download | yt-local-222117143f7d528efe0362e1b2a68b564393d4c5.tar.lz yt-local-222117143f7d528efe0362e1b2a68b564393d4c5.tar.xz yt-local-222117143f7d528efe0362e1b2a68b564393d4c5.zip |
Finally fix video count on channels accessed through general urls, rather than just channel id.
It was set to a fake value of 1000 previously in order to ensure there would be enough page buttons.
This was because two sequential requests are necessary (one to get the channel id corresponding to the custom url, another to get the number of videos from the "all uploaded videos" playlist, the url for which can be generated from the channel id).
Since Tor has a high latency, I thought at the time that this would be too slow, but in practice it's not too big of a deal.
Introduces cachetools dependency in order to cache the function which gets the number of videos.
The get_channel_id function has also been fixed since the ajax api seems to have been removed.
Diffstat (limited to 'youtube/templates/status.html')
0 files changed, 0 insertions, 0 deletions