VideoHelp Forum

Try DVDFab and download streaming video, copy, convert or make Blu-rays,DVDs! Download free trial !
+ Reply to Thread
Results 1 to 7 of 7
Thread
  1. how can i make drag an drop batch file for a YOUTUBE-DL.exe, it seems that forefox doesnt link the name
    Quote Quote  
  2. Explorer Case's Avatar
    Join Date
    Feb 2004
    Location
    Middle Earth
    Search Comp PM
    Collect the movie URLs in a text file
    Code:
    youtube-dl --batch-file batchvideos.txt
    or download a YT-playlist
    Code:
    youtube-dl https://www.youtube.com/playlist?list=PLkahZjV5wKe_dajngssVLffaCh2gbq55_
    Quote Quote  
  3. This isn't drag and drop but it's very easy. You can copy the url to the clipboard then double click on a bat file to download with youtube-dl.

    1) Download clipboard.zip from this link: https://steve.fi/Software/clipboard/ . Put clipboard.exe in the same folder as youtube-dl.exe.

    2) Extract _cb2ytdl.bat from the attached zip file and put it in the same folder as youtube-dl.exe.

    To download a file right click on the URL in the browser's address bar and select Copy (to clipboard). Then double click on _cb2ytdl.bat. You should see youtube-dl downloading the file in the CLI that pops open. The batch file muxes the "best" (the defaults for youtube-dl) video and audio streams into an mkv file. You can change the batch file if you want another container or other options.

    <edit>
    I've updated the original batch file to allow for multiple simultaneous downloads.
    </edit>
    Image Attached Files
    Last edited by jagabo; 30th Jan 2018 at 22:44. Reason: new batch file
    Quote Quote  
  4. Oops, duplicate post.
    Last edited by jagabo; 31st Aug 2017 at 10:44.
    Quote Quote  
  5. Member
    Join Date
    Mar 2008
    Location
    Netherlands
    Search Comp PM
    @jagabo

    This isn't drag and drop either, but it is a good solution though

    Edit: sorry i misinterpreted your first line..
    Last edited by jan5678; 31st Aug 2017 at 10:43.
    Quote Quote  
  6. >This isn't drag and drop
    I see it was glad to know.
    I thought i had a wrong problem, so i wanted to ask it here, but i think my solution was better.

    i didnt want to isolate the youtube address string for copying and pasting, i too often clipboard-copy the the whole page instead.
    because once i isolate it, i can simply use "set /p input=" in a batch

    since win OS and webpage doesnt link http:// page directly
    you just need to drag the youtube address to the desktop and drop it there
    and then drag that URL file over YOUTUBE-DL.BAT, then everything is done.

    YOUTUBE-DL.BAT simply removes the URL header and URL=, then pass the address as a variable to process.

    you must change 2 things in a YOUTUBE-DL.BAT,

    * the location of YOUTUBE-DL.exe
    * where to download

    YOUTUBE-DL.BAT is below
    ----------------------------------------------

    @ECHO OFF

    SET P1=C:\Programs\YOUTUBE-DL\youtube-dl.exe
    SET P2=%P1%

    SetLocal EnableExtensions EnableDelayedExpansion

    SET "K1=%*"

    FOR /F "DELIMS=" %%V IN ('TYPE %K1%') DO (
    SET "VV=%%V"
    )

    SET "W1=%VV:~4%"

    REM ----------------------------------

    ECHO %P1%
    ECHO !W1!
    ECHO.
    ECHO %P1% !W1!
    ECHO.

    M:
    CD M:\

    REM -----------------------------------
    IF DEFINED PUBLIC GOTO Win10
    REM -----------------------------------

    %P1% !W1!

    GOTO END

    REM -----------------------------------
    :Win10
    REM -----------------------------------

    %P2% !W1!

    GOTO END

    :END
    ECHO.
    ECHO Done
    Last edited by sommers; 31st Aug 2017 at 21:03.
    Quote Quote  
  7. Oops, wrong thread.
    Last edited by jagabo; 30th Jan 2018 at 22:43.
    Quote Quote  



Similar Threads