Commit 9bb6f74
committed
fix: Calculate bitrate from actual file size instead of API value
The API returns theoretical max bitrate (e.g., 1411kbps for FLAC), but files
may be compressed (e.g., 960kbps). Calculate real bitrate from downloaded
file size and duration to ensure Telegram displays accurate values.1 parent 571c68c commit 9bb6f74
3 files changed
+22
-4
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
820 | 820 | | |
821 | 821 | | |
822 | 822 | | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
823 | 841 | | |
824 | 842 | | |
825 | 843 | | |
| |||
834 | 852 | | |
835 | 853 | | |
836 | 854 | | |
837 | | - | |
838 | | - | |
| 855 | + | |
| 856 | + | |
839 | 857 | | |
840 | 858 | | |
841 | 859 | | |
| |||
0 commit comments