Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Bleezr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hector Blondel
Bleezr
Commits
9a556cd7
Commit
9a556cd7
authored
3 years ago
by
Hector Blondel
Browse files
Options
Downloads
Patches
Plain Diff
correction du .format
parent
397c60fb
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
download_server.py
+2
-1
2 additions, 1 deletion
download_server.py
with
2 additions
and
1 deletion
download_server.py
+
2
−
1
View file @
9a556cd7
...
@@ -27,7 +27,8 @@ while True :
...
@@ -27,7 +27,8 @@ while True :
i
=
0
i
=
0
while
i
<
len
(
all_videos
)
and
all_videos
[
i
]
not
in
seen_videos
:
while
i
<
len
(
all_videos
)
and
all_videos
[
i
]
not
in
seen_videos
:
vid
=
all_videos
[
i
]
vid
=
all_videos
[
i
]
command
=
"
yt-dlp -f
'
ba
'
-x --audio-format mp3 https://www.youtube.com/watch?v={0} -o
'
%(id)s.mp3
'
"
.
format
(
"
vid
"
)
print
(
vid
)
command
=
"
yt-dlp -f
'
ba
'
-x --audio-format mp3 https://www.youtube.com/watch?v={0} -o
'
%(id)s.mp3
'
"
.
format
(
vid
)
os
.
system
(
command
)
os
.
system
(
command
)
seen_videos
.
append
(
vid
)
seen_videos
.
append
(
vid
)
i
+=
1
i
+=
1
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment