Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
ytdl-patched
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
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lesmiscore
ytdl-patched
Commits
b1663dd5
Unverified
Commit
b1663dd5
authored
2 years ago
by
Lesmiscore
Browse files
Options
Downloads
Patches
Plain Diff
__init__ (--rm-long-name-dir): allow specifying paths to delete, if requested
parent
c2d92fab
No related branches found
Branches containing commit
Tags
1651731664
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
yt_dlp/__init__.py
+4
-1
4 additions, 1 deletion
yt_dlp/__init__.py
with
4 additions
and
1 deletion
yt_dlp/__init__.py
+
4
−
1
View file @
b1663dd5
...
...
@@ -98,7 +98,10 @@ def print_extractor_information(opts, urls):
table
=
[[
mso_id
,
mso_info
[
'
name
'
]]
for
mso_id
,
mso_info
in
MSO_INFO
.
items
()]
write_string
(
'
Supported TV Providers:
\n
'
+
render_table
([
'
mso
'
,
'
mso name
'
],
table
)
+
'
\n
'
,
out
=
sys
.
stdout
)
elif
opts
.
rm_longnamedir
:
for
dirpath
,
_
,
_
in
os
.
walk
(
os
.
getcwd
(),
topdown
=
False
):
if
not
urls
:
urls
=
[
os
.
getcwd
()]
walker
=
(
x
for
y
in
urls
for
x
in
os
.
walk
(
y
,
topdown
=
False
))
for
dirpath
,
_
,
_
in
walker
:
if
not
dirpath
.
endswith
(
DEFAULT_DELIMITER
):
continue
if
os
.
listdir
(
dirpath
):
...
...
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