Skip to content

Commit 4ba93a7

Browse files
Restore YT block
1 parent 5d0703c commit 4ba93a7

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
Transcribe audio files using [OpenAI's Whisper](https://github.com/openai/whisper).
99

1010
You may upload audio files from any publically accessible URL. You may also
11-
use share links from Google Drive, Dropbox, Mediafire, Wetransfer and YouTube. If you
11+
use share links from Google Drive, Dropbox, Mediafire, Wetransfer and Facebook. If you
1212
use a share link for a folder, it will process all files in that folder.
1313

14-
*NOTE*: You must have a verified account to use this Add-On. [If you have not
15-
yet verified your account, please do so
16-
here.](https://airtable.com/shrZrgdmuOwW0ZLPM)

config.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@ description: |
33
Transcribe audio files using [OpenAI's Whisper](https://github.com/openai/whisper).
44
instructions: |
55
You may upload audio files from a publically accessible URL or links from
6-
Google Drive, Dropbox, Mediafire, Wetransfer, or YouTube.
6+
Google Drive, Dropbox, Mediafire, Wetransfer, or Facebook.
77
If you use a share link for a folder, it will process all audio files in that folder.
88
99
Facebook videos are now supported, but not URLs that start with fb.watch.
1010
If you have a fb.watch link, paste it in your browser and hit enter to load the video.
1111
Grab the full FB video link from there.
12-
1312
The correct URL will follow the format: https://www.facebook.com/watch/?v=57937975397&ref=sharing
14-
13+
14+
Transcribe Audio no longer supports YouTube videos because of new download blocking/ bot detection
15+
measures.
16+
1517
You may specify which [model](https://github.com/openai/whisper#available-models-and-languages) of whisper you would like to use.
1618
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
1719
slower and if you have a really large set of files to transcribe, it may timeout and not complete.

main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ def fetch_files(self, url):
8989
self.set_message("Not a valid YouTube video URL, please try again")
9090
sys.exit(1)
9191
else:
92-
os.chdir("./out/")
92+
self.set_message("Unfortunately, due to new bot detection policies, YouTube videos are no longer supported in this Add-On.")
93+
sys.exit(0)
94+
"""os.chdir("./out/")
9395
ydl_opts = {
9496
"quiet": True,
9597
"noplaylist": True,
@@ -104,7 +106,7 @@ def fetch_files(self, url):
104106
with YoutubeDL(ydl_opts) as ydl:
105107
ydl.download([url])
106108
os.chdir("..")
107-
downloaded = True
109+
downloaded = True """
108110
if "facebook.com" in url:
109111
try:
110112
os.chdir("./out/")

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ tqdm
55
patool
66
bs4
77
clouddl
8-
yt-dlp
98
lord-of-the-clips

0 commit comments

Comments
 (0)