summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRahguzar <[email protected]>2024-03-07 19:58:28 +0100
committerThanos Apollo <[email protected]>2024-03-17 13:22:33 +0200
commit84e3173d785c3402ea14daa2b72f6f1438f7f328 (patch)
tree6870cbe6fa36a4f241e3842c94efe10b7ea1c50b
parent399fe26ba9fd1e7326fa0d11f7b3519abda4733b (diff)
Remove unused scraping function
-rw-r--r--yeetube.el18
1 files changed, 0 insertions, 18 deletions
diff --git a/yeetube.el b/yeetube.el
index a96e098..1484777 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -428,24 +428,6 @@ This is used to download thumbnails from `yeetube-content'."
(json-parse-buffer)
(json-read)))
-(cl-defun yeetube-scrape-item (&key item (item-start "text") item-end (substring-start 3) substring-end)
- "Scrape ITEM from YouTube.com.
-
-Video result starts with videorenderer.
-Search back to videorenderer (start of video results),
-then for item.
-
-ITEM-START is the start of the information for item.
-ITEM-END is the end of the item information.
-SUBSTRING-START is the start of the string to return, integer.
-SUBSTRING-END is the end of the string to return, interger."
- (search-backward "videorenderer" nil t)
- (search-forward item nil t)
- (search-forward item-start nil t)
- (let ((item (buffer-substring (+ (point) substring-start)
- (- (search-forward item-end) substring-end))))
- item))
-
(defun yeetube-view-count-format (string)
"Add commas for STRING."
(let* ((string (replace-regexp-in-string "[^0-9]" "" string))