= commited on
Commit
a53bedb
·
1 Parent(s): 19bf710
Files changed (1) hide show
  1. lib/Transcriber.jl +9 -12
lib/Transcriber.jl CHANGED
@@ -10,21 +10,18 @@ function __init__()
10
  from youtube_transcript_api import YouTubeTranscriptApi
11
  from youtube_transcript_api.proxies import WebshareProxyConfig
12
 
13
- print(f"Debug - Found webshareuser: {'YES' if WEBSHAREUSER else 'NO'}")
14
- print(f"Debug - Found websharepass: {'YES' if WEBSHAREPASS else 'NO'}")
15
-
16
- webshareuser = os.environ.get("WEBSHAREUSER") # Changed from webuser to webshareuser
17
- websharepass = os.environ.get("WEBSHAREPASS")
18
- ytt_api = YouTubeTranscriptApi(
19
- proxy_config=WebshareProxyConfig(
20
- proxy_username=webshareuser,
21
- proxy_password=websharepass,
22
- )
23
- )
24
 
25
 
26
  def get_transcript(video_id):
27
- return ytt_api.get_transcript(video_id)
28
  """
29
  end
30
 
 
10
  from youtube_transcript_api import YouTubeTranscriptApi
11
  from youtube_transcript_api.proxies import WebshareProxyConfig
12
 
13
+ #webshareuser = os.environ.get("WEBSHAREUSER") # Changed from webuser to webshareuser
14
+ #websharepass = os.environ.get("WEBSHAREPASS")
15
+ #ytt_api = YouTubeTranscriptApi(
16
+ # proxy_config=WebshareProxyConfig(
17
+ # proxy_username=webshareuser,
18
+ # proxy_password=websharepass,
19
+ # )
20
+ #)
 
 
 
21
 
22
 
23
  def get_transcript(video_id):
24
+ return YouTubeTranscriptApi.get_transcript(video_id)
25
  """
26
  end
27