|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
#!/usr/bin/env python
|
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
|
|
import itertools
|
|
|
|
|
import json
|
|
|
|
|
import os
|
|
|
|
|
import re
|
|
|
|
@ -21,8 +22,13 @@ def format_size(bytes):
|
|
|
|
|
|
|
|
|
|
total_bytes = 0
|
|
|
|
|
|
|
|
|
|
for page in itertools.count(1):
|
|
|
|
|
releases = json.loads(compat_urllib_request.urlopen(
|
|
|
|
|
'https://api.github.com/repos/rg3/youtube-dl/releases').read().decode('utf-8'))
|
|
|
|
|
'https://api.github.com/repos/rg3/youtube-dl/releases?page=%s' % page
|
|
|
|
|
).read().decode('utf-8'))
|
|
|
|
|
|
|
|
|
|
if not releases:
|
|
|
|
|
break
|
|
|
|
|
|
|
|
|
|
for release in releases:
|
|
|
|
|
compat_print(release['name'])
|
|
|
|
|