Skip to content

Commit f81ef4a

Browse files
committed
Fix style
1 parent 6a92a79 commit f81ef4a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

youtube-dl.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,23 @@ def main():
1818
filesize = f' - {f["filesize"] / 1024**2:.0f} MB'
1919
else:
2020
filesize = ''
21-
21+
2222
# extract information about audio media
2323
if f['acodec'] != 'none':
2424
key = f'{f["ext"]}@{f["abr"]:.0f}{filesize}'
2525
audio[key] = {
2626
'url': f['url'],
2727
'ext': f['ext'],
2828
}
29-
29+
3030
# extract information about video media
3131
if f['acodec'] != 'none' and f['vcodec'] != 'none':
3232
key = f'{f["width"]}x{f["height"]}.{f["ext"]}@{f["tbr"]:.0f}{filesize}'
3333
video[key] = {
3434
'url': f['url'],
3535
'ext': f['ext'],
3636
}
37-
37+
3838
print(f)
3939

4040
# return dicts back to shortcuts
@@ -47,6 +47,7 @@ def main():
4747
url += f'&video={quote(json.dumps(video))}'
4848
webbrowser.open(url)
4949

50+
5051
if __name__ == '__main__':
5152
main()
5253

0 commit comments

Comments
 (0)