Skip to content

Commit 3353b44

Browse files
authored
Update test-youtube.yml
1 parent 5cad0e8 commit 3353b44

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/test-youtube.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
steps:
1212
- run: pip install yt-dlp
1313
- run: sudo apt install torsocks
14+
- name: create formats.txt (needed to avoid crash later)
15+
run: echo hi>formats.txt
1416
- name: Run tests
15-
run: until grep --ignore-case DRM temp.txt; do rm temp.txt&&(torsocks yt-dlp JFV4u-NcBzg JFV4u-NcBzg --print-to-file "%(formats_table)s" temp.txt --allow-unplayable-formats --extractor-args "youtube:player_client=tv_simply,tv;formats=duplicate" --simulate||true);done
16-
- run: cat temp.txt
17+
run: until grep --ignore-case DRM formats.txt; do rm formats.txt&&(torsocks yt-dlp JFV4u-NcBzg JFV4u-NcBzg --print-to-file "%(formats_table)s" formats.txt --allow-unplayable-formats --extractor-args "youtube:player_client=tv_simply,tv;formats=duplicate" --simulate||true);done
18+
- run: cat formats.txt

0 commit comments

Comments
 (0)