Chris Howell
baadc2f7f0
Merge master, fix readme conflicts
2021-03-02 07:48:17 -08:00
Your Name
fb819c06e4
Fix test case name
2021-01-21 19:53:06 +01:00
Your Name
14c70359ba
Fix "video not available" being shown to the user when when YouTube start asking for captcha resolution due to receiving too many requests from the same IP. Show instead an appropiate message.
...
To be able to keep making requests, the captcha must be solved in a browser and the browser cookie must be passed to youtube-transcript-api.
2021-01-21 19:43:29 +01:00
Chris Howell
138643a682
Merge branch 'master' into feature/ISSUE-23
2020-10-10 21:13:51 -07:00
Chris Howell
150c50cabe
Fix since Python2.7 doesnt support encoding kwarg to open()
2020-10-08 14:29:26 -07:00
Chris Howell
eb01e08b04
Add explicit utf-8 encoding for file I/O in test_api.py
2020-10-08 13:36:33 -07:00
Chris Howell
36f29c3058
Add a few initial test cases, could use more
2020-09-01 15:23:04 -07:00
Chris Howell
1e9b2c7727
Revert "Add formatters module"
...
Reverting again, apparently I had a misunderstanding of how to revert. Trying again.
This reverts commit dca4021dd7
.
2020-08-21 12:21:12 -07:00
Chris Howell
216abbe023
Add unittests for formatters.py
2020-07-09 20:14:36 -07:00
Chris Howell
5861bdb104
Remove json.dumps from test_api.py
...
Remove unnecessary changes to tests, revert assertions back to how they were.
Remove unnecessary join from formatter in `_api.py`
2020-07-09 00:06:14 -07:00
Chris Howell
0e6fae2504
replace CLI json arg with format in test_cli.py
...
Replaced every occurance of `parsed_args.json` with `parsed_args.format` as well as the CLI arguments to match for testing.
2020-07-08 15:14:32 -07:00
Chris Howell
ac75f906e6
Update test_api.py
...
Fixed an encoding issue for Windows machines receiving an error due to Lines 24-27:
`UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 119434: character maps to <undefined>`.
Adjusted test_api.py to fix an issue when the format=None isnt passed with mock test raising:
`AssertionError: get_transcript('video_id_1', ['de', 'en'], None, None) call not found`
Added `import json` to convert test data for json data into a string for 1 or many json transcripts to keep in line with how the formatters are eventually returned as strings.
2020-07-08 15:11:54 -07:00
danielcliu
31b8f4a179
Redid errors for cookies, improved testing coverage
2020-01-30 21:53:18 -08:00
danielcliu
49ccba7f95
Fixed testing with mock, added testing for cookies
2020-01-27 21:47:04 -08:00
danielcliu
67604ec46c
Made testing more robust
2020-01-22 22:35:35 -08:00
danielcliu
f9e553ebaf
Added cli support, fixed testing
2020-01-20 23:04:46 -08:00
Jonas Depoix
7159f60823
fixed bug in cli where no transcript could be retrieved if no language was specified
2019-12-31 00:11:52 +01:00
Jonas Depoix
f8416ab004
added new params to cli to make new features accessible using the cli
2019-12-30 17:36:48 +01:00
Jonas Depoix
66d02c08a1
added tests for new public api method
2019-12-30 15:34:35 +01:00
Jonas Depoix
f1e4754ca4
added check if any transcripts are actually available
2019-12-20 16:28:35 +01:00
Jonas Depoix
df417be915
refactored the way transcript information is retrieved and thereby improved error messages
2019-12-08 14:40:57 +01:00
danielcliu
d224b02a80
Languages argument defaults to a tuple instead of a list.
2019-11-10 22:44:24 -08:00
danielcliu
7ac7d3266b
Changed youtubeWWW1.html.static's name
2019-11-06 21:19:24 -08:00
danielcliu
de1ddf0824
Implemented code to more thoroughly find a lanuages captions
2019-10-16 22:01:30 -07:00
Jonas Depoix
3d199e1b66
updated test assets to new youtube format
2019-10-09 13:27:51 +02:00
Jonas Depoix
c65cf27def
fixed bug reported in ISSUE-19
2019-07-22 13:11:52 +02:00
jdepoix
f9d7d337f4
Merge pull request #10 from DannyAziz/master
...
Add proxy functionality
2019-03-27 11:07:36 +01:00
Danny Aziz
d6d301a612
Run proxies test
2019-03-26 17:32:28 +00:00
Danny Aziz
7eb9e38eb6
Added more proxies tests
2019-03-20 17:06:05 +00:00
Danny Aziz
2b8f213f3d
Removed _TranscriptFetcher
2019-03-19 14:15:01 +00:00
Danny Aziz
a9270f67fd
Refactored Tests
2019-03-19 13:34:17 +00:00
Danny Aziz
86cd1666c0
Rebased on PR #11 and added tests
2019-03-16 16:23:42 +00:00
Jonas Depoix
2f239b4a4c
fixed build
2019-03-16 13:35:15 +01:00
Jonas Depoix
1550913334
removed redundant test assets
2019-03-16 13:31:49 +01:00
Jonas Depoix
4a564743df
changed testing assets naming to not mess with GitHub stats
2019-03-14 18:46:46 +01:00
Jonas Depoix
444998c02b
mock added to requirements to support 2.7
2019-03-14 17:26:52 +01:00
Jonas Depoix
94e4e4063f
test suite and corresponding tooling added
2019-03-14 17:04:34 +01:00