diff --git a/scripts/download_manager.py b/scripts/download_manager.py index 743e5b9..cfb6c67 100644 --- a/scripts/download_manager.py +++ b/scripts/download_manager.py @@ -12,6 +12,7 @@ from .helper import argManager class Manager(): + count = 1 def __init__(self): self.unicode = str self.args = argManager() @@ -37,6 +38,8 @@ def format_filename(self, filename): filename = filename.replace("?", "-") filename = filename.replace("*", "-") filename = filename.replace("|", "-") + filename = str(Manager.count) + '. ' + filename + Manager.count += 1 return filename def get_download_location(self, *args): @@ -103,4 +106,4 @@ def addtags(self, filename, json_data, playlist_name): cover = MP4Cover(fd.read(), getattr(MP4Cover, 'FORMAT_PNG' if cover_url.endswith('png') else 'FORMAT_JPEG')) fd.close() audio['covr'] = [cover] - audio.save() \ No newline at end of file + audio.save()