diff options
author | James Taylor <user234683@users.noreply.github.com> | 2019-12-17 20:39:20 -0800 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2019-12-17 20:39:20 -0800 |
commit | 81c7ecf161b528ba293678e0bdbf42952cc87386 (patch) | |
tree | 9795f82e6a489c6ba2ad5930a0c1354a9172156b | |
parent | 40de1b74ed9d485cac21f3051b581b3b1ff5244a (diff) | |
download | yt-local-81c7ecf161b528ba293678e0bdbf42952cc87386.tar.lz yt-local-81c7ecf161b528ba293678e0bdbf42952cc87386.tar.xz yt-local-81c7ecf161b528ba293678e0bdbf42952cc87386.zip |
Extraction: Make limited state videos work
-rw-r--r-- | youtube/watch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube/watch.py b/youtube/watch.py index 77a4b45..092885d 100644 --- a/youtube/watch.py +++ b/youtube/watch.py @@ -279,7 +279,7 @@ headers = ( ) + util.mobile_ua def extract_info(video_id): - polymer_json = util.fetch_url('https://m.youtube.com/watch?v=' + video_id + '&pbj=1', headers=headers, debug_name='watch').decode('utf-8') + polymer_json = util.fetch_url('https://m.youtube.com/watch?v=' + video_id + '&pbj=1&bpctr=9999999999', headers=headers, debug_name='watch').decode('utf-8') # TODO: Decide whether this should be done in yt_data_extract.extract_watch_info try: polymer_json = json.loads(polymer_json) |