Skip to content

Commit

Permalink
Restore YT block
Browse files Browse the repository at this point in the history
  • Loading branch information
duckduckgrayduck committed Oct 17, 2024
1 parent 5d0703c commit 4ba93a7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
8 changes: 5 additions & 3 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 4 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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/")
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ tqdm
patool
bs4
clouddl
yt-dlp
lord-of-the-clips

0 comments on commit 4ba93a7

Please sign in to comment.