Skip to content

Commit 6f4611e

Browse files
committed
Print a table of the subset in output
1 parent af48430 commit 6f4611e

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

youtube2zim/scraper.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
from dateutil import parser as dt_parser
2828
from kiwixstorage import KiwixStorage
2929
from pif import get_public_ip
30+
from tabulate import tabulate
3031
from zimscraperlib.download import stream_file
3132
from zimscraperlib.fix_ogvjs_dist import fix_source_dir
3233
from zimscraperlib.i18n import NotFound, get_language_details, setlocale
@@ -548,10 +549,7 @@ def download_video_files(self, max_concurrency):
548549
else:
549550
self.videos_ids = videos_ids_subset
550551
break
551-
# print in a file, a table of videos to download with their size using tabulate module
552-
# the column names are: video_id, video_title, video_views, video_size
553-
# print also the total size of the videos to download and the total size of the subset
554-
# and save the file in the /output directory
552+
# print the list of videos to download
555553
with open("/output/subset_table.txt", "w") as f:
556554
f.write(
557555
tabulate(

0 commit comments

Comments
 (0)