From 6c47d93c983b8807032220e107ac2f686abb14e2 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 14 Jun 2025 12:35:29 +0200 Subject: docs(yt/update): Add comment about the `unsmuggle_url` invocation --- crates/yt/src/update/mod.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'crates') diff --git a/crates/yt/src/update/mod.rs b/crates/yt/src/update/mod.rs index 25b0e54..07674de 100644 --- a/crates/yt/src/update/mod.rs +++ b/crates/yt/src/update/mod.rs @@ -134,7 +134,14 @@ pub fn video_entry_to_video(entry: &InfoJson, sub: Option<&Subscription>) -> Res let url = { let smug_url: Url = json_get!(entry, "webpage_url", as_str).parse()?; - // unsmuggle_url(&smug_url)? + // TODO(@bpeetz): We should probably add this? <2025-06-14> + // if '#__youtubedl_smuggle' not in smug_url: + // return smug_url, default + // url, _, sdata = smug_url.rpartition('#') + // jsond = urllib.parse.parse_qs(sdata)['__youtubedl_smuggle'][0] + // data = json.loads(jsond) + // return url, data + smug_url }; -- cgit 1.4.1