old_contents: import json
  from pathlib import Path
  from subprocess import run
  
  dataset = Path('~/tthl-dataset/').expanduser()
  video_dirs = sorted(dataset.glob('video*/'))
  for video_dir in video_dirs:
      url = json.load((video_dir / 'info.json').open())['video_src']
      run(['youtube-dl', '-f', '18', '-o', str(video_dir / 'video.mp4'), url])
new_contents: import json
  from pathlib import Path
  from subprocess import run
  
  dataset = Path('~/tthl-dataset/').expanduser()
  video_dirs = sorted(dataset.glob('video*/'))
  for i, video_dir in enumerate(video_dirs):
      print('{} ({} / {})'.format(video_dir, i, len(video_dirs)))
      url = json.load((video_dir / 'info.json').open())['video_src']
      run(['youtube-dl', '--no-playlist', '-f', '18', '-o', str(video_dir / 'video.mp4'), url])
      print('-' * 50)
subject: Update at 2017-07-20 16-37-27