File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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+
5051if __name__ == '__main__' :
5152 main ()
5253
You can’t perform that action at this time.
0 commit comments