about summary refs log tree commit diff stats
path: root/crates
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-06-14 12:35:29 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-06-14 12:35:29 +0200
commit6c47d93c983b8807032220e107ac2f686abb14e2 (patch)
treec856561b94a398390e575ae2108abe43bde994cd /crates
parentfix(yt/update): Avoid printing all the subscriptions that are not updated (diff)
downloadyt-6c47d93c983b8807032220e107ac2f686abb14e2.zip
docs(yt/update): Add comment about the `unsmuggle_url` invocation
Diffstat (limited to '')
-rw-r--r--crates/yt/src/update/mod.rs9
1 files changed, 8 insertions, 1 deletions
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
     };