Skip to content

Commit

Permalink
try to login to youtube on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kytpbs committed Aug 20, 2024
1 parent ee1e746 commit 21c23ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: check
env:
INSTAGRAM_USERNAME: ${{ secrets.INSTAGRAM_USERNAME }}
INSTAGRAM_SESSION: ${{ secrets.INSTAGRAM_SESSION_JSON }}
YOUTUBE_USERNAME: ${{ secrets.YOUTUBE_USERNAME }}
YOUTUBE_PASSWORD: ${{ secrets.YOUTUBE_PASSWORD }}
on:
push:
pull_request:
Expand Down
2 changes: 2 additions & 0 deletions src/Youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ def download_video_from_link(url: str, path: str | None = None) -> VIDEO_RETURN_
'default_search': 'auto',
'nooverwrites': True,
'quiet': True,
'username': os.getenv("YOUTUBE_USERNAME"),
'password': os.getenv("YOUTUBE_PASSWORD"),
}

with yt_dlp.YoutubeDL(costum_options) as ydl:
Expand Down

0 comments on commit 21c23ef

Please sign in to comment.