You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+13-1
Original file line number
Diff line number
Diff line change
@@ -6,16 +6,19 @@ This repository contains gPodder hook scripts which I use for myself. Please fee
6
6
7
7
### What are hooks in gPodder?
8
8
9
-
Hooks are python scripts in ~/.config/gpodder/hooks. Each script must define a class named "gPodderHooks", otherwise it will be ignored.
9
+
Hooks are python scripts loaded by gPodder at runtime. Each script must define a class named "gPodderHooks", otherwise it will be ignored.
10
10
11
11
### How to configure
12
12
13
13
You could copy or link the scripts in this repository to ~/.config/gpodder/hooks/ and everything should work fine.
14
14
15
+
For gPodder "tres" (3.x branch), you need to place them in $GPODDER_HOME/Hooks/ (where $GPODDER_HOME defaults to ~/gPodder/ if you have not set it manually)
16
+
15
17
### How to create my own hook script?
16
18
17
19
See example documentation at [hooks.py](http://repo.or.cz/w/gpodder.git/blob/HEAD:/doc/dev/examples/hooks.py).
18
20
21
+
In the "tres" branch, the example is in examples/hooks.py.
19
22
20
23
# Hooks list
21
24
@@ -131,3 +134,12 @@ This github repository includes two options to configure your gPodder installati
131
134
132
135
The $subj podcast rss does not contain id and pubdate. Because of the missing guid gPodder reports always "no new episodes" for the podcast.
133
136
This hook script fixes this. The pubdate can be calculated from the audio file url and I used the same number as guid.
137
+
138
+
139
+
## enqueue_in_vlc
140
+
141
+
This hook shows a new feature of the gPodder "tres" branch - you can now add
142
+
items to the episode list context menu. Each item needs to have a label and
143
+
a callable that will take a list of selected episodes. This script shows you
144
+
how to implement a "Enqueue in VLC" context menu item using hooks.
0 commit comments