aboutsummaryrefslogtreecommitdiffstats
path: root/livie.el
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-07-09 11:11:34 -0500
committerJesús <heckyel@hyperbola.info>2019-07-09 11:11:34 -0500
commitdab16420a933365acd03adc1f39a6d8b5de4deb7 (patch)
tree1ca43ccb264c93c51bf068c691d30ce71daa985d /livie.el
parentef23834b03d659078cf16ea9f6bccacfddb60ab7 (diff)
downloadlivie-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.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/livie.el b/livie.el
index 37ecfa8..85d35a0 100644
--- a/livie.el
+++ b/livie.el
@@ -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)