aboutsummaryrefslogtreecommitdiffstats
path: root/devscripts/show-downloads-statistics.py
diff options
context:
space:
mode:
Diffstat (limited to 'devscripts/show-downloads-statistics.py')
-rw-r--r--devscripts/show-downloads-statistics.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/devscripts/show-downloads-statistics.py b/devscripts/show-downloads-statistics.py
index b8c4269c4..e76f1e4c8 100644
--- a/devscripts/show-downloads-statistics.py
+++ b/devscripts/show-downloads-statistics.py
@@ -11,11 +11,11 @@ import sys
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
-from youtube_dlc.compat import (
+from yt_dlp.compat import (
compat_print,
compat_urllib_request,
)
-from youtube_dlc.utils import format_bytes
+from yt_dlp.utils import format_bytes
def format_size(bytes):
@@ -38,9 +38,9 @@ for page in itertools.count(1):
asset_name = asset['name']
total_bytes += asset['download_count'] * asset['size']
if all(not re.match(p, asset_name) for p in (
- r'^youtube-dlc$',
- r'^youtube-dlc-\d{4}\.\d{2}\.\d{2}(?:\.\d+)?\.tar\.gz$',
- r'^youtube-dlc\.exe$')):
+ r'^yt-dlp$',
+ r'^yt-dlp-\d{4}\.\d{2}\.\d{2}(?:\.\d+)?\.tar\.gz$',
+ r'^yt-dlp\.exe$')):
continue
compat_print(
' %s size: %s downloads: %d'