[tests] Modernize

This commit is contained in:
Philipp Hagemeister 2014-11-16 15:17:48 +01:00
parent a4bc433619
commit a0f59cdcb4
5 changed files with 33 additions and 23 deletions

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python
from __future__ import unicode_literals
# Allow direct execution
import os
@ -19,7 +20,7 @@ def _download_restricted(url, filename, age):
'age_limit': age,
'skip_download': True,
'writeinfojson': True,
"outtmpl": "%(id)s.%(ext)s",
'outtmpl': '%(id)s.%(ext)s',
}
ydl = YoutubeDL(params)
ydl.add_default_info_extractors()