update fzf list and sqash some bugs
This commit is contained in:
parent
c7cab59898
commit
9cec56ef73
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user