VADemon

OpenWith + Youtube-dl downloader

Apr 18th, 2016
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. https://imgur.com/gallery/QehyF6u
  2.  
  3. OpenWith Addon + Youtube-dl
  4.  
  5. Note: It's recommended to install FFMPEG (just drop ffmpeg.exe in the same folder as youtube-dl.exe)
  6.  
  7. Open With Options > "Choose which items to display:"
  8.  
  9. Replace <PATH> with your Download folder
  10. > it should contain youtube-dl.exe and ffmpeg.exe files
  11.  
  12. X: - Change it to the drive/partition letter the PATH folder is on
  13.  
  14. Name: YT - bestvideo+audio
  15. Command: cmd.exe
  16. Arguments: /c cd "<PATH>" && X: & echo %CD% & youtube-dl.exe ""%s""
  17.  
  18. Name: YT - bestvideo+audio
  19. Command: cmd.exe
  20. Arguments: /c cd "<PATH>" && X: & echo %CD% & youtube-dl.exe -f bestaudio ""%s""
  21.  
  22. Name: YT - BatchDL: ADD Video
  23. Command: cmd.exe
  24. Arguments: /c cd "<PATH>" && X: & echo %CD% & echo "%s" >> batchdownload.txt
  25. Note: batchdownload.txt will contain all URLs to download later via "Batch: Download"
  26.  
  27. Name: YT - BatchDL: REMOVE Last Video
  28. Command: cmd.exe
  29. Arguments: /c cd "<PATH>" && X: & removelastline.bat batchdownload.txt & echo "Last video was removed from the list!"
  30.  
  31.  
  32. Create removelastline.bat file inside the <PATH> folder
  33. Contents:
  34.  
  35. :: Usage: remlastline.bat <targetFileName>
  36.  
  37. echo %1
  38. del removelastline.temp
  39. @echo off & setlocal EnableDelayedExpansion
  40. set row=
  41. for /F "delims=" %%j in (%1) do (
  42. if defined row echo.!row!>> removelastline.temp
  43. set row=%%j
  44. )
  45. del %1
  46. rename removelastline.temp %1
  47.  
  48.  
  49. Name: YT - bestvideo+audio - Batch: Download
  50. Command: cmd.exe
  51. Arguments: /c cd "<PATH>" & X: & echo %CD% & youtube-dl.exe --abort-on-error --batch-file batchdownload.txt & echo "Batch download Complete!" & PAUSE
  52.  
  53. Name: YT - BatchDL: CLEAR The List
  54. Command: cmd.exe
  55. Arguments: /c cd "<PATH>" && X: & del batchdownload.txt & echo "Batch DL list deleted!" & PAUSE
  56.  
  57.  
  58. PS: You can create a youtube-dl config file at %APPDATA%/youtube-dl/config.txt to set global settings.
  59. My _personal_ config sets the following:
  60. --rate-limit 4.2M // max download speed
  61. -f bestvideo[height<=1200]+bestaudio/best
  62. // first it should try to download FullHD+Bestaudio then if that fails, just download "best"
Add Comment
Please, Sign In to add comment