Commit 9c333b3f authored by Lucas Carvalho's avatar Lucas Carvalho Committed by Łukasz Nowak

Using the proper method to get the filename from the url.

parent 2bd992cd
......@@ -109,7 +109,8 @@ def upload_network_cached(dir_url, cache_url, external_url, path, logger,
logger.info('Uploading %s into network cache.' % external_url)
file_name = external_url.split('/')[-1].split('#')[0].split('?')[0]
file_name = get_filename_from_url(external_url)
directory_key = get_directory_key(external_url)
kw = dict(file=file_name,
urlmd5=hashlib.md5(external_url).hexdigest())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment