Commit Graph

76 Commits

Author SHA1 Message Date
jdepoix 5657a48674
Merge pull request #132 from jdepoix/feature/ISSUE-131
added error message if YouTube requests fail
2021-11-08 11:00:46 +01:00
Jonas Depoix b12e67d903 fixed string formatting 2021-11-08 10:57:08 +01:00
Jonas Depoix c3f8dc0772 added error message if YouTube requests fail 2021-11-08 09:51:21 +01:00
Jonas Depoix 99dd9126fd improved readability of time conversion 2021-06-07 08:52:29 +02:00
esha71 6f4ab9decd
Update formatters.py
corrected hours calculation logic in class WebVTTFormatter  method _seconds_to_timestamp for transcripts with more than an hour length
2021-05-30 02:30:56 +05:30
Jonas Depoix 9251be8462 added ability to create consent cookie 2021-03-31 15:59:57 +02:00
Jonas Depoix e69759f6d6 fixed test 2021-03-22 19:04:10 +01:00
Jonas Depoix 3781907943 Merge branch 'master' into feature/ISSUE-23 2021-03-22 18:54:07 +01:00
jdepoix c3f0cfca45
Merge pull request #103 from jdepoix/bugfix/ISSUE-80
adjusted CLI to be able to handle masked hyphens
2021-03-17 16:23:09 +01:00
Jonas Depoix 2f592a37a2 removed string formatting which is not supported in older python versions 2021-03-15 18:13:34 +01:00
Jonas Depoix cf585e2175 refactored formatters to use format_transcript and format_transcripts 2021-03-15 17:57:44 +01:00
Jonas Depoix d314139329 added FormatterLoader 2021-03-15 17:16:20 +01:00
Jonas Depoix 71268dfad9 Merge branch 'feature/ISSUE-23' of https://github.com/crhowell/youtube-transcript-api into feature/ISSUE-23 2021-03-15 14:37:59 +01:00
Jonas Depoix 72f035fa6d adjusted CLI to be able to handle masked hyphens 2021-03-15 10:34:05 +01:00
Chris Howell 35dca89ef2 add object to classes, fixes bugfix/ISSUE-75 2021-03-08 04:04:19 -08:00
Chris Howell baadc2f7f0 Merge master, fix readme conflicts 2021-03-02 07:48:17 -08:00
Your Name 23798f205d improve message as per jdepoix suggestion 2021-01-25 17:36:27 +01:00
Your Name dbf5eeafe6 Error message more descriptive 2021-01-22 14:18:56 +01: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 f3dc6f508f Add new formatters.py module 2020-09-01 15:21:47 -07:00
Jonas Depoix bc2a90bef7 removed version dependent import from coverage 2020-08-31 14:07:35 +02: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 42d4f59e01 Moved cookie loader to its own function, made errors for cookies failing 2020-01-27 21:46:37 -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
danielcliu 02b1978217 Added cookies parameter to api class methods 2020-01-15 22:48:00 -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 936ef3c1d0 added list-transcripts param to cli 2019-12-30 17:40:32 +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 4b75a47a74 get_transcripts now returns a list of exceptions instead of video ids of failed videos 2019-12-30 16:13:18 +01:00
Jonas Depoix 66d02c08a1 added tests for new public api method 2019-12-30 15:34:35 +01:00
Jonas Depoix 1bc5087575 added public list_transcripts method 2019-12-30 15:20:47 +01:00
Jonas Depoix 8287d1088e fixed bug where nontranslatable transcripts would throw an exception 2019-12-30 14:38:27 +01:00
Jonas Depoix f1e4754ca4 added check if any transcripts are actually available 2019-12-20 16:28:35 +01:00
Jonas Depoix 20612ea7a3 improved tostring methods 2019-12-16 17:08:14 +01:00
Jonas Depoix 409141ab51 added translate feature; added iterator to TranscriptList 2019-12-16 16:58:26 +01:00
Jonas Depoix 41300585a1 fixed bug where undesirable results where returned if the desired language was only available as generated transcript 2019-12-13 11:15:32 +01:00
Jonas Depoix c2c49c3c17 fixed bug; added doctstrings for public methods 2019-12-11 11:42:14 +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 54ef72fafd Improve Name regex to use 1 group, find first & 2019-11-11 19:58:12 -08:00
danielcliu d224b02a80 Languages argument defaults to a tuple instead of a list. 2019-11-10 22:44:24 -08:00
danielcliu c7cb3117be Removed unnecessary language variables, sort split matches by len while ignoring name arguement 2019-11-06 21:20:51 -08:00
danielcliu 7ac7d3266b Changed youtubeWWW1.html.static's name 2019-11-06 21:19:24 -08:00
danielcliu db7b8524dc Removed another f-string instance 2019-10-22 21:03:41 -07:00