Function: actypes::yt-url

actypes::yt-url is a byte-compiled function defined in hsys-youtube.el.

Signature

(actypes::yt-url VIDEO-ID &optional START-TIME-STRING END-TIME-STRING)

Documentation

Return url to play VIDEO-ID from point specified by optional START-TIME-STRING.

Return nil if START-TIME-STRING is given but is invalid. If not given, START-TIME-STRING is set to "0s" representing the beginning of the video.

START-TIME-STRING is a colon-separated hours:minutes:seconds string, e.g. 1:2:44 (1 hour, two minutes, 45 seconds), where the hours and minutes are optional.

Aliases

hsys-youtube-get-url

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hsys-youtube.el
;;;###autoload
(defact yt-url (video-id &optional start-time-string end-time-string)
  "Return url to play VIDEO-ID from point specified by optional START-TIME-STRING.
Return nil if START-TIME-STRING is given but is invalid.  If not given,
START-TIME-STRING is set to \"0s\" representing the beginning of the video.

START-TIME-STRING is a colon-separated hours:minutes:seconds string,
e.g. 1:2:44 (1 hour, two minutes, 45 seconds), where the hours and
minutes are optional."
  (if end-time-string
      (progn (setq start-time-string (hsys-youtube-time-in-seconds start-time-string)
		   end-time-string (hsys-youtube-time-in-seconds end-time-string))
	     (hsys-youtube-end-url video-id start-time-string end-time-string))
    (setq start-time-string (hsys-youtube-time-in-hms start-time-string)
	  end-time-string (hsys-youtube-time-in-hms end-time-string))
    (hsys-youtube-start-url video-id start-time-string)))