diff --git a/setup.cfg b/setup.cfg index 4735a06..bdec321 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = jimaku-dl -version = 0.1.1 +version = 0.1.2 author = InsaneDesperado author_email = insane@lmaoxd.lol description = Download japanese anime subtitles from Jimaku diff --git a/src/jimaku_dl/downloader.py b/src/jimaku_dl/downloader.py index 2c8f07e..bba73b8 100644 --- a/src/jimaku_dl/downloader.py +++ b/src/jimaku_dl/downloader.py @@ -676,8 +676,8 @@ class JimakuDownloader: # Present entries in fzf for selection entry_options = [] entry_mapping = {} - for entry in entries: - opt = f"{entry.get('name', 'No Title')} - {entry.get('flags', {}).get('japanese_name', 'Unknown')}" + for i, entry in enumerate(entries, start=1): + opt = f"{i}. {entry.get('english_name', 'No Eng Name')} - {entry.get('japanese_name', 'None')}" entry_options.append(opt) entry_mapping[opt] = entry @@ -708,8 +708,8 @@ class JimakuDownloader: # Present available subtitle files for selection file_options = [] file_mapping = {} - for file_info in files: - display = f"{file_info.get('name', 'Unknown')}" + for i, file_info in enumerate(files, start=1): + display = f"{i}. {file_info.get('name', 'Unknown')}" file_options.append(display) file_mapping[display] = file_info @@ -750,7 +750,7 @@ class JimakuDownloader: continue # Use provided filename if available; otherwise, default to base video name + suffix. - filename = file_info.get("filename") + filename = file_info.get("name") if not filename: if is_directory: # For directory input, use the file's own name or ID