From 7a5c1cfe93924351387b44919b3c0b2f66c4b883 Mon Sep 17 00:00:00 2001 From: Pccode66 <49125134+Pccode66@users.noreply.github.com> Date: Wed, 24 Feb 2021 15:45:56 -0300 Subject: Completely change project name to yt-dlp (#85) * All modules and binary names are changed * All documentation references changed * yt-dlp no longer loads youtube-dlc config files * All URLs changed to point to organization account Co-authored-by: Pccode66 Co-authored-by: pukkandan --- devscripts/show-downloads-statistics.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'devscripts/show-downloads-statistics.py') 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' -- cgit v1.2.3