aboutsummaryrefslogtreecommitdiffstats
path: root/yeetube.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-11-20 10:26:34 +0200
committerThanos Apollo <[email protected]>2023-11-20 10:27:21 +0200
commit88488687b71de8697fcfdb7d1c0bdcfc403a331e (patch)
treeefffcd7c8fcdc11430797ab19bc85eaab5c9c7ad /yeetube.el
parentafe252b8ef2aaf493418c97f54f273d634f13f9b (diff)
yeetube:(get-content) Indentation
Diffstat (limited to 'yeetube.el')
-rw-r--r--yeetube.el22
1 files changed, 12 insertions, 10 deletions
diff --git a/yeetube.el b/yeetube.el
index 5dd463a..d5e5251 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -272,18 +272,20 @@ then for item."
(buffer-substring (+ (point) 3) (- (search-forward ",\"") 5)))))
(unless (member title (car yeetube-content))
(yeetube-get-item "viewcounttext") ;; View Count
- (let ((view-count (buffer-substring (+ (point) 3) (- (search-forward " ") 0))))
+ (let ((view-count (buffer-substring (+ (point) 3)
+ (- (search-forward " ") 0))))
(yeetube-get-item "lengthtext") ;; Video Duration
- (let ((video-duration (buffer-substring (+ (point) 3) (- (search-forward "},") 3))))
+ (let ((video-duration (buffer-substring (+ (point) 3)
+ (- (search-forward "},") 3))))
(yeetube-get-item "longbylinetext") ;; Channel Name
- (let ((channel (buffer-substring (+ (point) 3) (- (search-forward ",") 2))))
- (push
- (list :title title
- :videoid videoid
- :view-count view-count
- :duration video-duration
- :channel channel)
- yeetube-content))))))))))
+ (let ((channel (buffer-substring (+ (point) 3)
+ (- (search-forward ",") 2))))
+ (push (list :title title
+ :videoid videoid
+ :view-count view-count
+ :duration video-duration
+ :channel channel)
+ yeetube-content))))))))))
(add-variable-watcher 'yeetube-saved-videos #'yeetube-update-saved-videos-list)