diff --git a/README.md b/README.md index 5709f87..88d331c 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,6 @@ Transcribe audio files using [OpenAI's Whisper](https://github.com/openai/whisper). You may upload audio files from any publically accessible URL. You may also -use share links from Google Drive, Dropbox, Mediafire, Wetransfer and YouTube. If you +use share links from Google Drive, Dropbox, Mediafire, Wetransfer and Facebook. If you use a share link for a folder, it will process all files in that folder. -*NOTE*: You must have a verified account to use this Add-On. [If you have not -yet verified your account, please do so -here.](https://airtable.com/shrZrgdmuOwW0ZLPM) diff --git a/config.yaml b/config.yaml index c9c9c6a..251cf50 100644 --- a/config.yaml +++ b/config.yaml @@ -3,15 +3,17 @@ description: | Transcribe audio files using [OpenAI's Whisper](https://github.com/openai/whisper). instructions: | You may upload audio files from a publically accessible URL or links from - Google Drive, Dropbox, Mediafire, Wetransfer, or YouTube. + Google Drive, Dropbox, Mediafire, Wetransfer, or Facebook. If you use a share link for a folder, it will process all audio files in that folder. Facebook videos are now supported, but not URLs that start with fb.watch. If you have a fb.watch link, paste it in your browser and hit enter to load the video. Grab the full FB video link from there. - The correct URL will follow the format: https://www.facebook.com/watch/?v=57937975397&ref=sharing - + + Transcribe Audio no longer supports YouTube videos because of new download blocking/ bot detection + measures. + You may specify which [model](https://github.com/openai/whisper#available-models-and-languages) of whisper you would like to use. Generally, the bigger the model the more accurate the transcription and the longer it will take to complete. Do note that the large model is slower and if you have a really large set of files to transcribe, it may timeout and not complete. diff --git a/main.py b/main.py index 89e739c..64c3c0e 100644 --- a/main.py +++ b/main.py @@ -89,7 +89,9 @@ def fetch_files(self, url): self.set_message("Not a valid YouTube video URL, please try again") sys.exit(1) else: - os.chdir("./out/") + self.set_message("Unfortunately, due to new bot detection policies, YouTube videos are no longer supported in this Add-On.") + sys.exit(0) + """os.chdir("./out/") ydl_opts = { "quiet": True, "noplaylist": True, @@ -104,7 +106,7 @@ def fetch_files(self, url): with YoutubeDL(ydl_opts) as ydl: ydl.download([url]) os.chdir("..") - downloaded = True + downloaded = True """ if "facebook.com" in url: try: os.chdir("./out/") diff --git a/requirements.txt b/requirements.txt index 894e40d..4c4d18e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,5 +5,4 @@ tqdm patool bs4 clouddl -yt-dlp lord-of-the-clips