diff options
author | Thanos Apollo <[email protected]> | 2023-11-22 15:28:48 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-11-22 15:28:48 +0200 |
commit | 6923eb7834fcd59d01181c70a4c3420cab27455a (patch) | |
tree | f7ee3ff19787e374261fd658edce390a3a384667 /yeetube.el | |
parent | de9eebfc28e504a92d8ef5057001d183be8f7bbf (diff) |
yeetube-mpv:(check) Improve error message & use `unless`
There is no need for more specific error messages (via pcase).
Diffstat (limited to 'yeetube.el')
-rw-r--r-- | yeetube.el | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -265,11 +265,13 @@ then for item." (while (and (< (length yeetube-content) yeetube-results-limit) (search-forward "videorenderer" nil t)) (search-forward "videoid") - (let ((videoid (buffer-substring (+ (point) 3) (- (search-forward ",") 2)))) + (let ((videoid (buffer-substring (+ (point) 3) + (- (search-forward ",") 2)))) (unless (member videoid (car yeetube-content)) (yeetube-get-item "title") ;; Video Title (let ((title (yeetube---fix-title - (buffer-substring (+ (point) 3) (- (search-forward ",\"") 5))))) + (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) |