Merge pull request #237 from dmitmel/master

[pull] master from dmitmel:master
This commit is contained in:
pull[bot] 2021-04-11 22:29:26 +00:00 committed by GitHub
commit 0d82ed488b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 23 deletions

View file

@ -63,6 +63,7 @@ def emote_downloader_and_iterator():
chosen_index = common_script_utils.run_chooser( chosen_index = common_script_utils.run_chooser(
emote_downloader_and_iterator(), prompt="emote", async_read=True emote_downloader_and_iterator(), prompt="emote", async_read=True
) )
if chosen_index >= 0:
chosen_emote = emotes[chosen_index] chosen_emote = emotes[chosen_index]
emote_url = urllib.parse.urlparse(chosen_emote["url"]) emote_url = urllib.parse.urlparse(chosen_emote["url"])

View file

@ -110,6 +110,7 @@ chosen_index = common_script_utils.run_chooser(
chooser_entries_iter(), prompt="bookmark" chooser_entries_iter(), prompt="bookmark"
) )
if chosen_index >= 0:
_title, url, _folder_path_str = chooser_entries[chosen_index] _title, url, _folder_path_str = chooser_entries[chosen_index]
print(url) print(url)