feat: support separate DNS audio limit, channel-specific overrides, and optional opus transcoding#222
Open
tagh6668-dot wants to merge 1 commit into
Open
Conversation
…nd optional opus transcoding - Add --dns-audio-max-size flag and configuration parsing to allow a distinct download limit exclusively for audio/voice files. - Add support for channel-specific overrides for both dns-media-max-size and dns-audio-max-size inside channels config. - Add optional server-side audio-to-opus transcode capability, gated behind the THEFEED_OPUS_TRANSCODE=1 environment variable. - Fix: Preserve the case of private channel invite hashes in limits parsing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This Pull Request implements support for separate DNS media limits for audio/voice files, channel-specific overrides, and optional server-side Opus transcoding.
As requested:
android/app/build.gradleand.github/workflows/build.ymlhave been completely reverted.Key Features Included:
--dns-audio-max-size(and its environment variable equivalent) to define a distinct size limit specifically for audio/voice files. If not set, it defaults to the main--dns-media-max-size.dns-media-max-sizeanddns-audio-max-sizeoverrides inchannels.txt/private_channels.txt(e.g.,channelname [media_limit, audio_limit]).THEFEED_OPUS_TRANSCODE=1environment variable is set.فارسی:
این پول رکوئست (PR) قابلیتهای مدیریت حجم مجزا برای مدیاهای صوتی، اوررایدهای اختصاصی برای هر کانال و تبدیل فرمت اختیاری به Opus را اضافه میکند.
مطابق درخواست شما:
build.gradle) و ورکفلوهای گیتهاب اکشن (build.yml) به طور کامل حذف شدهاند.قابلیتهای اضافه شده:
۱. محدودیت حجم مجزا برای فایلهای صوتی: تعریف فلگ جدید
--dns-audio-max-sizeجهت اعمال محدودیت مجزا برای ویسها و موزیکها بدون بالا بردن بیهوده سقف حجم تصاویر و ویدیوها. (در صورت عدم تنظیم، به طور خودکار از همان لیمیت مدیا استفاده میکند).۲. اورراید اختصاصی کانالها: امکان اعمال اورراید برای لیمیتهای مدیا و صوتی به صورت اختصاصی برای هر کانال در فایل کانالها (مثلاً
channelname [limit, audio_limit]).۳. کاهش حجم فایلهای صوتی با تبدیل به Opus: قابلیت فشردهسازی خودکار ویسها و فایلهای صوتی به فرمت Opus 16k تک کاناله (که حجم را تقریباً به ۱/۵ کاهش میدهد). این قابلیت برای حفظ رفتار پیشفرض برنامه، کاملاً اختیاری است و تنها در صورت تنظیم متغیر محیطی
THEFEED_OPUS_TRANSCODE=1فعال میشود.۴. رفع باگ: حفظ بزرگ و کوچک بودن کاراکترهای هش کانالهای خصوصی در پردازش لیمیتها.