File tree Expand file tree Collapse file tree 2 files changed +21
-19
lines changed
src/main/java/de/mediathekview/mserver/crawler/ard Expand file tree Collapse file tree 2 files changed +21
-19
lines changed Original file line number Diff line number Diff line change 55
66import de .mediathekview .mserver .daten .Resolution ;
77import de .mediathekview .mserver .daten .Sender ;
8+ import org .apache .commons .lang3 .ArrayUtils ;
89
910public class ArdConstants {
1011
@@ -23,24 +24,25 @@ public class ArdConstants {
2324
2425 public static final String DEFAULT_CLIENT = "ard" ;
2526
26- public static final String [] CLIENTS =
27- new String [] {
28- "daserste" ,
29- "br" ,
30- "hr" ,
31- "mdr" ,
32- "ndr" ,
33- "radiobremen" ,
34- "rbb" ,
35- "sr" ,
36- "swr" ,
37- "wdr" ,
38- "one" ,
39- "funk" ,
40- "alpha" ,
41- "tagesschau24" ,
42- "phoenix"
43- };
27+ public static final String [] CLIENTS_DAY =
28+ new String [] {
29+ "daserste" ,
30+ "br" ,
31+ "hr" ,
32+ "mdr" ,
33+ "ndr" ,
34+ "radiobremen" ,
35+ "rbb" ,
36+ "sr" ,
37+ "swr" ,
38+ "wdr" ,
39+ "one" ,
40+ "alpha" ,
41+ "tagesschau24" ,
42+ "phoenix"
43+ };
44+
45+ public static final String [] CLIENTS = ArrayUtils .add (ArdConstants .CLIENTS_DAY , "funk" );
4446
4547 public static final Map <String , Sender > PARTNER_TO_SENDER = new HashMap <>();
4648
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ private Queue<CrawlerUrlDTO> createDayUrlsToCrawl() {
4646 for (int i = 0 ; i <= crawlerConfig .getMaximumDaysForSendungVerpasstSection (); i ++) {
4747 final String day = now .minusDays (i ).format (DAY_PAGE_DATE_FORMATTER );
4848
49- for (final String client : ArdConstants .CLIENTS ) {
49+ for (final String client : ArdConstants .CLIENTS_DAY ) {
5050 final String url =
5151 String .format (ArdConstants .DAY_PAGE_URL , day , client );
5252 dayUrlsToCrawl .offer (new CrawlerUrlDTO (url ));
You can’t perform that action at this time.
0 commit comments