diff --git a/src/main/kotlin/app/revanced/patches/music/ad/video/patch/MusicVideoAdsPatch.kt b/src/main/kotlin/app/revanced/patches/music/ads/video/patch/MusicVideoAdsPatch.kt
similarity index 90%
rename from src/main/kotlin/app/revanced/patches/music/ad/video/patch/MusicVideoAdsPatch.kt
rename to src/main/kotlin/app/revanced/patches/music/ads/video/patch/MusicVideoAdsPatch.kt
index 8cb9d9b0f..05e252020 100644
--- a/src/main/kotlin/app/revanced/patches/music/ad/video/patch/MusicVideoAdsPatch.kt
+++ b/src/main/kotlin/app/revanced/patches/music/ads/video/patch/MusicVideoAdsPatch.kt
@@ -1,4 +1,4 @@
-package app.revanced.patches.music.ad.video.patch
+package app.revanced.patches.music.ads.video.patch
import app.revanced.patcher.annotation.Description
import app.revanced.patcher.annotation.Name
@@ -9,6 +9,7 @@ import app.revanced.patcher.patch.PatchResult
import app.revanced.patcher.patch.PatchResultSuccess
import app.revanced.patcher.patch.annotations.DependsOn
import app.revanced.patcher.patch.annotations.Patch
+import app.revanced.patches.music.misc.litho.patch.MusicLithoFilterPatch
import app.revanced.patches.music.misc.settings.patch.MusicSettingsPatch
import app.revanced.patches.shared.annotation.YouTubeMusicCompatibility
import app.revanced.patches.shared.patch.videoads.GeneralVideoAdsPatch
@@ -20,6 +21,7 @@ import app.revanced.util.integrations.Constants.MUSIC_SETTINGS_PATH
@DependsOn(
[
GeneralVideoAdsPatch::class,
+ MusicLithoFilterPatch::class,
MusicSettingsPatch::class
]
)
diff --git a/src/main/kotlin/app/revanced/patches/music/layout/playlistcard/patch/HidePlaylistCardPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/playlistcard/patch/HidePlaylistCardPatch.kt
new file mode 100644
index 000000000..2bb51c206
--- /dev/null
+++ b/src/main/kotlin/app/revanced/patches/music/layout/playlistcard/patch/HidePlaylistCardPatch.kt
@@ -0,0 +1,34 @@
+package app.revanced.patches.music.layout.playlistcard.patch
+
+import app.revanced.patcher.annotation.Description
+import app.revanced.patcher.annotation.Name
+import app.revanced.patcher.annotation.Version
+import app.revanced.patcher.data.BytecodeContext
+import app.revanced.patcher.patch.BytecodePatch
+import app.revanced.patcher.patch.PatchResult
+import app.revanced.patcher.patch.PatchResultSuccess
+import app.revanced.patcher.patch.annotations.DependsOn
+import app.revanced.patcher.patch.annotations.Patch
+import app.revanced.patches.music.misc.litho.patch.MusicLithoFilterPatch
+import app.revanced.patches.music.misc.settings.patch.MusicSettingsPatch
+import app.revanced.patches.shared.annotation.YouTubeMusicCompatibility
+
+@Patch
+@Name("hide-playlist-card")
+@Description("Hides the recommand playlist card from home feed.")
+@DependsOn(
+ [
+ MusicLithoFilterPatch::class,
+ MusicSettingsPatch::class
+ ]
+)
+@YouTubeMusicCompatibility
+@Version("0.0.1")
+class HidePlaylistCardPatch : BytecodePatch() {
+ override fun execute(context: BytecodeContext): PatchResult {
+
+ MusicSettingsPatch.addMusicPreference("navigation", "revanced_hide_playlist_card", "true")
+
+ return PatchResultSuccess()
+ }
+}
diff --git a/src/main/kotlin/app/revanced/patches/music/misc/litho/patch/MusicLithoFilterPatch.kt b/src/main/kotlin/app/revanced/patches/music/misc/litho/patch/MusicLithoFilterPatch.kt
new file mode 100644
index 000000000..2b694cc58
--- /dev/null
+++ b/src/main/kotlin/app/revanced/patches/music/misc/litho/patch/MusicLithoFilterPatch.kt
@@ -0,0 +1,21 @@
+package app.revanced.patches.music.misc.litho.patch
+
+import app.revanced.patcher.annotation.Version
+import app.revanced.patcher.data.BytecodeContext
+import app.revanced.patcher.patch.PatchResult
+import app.revanced.patcher.patch.PatchResultSuccess
+import app.revanced.patches.shared.annotation.YouTubeMusicCompatibility
+import app.revanced.patches.shared.patch.litho.AbstractLithoFilterPatch
+import app.revanced.util.integrations.Constants.ADS_PATH
+
+@YouTubeMusicCompatibility
+@Version("0.0.1")
+class MusicLithoFilterPatch : AbstractLithoFilterPatch(
+ "$ADS_PATH/MusicLithoFilterPatch;"
+) {
+ override fun execute(context: BytecodeContext): PatchResult {
+ super.execute(context)
+
+ return PatchResultSuccess()
+ }
+}
diff --git a/src/main/resources/music/settings/host/values/strings.xml b/src/main/resources/music/settings/host/values/strings.xml
index 1450e89cc..95eebd69a 100644
--- a/src/main/resources/music/settings/host/values/strings.xml
+++ b/src/main/resources/music/settings/host/values/strings.xml
@@ -30,4 +30,7 @@
"Hide ads before playing a track.
(requires an app restart)"
Hide music ads
+ "Hides the recommand playlist card from homepage.
+(requires an app restart)"
+ Hide recommand playlist card