Skip to content

Instantly share code, notes, and snippets.

@guanix
Created February 21, 2011 01:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guanix/836562 to your computer and use it in GitHub Desktop.
Save guanix/836562 to your computer and use it in GitHub Desktop.
--- ../yahoo/youtube-dl 2011-02-10 22:10:41.000000000 +0000
+++ youtube-dl 2011-02-21 01:51:54.000000000 +0000
@@ -535,7 +535,7 @@
template_dict = dict(info_dict)
template_dict['epoch'] = unicode(long(time.time()))
template_dict['autonumber'] = unicode('%05d' % self._num_downloads)
- filename = self.params['outtmpl'] % template_dict
+ filename = (self.params['outtmpl'] % template_dict).replace("/", "_")
return filename
except (ValueError, KeyError), err:
self.trouble(u'ERROR: invalid system charset or erroneous output template')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment