mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
✨ Build Og and Custom Icon
This commit is contained in:
@@ -56,3 +56,4 @@ class RevancedConfig:
|
||||
"youtube": f"{self.apk_mirror_urls.get('youtube')}youtube",
|
||||
"youtube_music": f"{self.apk_mirror_urls.get('youtube_music')}youtube-music",
|
||||
}
|
||||
self.build_og_nd_branding_youtube = env.bool("BUILD_OG_BRANDING_YOUTUBE", False)
|
||||
|
||||
@@ -41,6 +41,24 @@ class Parser(object):
|
||||
"""
|
||||
return self._EXCLUDED
|
||||
|
||||
def get_all_patches(self) -> List[str]:
|
||||
"""
|
||||
Getter to get all excluded patches
|
||||
:return: List of excluded patches
|
||||
"""
|
||||
return self._PATCHES
|
||||
|
||||
def invert_patch(self, name: str) -> None:
|
||||
"""
|
||||
Getter to get all excluded patches
|
||||
:return: List of excluded patches
|
||||
"""
|
||||
patch_index = self._PATCHES.index(name)
|
||||
if self._PATCHES[patch_index - 1] == "e":
|
||||
self._PATCHES[patch_index - 1] = "-i"
|
||||
else:
|
||||
self._PATCHES[patch_index - 1] = "-e"
|
||||
|
||||
def patch_app(self, app: str, version: str, is_experimental: bool = False) -> None:
|
||||
"""Revanced APP Patcher.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user