Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1016055 // youtubeDownloadVideo

JavaX fragment (include)

1  
// returns youtube-dl output
2  
static S youtubeDownloadVideo(S url) {
3  
  ret youtubeDownloadVideo(url, null);
4  
}
5  
6  
static S youtubeDownloadVideo(S url, File outputDir) {
7  
  Class c = hotwireDependent(#1006739);
8  
  set(c, youTubeOptions := ""); // default video format
9  
  set(c, +outputDir);
10  
  callMain(c, url);
11  
  ret str(get(c, "output"));
12  
}

Author comment

Began life as a copy of #1009145

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1016055
Snippet name: youtubeDownloadVideo
Eternal ID of this version: #1016055/4
Text MD5: 74c8532ce22fc1ff4d8e4ae5b7538e12
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-07 22:44:02
Source code size: 344 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 526 / 549
Version history: 3 change(s)
Referenced in: [show references]