diff options
author | Thanos Apollo <[email protected]> | 2024-02-10 11:16:07 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-02-10 11:16:07 +0200 |
commit | 5c711f345c0e1b113537fe15ebc78f7ba8b6749a (patch) | |
tree | 88fe25a0faef64fb1f4729f333ca39f238a7088c | |
parent | 4203cea79df87139030bce9dcbb9d607c1796b3f (diff) |
yeetube-search: Search for published date
-rw-r--r-- | yeetube.el | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -372,14 +372,15 @@ SUBSTRING-END is the end of the string to return, interger." (view-count (yeetube-scrape-item :item "viewcounttext" :item-end " " :substring-end 0)) (video-duration (yeetube-scrape-item :item "lengthtext" :item-end "}," :substring-end 3)) (channel (yeetube-scrape-item :item "longbylinetext" :item-end "," :substring-end 2)) - (thumbnail (yeetube-scrape-item :item "thumbnail" :item-start "url" :item-end ",\"" :substring-end 5))) + (thumbnail (yeetube-scrape-item :item "thumbnail" :item-start "url" :item-end ",\"" :substring-end 5)) + (date (yeetube-scrape-item :item "publishedtimetext" :item-end ",\"" :substring-end 4))) (push (list :title title :videoid videoid :view-count (yeetube-view-count-format view-count) :duration video-duration - :published-time published-time :channel channel - :thumbnail thumbnail) + :thumbnail thumbnail + :date (replace-regexp-in-string "Streamed " "" date)) yeetube-content)))))) (add-variable-watcher 'yeetube-saved-videos #'yeetube-update-saved-videos-list) |