Comparing version 0.0.80 to 0.0.81
@@ -140,2 +140,9 @@ import { get_continuation_contents, get_continuation_params, get_continuations, } from "../continuations.js"; | ||
const actions = []; | ||
const dedupeOption = dedupe === "check" | ||
? "DEDUPE_OPTION_CHECK" | ||
: dedupe === "drop_duplicate" | ||
? "DEDUPE_OPTION_DROP_DUPLICATE" | ||
: dedupe === "skip" | ||
? "DEDUPE_OPTION_SKIP" | ||
: null; | ||
if (title) { | ||
@@ -173,9 +180,3 @@ actions.push({ | ||
addedVideoId: video_id, | ||
dedupeOption: dedupe === "check" | ||
? "DEDUPE_OPTION_CHECK" | ||
: dedupe === "drop_duplicate" | ||
? "DEDUPE_OPTION_DROP_DUPLICATE" | ||
: dedupe === "skip" | ||
? "DEDUPE_OPTION_SKIP" | ||
: null, | ||
dedupeOption, | ||
}); | ||
@@ -207,2 +208,3 @@ }); | ||
addedFullListId: playlist_id, | ||
dedupeOption, | ||
}); | ||
@@ -212,2 +214,3 @@ }); | ||
data.actions = actions; | ||
console.log("data", data); | ||
const json = await request_json("browse/edit_playlist", { data, signal }); | ||
@@ -214,0 +217,0 @@ const result = { |
@@ -6,3 +6,3 @@ { | ||
"name": "libmuse", | ||
"version": "0.0.80", | ||
"version": "0.0.81", | ||
"description": "A library to interact with the YouTube Music (InnerTube) api.", | ||
@@ -9,0 +9,0 @@ "tags": [ |
@@ -147,2 +147,9 @@ "use strict"; | ||
const actions = []; | ||
const dedupeOption = dedupe === "check" | ||
? "DEDUPE_OPTION_CHECK" | ||
: dedupe === "drop_duplicate" | ||
? "DEDUPE_OPTION_DROP_DUPLICATE" | ||
: dedupe === "skip" | ||
? "DEDUPE_OPTION_SKIP" | ||
: null; | ||
if (title) { | ||
@@ -180,9 +187,3 @@ actions.push({ | ||
addedVideoId: video_id, | ||
dedupeOption: dedupe === "check" | ||
? "DEDUPE_OPTION_CHECK" | ||
: dedupe === "drop_duplicate" | ||
? "DEDUPE_OPTION_DROP_DUPLICATE" | ||
: dedupe === "skip" | ||
? "DEDUPE_OPTION_SKIP" | ||
: null, | ||
dedupeOption, | ||
}); | ||
@@ -214,2 +215,3 @@ }); | ||
addedFullListId: playlist_id, | ||
dedupeOption, | ||
}); | ||
@@ -219,2 +221,3 @@ }); | ||
data.actions = actions; | ||
console.log("data", data); | ||
const json = await (0, _request_js_1.request_json)("browse/edit_playlist", { data, signal }); | ||
@@ -221,0 +224,0 @@ const result = { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
879698
18105