James Taylor
85db7e46ed
Fix urls sometimes not extracted due to youtube changes
...
The 'cipher' parameter which contains the url is sometimes called
'signatureCipher' instead now.
2020-05-27 11:56:30 -07:00
James Taylor
f1f77c4d77
Fix error getting exit node ip if format urls are None
2020-05-27 11:14:52 -07:00
James Taylor
b2f482f1fb
Fix comment count & disabled extraction not working sometimes
...
because of A/B test.
2020-04-10 13:57:11 -07:00
James Taylor
3e09193eaf
Fix exception due to missing 'playlist' key in extracted info
...
Happens when there's an error on the page and there was no
visible stuff on the page. 'playlist' wasn't set to None in that
case.
2020-04-05 17:27:43 -07:00
James Taylor
4d9d8cec6f
Fix error when there's a video format with mimetype class of 'text'
2020-04-04 22:53:49 -07:00
James Taylor
5554d5afff
Add playlist sidebar for videos in playlist, including autoplay
2020-04-04 22:52:09 -07:00
James Taylor
8c2b81094e
yt_data_extract: fix missing variables in info for unavailable videos
...
'ip_address' was not set when no formats are available
'allowed_countries' was set to None rather than [] in extract_desktop_info which it turns out is the function that gets used in these cases
2020-02-17 20:15:59 -08:00
James Taylor
9f090dbbf8
Watch page: add info box with allowed countries and tor exit node
...
Should help with debugging various content blocks
2020-02-01 16:16:49 -08:00
James Taylor
e364927f83
yt_data_extract: parse mimeType field for codecs
...
the youtube-dl formats table doesn't have all the necessary information
2020-02-01 14:23:50 -08:00
James Taylor
b2a1f4ecfb
Fix signature decryption.
...
The function body regex was capturing some unrelated new code before the actual function body. Example:
`function(a){a=a.split("");var b=[function(c,d){d=(d%c.length+c.length)%c.length;c.splice(-d).reverse().forEach(function(e){return c.unshift(e)}`
If you look closely, the closing bracket doesn't match the opening one. I have added `{` to the `[^\}]+` part to make sure it only captures matching brackets. Additionally, I've added `return a\.join\(""\)` to the end for good measure.
2020-01-24 14:11:59 -08:00
James Taylor
a9f67d4630
Fix regression: date extraction broken. Move constants to correct file in yt_data_extract
2019-12-20 18:48:40 -08:00
James Taylor
6b7a1212e3
Extraction: Move non-stateful signature decryption functionality into yt_data_extract
2019-12-19 21:28:21 -08:00
James Taylor
4a3529df95
Extraction: Move stuff around in files and put underscores in front of internal helper function names
...
Move get_captions_url in watch_extraction to bottom next to other exported, public functions
2019-12-19 20:12:37 -08:00
James Taylor
76376b29a0
Extraction: Split yt_data_extract.py into multiple files
2019-12-19 19:29:47 -08:00