diff options
author | Thanos Apollo <[email protected]> | 2023-08-17 05:48:56 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-08-17 05:48:56 +0300 |
commit | 58a5bd8024b2e22d59d0e306f0eb05cf0c778ff4 (patch) | |
tree | f49006a2bb4025158c497384038e811244262cb4 /yeetube.el | |
parent | e03b45def5d0646881d34fc966ee52a2c7c8ec16 (diff) |
yeetube-get-content-invidious: get view-count
Diffstat (limited to 'yeetube.el')
-rw-r--r-- | yeetube.el | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -367,7 +367,13 @@ It's recommended you keep it as the default value." (+ title-start 0) (- title-end 4)))) (push title video-titles) - (push `(,videoid ,title) yeetube-content))))))) + (search-forward "views") + (let* ((view-count-start (search-backward ">")) + (view-count-end (search-forward " ")) + (view-count (buffer-substring + (+ view-count-start 1) + (- view-count-end 1)))) + (push `(,videoid ,title ,view-count) yeetube-content)))))))) ;;;###autoload (defun yeetube-download-video () |