Skip to content

Commit

Permalink
Merge pull request #7 from z1nc0r3/feat/display_file_format
Browse files Browse the repository at this point in the history
Feat: Display the file format on the subtitle
  • Loading branch information
z1nc0r3 authored Oct 11, 2024
2 parents 76cfd13 + 6822120 commit 507be7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,11 @@ def query(self, query):

for format in reversed(info["formats"]):
if format["resolution"] is not None and format["tbr"] is not None:
subtitle = f"Res: {format['resolution']} • Bitrate: {round(format['tbr'])} kbps"
subtitle = f"Res: {format['resolution']} ({round(format['tbr'])} kbps)"
if "ext" in format and format["ext"] is not None:
subtitle += f" ┃ Format: {format['ext']}"
if "fps" in format and format["fps"] is not None:
subtitle += f" FPS: {format['fps']}"
subtitle += f" FPS: {format['fps']}"

output.append(
{
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Name": "AnyVideo Downloader",
"Description": "Plugin for downloading videos from YouTube, Facebook, Twitter, Instagram, and many other websites.",
"Author": "z1nc0r3",
"Version": "1.1.0",
"Version": "1.1.1",
"Language": "python",
"Website": "https://github.com/z1nc0r3/AnyVideo-Downloader-Flow-Plugin",
"IcoPath": "Images\\app.png",
Expand Down

0 comments on commit 507be7f

Please sign in to comment.