diff options
author | daniel-Jones <daniel@danieljon.es> | 2018-02-02 22:45:08 +1030 |
---|---|---|
committer | daniel-Jones <daniel@danieljon.es> | 2018-02-02 22:45:08 +1030 |
commit | 669ae477c7a663e9824a2306d37002c1d7b8facd (patch) | |
tree | 9703617336ecdbfbf9ccdc772eefbdbff4a8bac9 /urlopen.py | |
parent | b1601e7c84d09567fe4d38c0a21912a612918cd5 (diff) | |
download | urlopen-669ae477c7a663e9824a2306d37002c1d7b8facd.tar.gz urlopen-669ae477c7a663e9824a2306d37002c1d7b8facd.zip |
now case insensitive
Diffstat (limited to 'urlopen.py')
-rwxr-xr-x | urlopen.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -22,13 +22,13 @@ def main(args): if (any (s in domain for s in defaultforcedurls)): print("running with forced default application {}".format(each)); run(defaultapp, each); - elif (each.endswith(tuple(images))): + elif (each.lower().endswith(tuple(images))): print("image {}".format(each)); run(imageapp, each); - elif (each.endswith(tuple(videos))): + elif (each.lower().endswith(tuple(videos))): print("video {}".format(each)); run(videoapp, each); - elif (each.endswith(tuple(pdf))): + elif (each.lower().endswith(tuple(pdf))): print("pdf {}".format(each)); run(pdfapp, each); elif (any(s in domain for s in videourls)): |