-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsb-eldeber.el
32 lines (26 loc) · 1.16 KB
/
sb-eldeber.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
;; -*-mode: Emacs-Lisp; auto-recompile:t -*-
(require 'shimbun)
(require 'sb-rss)
;; TODO remove tags and other related articles from contents
(luna-define-class shimbun-eldeber (shimbun-rss) ())
(defvar shimbun-eldeber-url "http://www.eldeber.com.bo/rss")
(defvar shimbun-eldeber-from-address "[email protected]")
(defvar shimbun-eldeber-content-start "<span class=\"Estilo30 Estilo54\">")
(defvar shimbun-eldeber-content-end "<!-- Inserta esta etiqueta donde quieras que aparezca insignia. -->")
(defvar shimbun-eldeber-path-alist
'(("ultimas" . "/ultimas-noticias.php")
("santacruz" . "/santacruz.php")
("nacional" . "/nacional.php")
("internacional" . "/internacional.php")
("economia" . "/economia.php")
("deportes" . "/deportes.php")
("sociales" . "/sociales.php")
("escenas" . "/escenas.php")
("sumario" . "/sumario.php")))
(defvar shimbun-eldeber-groups (mapcar 'car shimbun-eldeber-path-alist))
(luna-define-method shimbun-index-url ((shimbun shimbun-eldeber))
(concat shimbun-eldeber-url
(cdr (assoc (shimbun-current-group-internal shimbun)
shimbun-eldeber-path-alist))))
(provide 'sb-eldeber)
;;; sb-eldeber.el ends here