Commit Graph

36 Commits

Author SHA1 Message Date
Jonas Depoix 47eae6d8e0 temporary change to test coverage in CI 2024-11-11 15:38:14 +01:00
Jonas Depoix 339fc4bcfe commented test back in 2024-11-11 14:53:58 +01:00
Jonas Depoix 0967845a3d testing if coverall will fail build 2024-11-11 12:30:22 +01:00
Jonas Depoix 5f96588ada added black formatter 2024-09-26 17:56:36 +02:00
Jonas Depoix 7ab2a9e4a5 added condition to initialize empty translation language list when translationLanugage key is missing 2023-12-27 12:47:25 +01:00
Jonas Depoix a04a7010ed added error which is thrown if url is used as the video id 2023-04-17 15:34:46 +02:00
E. Seiver 72e9781528 add preserve_formatting to get_transcripts() + tests
also assertion tests for `get_transcripts()` updated to include `False` at the end for  new `preserve_formatting` param
2023-04-12 12:43:48 -07:00
E. Seiver c1e5ce4ebb update tests and test doc
add (partially escaped) italics to test doc
add new test for `preserve_formatting=True`
2023-03-15 18:21:34 -07:00
Maja b4ac0a17b7 removed comments 2022-06-01 12:13:52 -04:00
Maja 74d645adce removed ast import 2022-06-01 12:09:37 -04:00
Maja e884646c16 added error message to assert statement 2022-04-26 00:35:01 -04:00
Jonas Depoix 02b91b0870 transcript language list is now properly escaped 2022-03-30 17:13:25 +02:00
Joshua Lochner b8dbc97549 Add additional test case for `TranscriptsDisabled` 2021-11-29 18:40:01 +02:00
Jonas Depoix c3f8dc0772 added error message if YouTube requests fail 2021-11-08 09:51:21 +01:00
Jonas Depoix 9251be8462 added ability to create consent cookie 2021-03-31 15:59:57 +02: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 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
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 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
jdepoix f9d7d337f4
Merge pull request #10 from DannyAziz/master
Add proxy functionality
2019-03-27 11:07:36 +01: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 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