Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:guides:features:youtube-dl [2018/08/27 03:31]
irgendwer minor fixes
en:guides:features:youtube-dl [2018/11/07 16:30] (current)
irgendwr added missing sudo
Line 5: Line 5:
 ## Windows ## Windows
  
-1. Download [[https://​yt-dl.org/​downloads/​latest/​youtube-dl.exe|youtube-dl.exe]] +Download [[https://​yt-dl.org/​downloads/​latest/​youtube-dl.exe|youtube-dl.exe]] 
-2. Save/Copy it into the bot directory (same folder the sinusbot.exe is in, for example in` C:​\SinusBot\` - depending on where you installed it) +Save/Copy it into the bot directory (same folder the sinusbot.exe is in, for example in `C:​\SinusBot\` - depending on where you installed it) 
-3. Restart the bot+Restart the bot
  
 The bot should detect it automatically and commands like `!yt`, `!ytdl`, etc. should be available. The bot should detect it automatically and commands like `!yt`, `!ytdl`, etc. should be available.
Line 21: Line 21:
 Run the following commands but make sure to adjust the path to match your SinusBot installation:​ Run the following commands but make sure to adjust the path to match your SinusBot installation:​
  
 +  * `sudo apt update && sudo apt install python`
   * `sudo curl -L https://​yt-dl.org/​downloads/​latest/​youtube-dl -o /​opt/​sinusbot/​youtube-dl`   * `sudo curl -L https://​yt-dl.org/​downloads/​latest/​youtube-dl -o /​opt/​sinusbot/​youtube-dl`
   * `chmod a+rx /​opt/​sinusbot/​youtube-dl`   * `chmod a+rx /​opt/​sinusbot/​youtube-dl`
  
 The bot should detect it automatically and commands like `!yt`, `!ytdl`, etc. should be available. The bot should detect it automatically and commands like `!yt`, `!ytdl`, etc. should be available.
 +
 +#### Automatic updates
 +
 +If you want youtube-dl to be updated automatically you can add a cronjob that does this by executing:
 +
 +`echo "0 0 * * * sinusbot /​opt/​sinusbot/​youtube-dl -U --restrict-filename >/​dev/​null"​ > /​etc/​cron.d/​ytdl`
  
 ### Troubleshooting ### Troubleshooting