fonol / anki-search-inside-add-card

An add-on providing full-text-search and PDF reading functionality to Anki's Add card dialog
https://ankiweb.net/shared/info/1781298089
GNU Affero General Public License v3.0
179 stars 24 forks source link

hotfix: youtube https url opening in browser #183

Closed p4nix closed 3 years ago

p4nix commented 3 years ago

is_file didn't check whether or not it was a youtube link, thus opening such links in the standard browser. Fixed by checking for youtube link syntax in is_file logic. Downside: youtube links can not be watched externally, maybe workaround later if demand is voiced.