-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.properties
103 lines (85 loc) · 2.74 KB
/
config.properties
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# The URL for the OE1 broadcasts for the last days
# default: https://audioapi.orf.at/oe1/api/json/current/broadcasts?_s=
json_broadcasts_url=https://audioapi.orf.at/oe1/json/4.0/broadcasts?_o=oe1.orf.at
# base URL for mp3 downloads
# example: https://loopstream01.apa.at/?channel=oe1&shoutcast=0&player=radiothek_v1&referer=oe1.orf.at&_={0}&userid=00000000-1111-2222-aaaa-333333333333&id={1}
mp3_base_url=https://loopstream01.apa.at/?channel=oe1&shoutcast=0&player=radiothek_v1&referer=oe1.orf.at&_={0}&userid=00000000-1111-2222-aaaa-333333333333&id={1}
# target directory to save the mp3s to
#
# default: ./mp3s
target_directory=./160108
# User agent string to use for download of MP3
#
# default: Mozilla/5.0 (X11; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0 Iceweasel/40.0
user_agent_string=Mozilla/5.0 (X11; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0 Iceweasel/40.0
# number of parallel downloads.
#
# default: 3
number_of_parallel_downloads=3
# percentage of download to mark it as successful
# this is a workaround for the server reporting a bigger content-length in the header than returned bytes
#
# default: 100.0
download_percentage_for_success=85.0
# number of retries for downloads
#
# default: 3
number_of_retries=3
# location to dump the JSON file to.
# if empty no dump is created
# default: empty
dump_json_location=logs/
# Rule definitions
# format: rules.<name>.<key>
# key is one of:
# shortTitle ... title of the show (from JSON)
# time ... time the show starts on (from JSON)
# mp3StartIndex ... starting index for the mp3 file name
# mp3postfix ... postfix label for the mp3 file name
#
# Example:
# rules.01.shortTitle=Vom Leben der Natur
# rules.01.time=
# rules.01.mp3StartIndex=0
# rules.01.mp3postfix=natur
# all the rules
rules.01.shortTitle=Vom Leben der Natur
rules.01.time=
rules.01.mp3StartIndex=0
rules.01.mp3postfix=natur
rules.02.shortTitle=Wissen aktuell
rules.02.time=
rules.02.mp3StartIndex=10
rules.02.mp3postfix=wissen
rules.03.shortTitle=Betrifft: Geschichte
rules.03.time=
rules.03.mp3StartIndex=20
rules.03.mp3postfix=gesch
rules.04.shortTitle=Dimensionen
rules.04.time=
rules.04.mp3StartIndex=30
rules.04.mp3postfix=dim
rules.05.shortTitle=help
rules.05.time=
rules.05.mp3StartIndex=40
rules.05.mp3postfix=help
rules.06.shortTitle=matrix
rules.06.time=
rules.06.mp3StartIndex=41
rules.06.mp3postfix=matrix
rules.07.shortTitle=Diagonal
rules.07.time=
rules.07.mp3StartIndex=42
rules.07.mp3postfix=diagonal
rules.08.shortTitle=Radiokolleg
rules.08.time=09:05
rules.08.mp3StartIndex=60
rules.08.mp3postfix=kolleg
rules.09.shortTitle=Radiokolleg
rules.09.time=09:30
rules.09.mp3StartIndex=70
rules.09.mp3postfix=kolleg
rules.10.shortTitle=Radiokolleg
rules.10.time=09:45
rules.10.mp3StartIndex=80
rules.10.mp3postfix=kolleg