diff options
author | Jesús <heckyel@hyperbola.info> | 2019-07-09 11:11:34 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2019-07-09 11:11:34 -0500 |
commit | dab16420a933365acd03adc1f39a6d8b5de4deb7 (patch) | |
tree | 1ca43ccb264c93c51bf068c691d30ce71daa985d /livie.el | |
parent | ef23834b03d659078cf16ea9f6bccacfddb60ab7 (diff) | |
download | livie-dab16420a933365acd03adc1f39a6d8b5de4deb7.tar.lz livie-dab16420a933365acd03adc1f39a6d8b5de4deb7.tar.xz livie-dab16420a933365acd03adc1f39a6d8b5de4deb7.zip |
Support HD videos
- Rebuild regex to find the URL of the videos
- Add HD format only available for some videos this is caused by the YT DRM.
Diffstat (limited to 'livie.el')
-rw-r--r-- | livie.el | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -47,7 +47,7 @@ :group 'livie :type 'string) -(defvar livie-youtube-regexp "https://invidious.snopyta.org/latest_version\\?id=[A-Za-z0-9_\\-]\\{11\\}&itag=18&local=true") +(defvar livie-youtube-regexp "https://invidious.snopyta.org/latest_version\\?id=[A-Za-z0-9_\\-]\\{11\\}&itag=\\<\\([0-9]*\\.[0-9]+\\|[0-9]+\\)[df]?\\>&local=true") (define-derived-mode livie-mode special-mode "livie" @@ -141,7 +141,7 @@ See also: `livie-mode'." `((,livie-youtube-regexp . 'link) ("title: \\(.*\\)" 1 'bold) ("channel: \\(.*\\)" 1 'italic) - ("^ +[a-z]+:" . 'shadow))) + ("^ +[a-zA-Z]+:" . 'shadow))) (define-key livie-mode-map "s" 'livie) (define-key livie-mode-map "q" 'livie-close-window) |