Skip to content

Commit fcc4de6

Browse files
feat(auto-skip): add not liked songs option (#230)
1 parent a4a0ba0 commit fcc4de6

File tree

1 file changed

+9
-1
lines changed
  • Extensions/auto-skip/src/constants

1 file changed

+9
-1
lines changed

Extensions/auto-skip/src/constants/skips.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ const SKIPS = {
5959
meta.name.toLowerCase().includes(value)
6060
),
6161
},
62-
6362
skipLiked: {
6463
menuTitle: "Liked Songs",
6564
check: (apiMeta, localMeta) => {
@@ -69,6 +68,15 @@ const SKIPS = {
6968
return false;
7069
},
7170
},
71+
skipNotLiked: {
72+
menuTitle: "Not Liked Songs",
73+
check: (apiMeta, localMeta) => {
74+
if (localMeta !== null) {
75+
return localMeta.metadata["collection.in_collection"] !== "true";
76+
}
77+
return false;
78+
},
79+
},
7280
};
7381

7482
export default SKIPS;

0 commit comments

Comments
 (0)