Repository: SathyaBhat/spotify-dl (language: python)

Issue:
Move to youtube-dlp from youtube-dl
**Describe the bug**
Youtube-dl hasn't been updated since June & is causing many download failures. Switch to [youtube-dlp](https://github.com/yt-dlp/yt-dlp) and see if any further changes are needed 
 
 


Discussion / hints:

Fix patch:
diff --git a/requirements.txt b/requirements.txt
index e43200da..28a47fa6 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,4 +1,4 @@
 sentry_sdk==0.19.4
-youtube-dl>=2021.06.06
+yt-dlp>=2021.10.10
 spotipy==2.16.1
 mutagen==1.45.1
diff --git a/spotify_dl/youtube.py b/spotify_dl/youtube.py
index e9a09d4f..84cc5a9b 100644
--- a/spotify_dl/youtube.py
+++ b/spotify_dl/youtube.py
@@ -2,7 +2,7 @@
 from os import path
 
 import mutagen
-import youtube_dl
+import yt_dlp as youtube_dl
 from mutagen.easyid3 import EasyID3
 from mutagen.id3 import APIC, ID3
 from mutagen.mp3 import MP3


Test patch:
diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml
index 68ab1834..728428a2 100644
--- a/.github/workflows/run_tests.yml
+++ b/.github/workflows/run_tests.yml
@@ -31,5 +31,6 @@ jobs:
         SPOTIPY_CLIENT_ID:  ${{ secrets.SPOTIPY_CLIENT_ID }}
         SPOTIPY_CLIENT_SECRET:  ${{ secrets.SPOTIPY_CLIENT_SECRET }}
       run: |
-        sudo apt-get install ffmpeg
+        sudo apt update
+        sudo apt install ffmpeg
         make tests