Updating yt-dlp: Difference between revisions

From Resonite Wiki
Add into tutorial and troubleshooting categories, on the correct page this time
Reword
Line 1: Line 1:
This is a guide for updating [https://github.com/yt-dlp/yt-dlp/ yt-dlp]. Occasionally, updates to services break or new services are added and will require updates. Resonite does bundle updates to this program in its own updates but you may want to update sooner instead of waiting.
This guide covers updating [https://github.com/yt-dlp/yt-dlp/ yt-dlp]. Occasionally, updates to services break functionality or new sites are supported requiring an update to yt-dlp to be used. Resonite does bundle updates to this program on its own but manually updating ensures you get the latest fixes immediately.


<code>yt-dlp.exe</code> can be located inside of <code>Resonite\RuntimeData\</code>.
<code>yt-dlp.exe</code> can be located inside of <code>Resonite\RuntimeData\</code>.
Line 5: Line 5:
=== Manual ===
=== Manual ===


* Open a command prompt or powershell window
* Open a command prompt or powershell window.
* Navigate to the <code>Resonite\RuntimeData\</code> folder with a command like <code>cd C:\Program Files (x86)\Steam\steamapps\common\Resonite\RuntimeData\</code>  
* Navigate to the <code>Resonite\RuntimeData\</code> folder with a command like <code>cd C:\Program Files (x86)\Steam\steamapps\common\Resonite\RuntimeData\</code>.
** In command prompt, you may need to use <code>cd /d</code> if your game is installed on another drive, this is not required in powershell.
** In command prompt, you may need to use <code>cd /d</code> if your game is installed on another drive, this is not required in powershell.
* From here, run <code>yt-dlp.exe -U</code> in command prompt or <code>.\yt-dlp.exe -U</code> in powershell.
* From here, run <code>yt-dlp.exe -U</code> in command prompt or <code>.\yt-dlp.exe -U</code> in powershell.


=== Batch Script ===
=== Batch Script ===
You can simplify the manual steps by putting them in a batch script file.
You can simplify the manual steps by putting them in a batch script. After that, you can update by simply running the script.


* Open notepad or a text editor of your choice, paste:
* Open notepad or a text editor of your choice, the paste in:
<syntaxhighlight lang="batch">
<syntaxhighlight lang="batch">
@echo off
@echo off
Line 24: Line 24:
* Name the file <code>Update_yt-dlp.bat</code> or similar ending in '.bat'
* Name the file <code>Update_yt-dlp.bat</code> or similar ending in '.bat'
* Save this where ever you'd like
* Save this where ever you'd like
Now updating can be done by just running the batch file directly.


=== Mod ===
=== Mod ===

Revision as of 10:32, 25 March 2025

This guide covers updating yt-dlp. Occasionally, updates to services break functionality or new sites are supported requiring an update to yt-dlp to be used. Resonite does bundle updates to this program on its own but manually updating ensures you get the latest fixes immediately.

yt-dlp.exe can be located inside of Resonite\RuntimeData\.

Manual

  • Open a command prompt or powershell window.
  • Navigate to the Resonite\RuntimeData\ folder with a command like cd C:\Program Files (x86)\Steam\steamapps\common\Resonite\RuntimeData\.
    • In command prompt, you may need to use cd /d if your game is installed on another drive, this is not required in powershell.
  • From here, run yt-dlp.exe -U in command prompt or .\yt-dlp.exe -U in powershell.

Batch Script

You can simplify the manual steps by putting them in a batch script. After that, you can update by simply running the script.

  • Open notepad or a text editor of your choice, the paste in:
@echo off
cd /d "C:\Program Files (x86)\Steam\steamapps\common\Resonite\RuntimeData"
yt-dlp.exe -U
  • Update the path if your game is installed in another location.
  • Click File > Save As and change the 'Save as type' to 'All Files'
  • Name the file Update_yt-dlp.bat or similar ending in '.bat'
  • Save this where ever you'd like

Mod

A mod exist to automatically update yt-dlp when launching the game, it can be found here https://github.com/Raidriar796/yt-dlp-Updater/.