summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)