~ubuntu-branches/ubuntu/utopic/mediathekview/utopic

« back to all changes in this revision

Viewing changes to src/msearch/filmeSuchen/sender/MediathekSwr.java

  • Committer: Package Import Robot
  • Author(s): Markus Koschany
  • Date: 2014-07-24 12:04:16 UTC
  • mfrom: (4.1.11 sid)
  • Revision ID: package-import@ubuntu.com-20140724120416-h9r0d70ql741jdnl
Tags: 7-1
* Imported Upstream version 7.
* Update debian/watch to detect new upstream tarballs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
        public void run() {
118
118
            try {
119
119
                meldungAddThread();
120
 
                String[] link = null;
 
120
                String[] link;
121
121
                while (!MSConfig.getStop() && (link = listeThemen.getListeThemen()) != null) {
122
122
                    themenSeitenSuchen(link[0] /* url */, link[1] /* Thema */);
123
123
                    meldungProgress(link[0]);
215
215
            }
216
216
        }
217
217
 
218
 
        final String PATTERN_END = "\"";
219
 
        final String HTTP = "http";
 
218
        final static String PATTERN_END = "\"";
 
219
        final static String HTTP = "http";
220
220
 
221
221
        private String getTitle() {
222
222
            final String PATTERN_TITLE_START = "\"entry_title\":\"";
223
 
            final String MUSTER_TITEL_2 = "\"entry_title\":\"\\\"";
224
 
            String title = strSeite2.extract(PATTERN_TITLE_START, PATTERN_END);
225
 
            return title;
 
223
            //final String MUSTER_TITEL_2 = "\"entry_title\":\"\\\"";
 
224
            return strSeite2.extract(PATTERN_TITLE_START, PATTERN_END);
226
225
        }
227
226
 
228
227
        private String getDescription() {
302
301
            if (urlWithOutprot.isEmpty()) {
303
302
                return "";
304
303
            }
305
 
            String hdUrl = HTTP + urlWithOutprot;
306
 
            return hdUrl;
 
304
            return HTTP + urlWithOutprot;
307
305
        }
308
306
 
309
307
        private String getNormalUrl() {
312
310
            if (urlWithOutprot.isEmpty()) {
313
311
                return "";
314
312
            }
315
 
            String normalUrl = HTTP + urlWithOutprot;
316
 
            return normalUrl;
 
313
            return HTTP + urlWithOutprot;
317
314
        }
318
315
 
319
316
        private String getRtmpUrl() {
326
323
                    return "";
327
324
                }
328
325
            }
329
 
            String normalUrl = "rtmp" + urlWithOutprot;
330
 
            return normalUrl;
 
326
            return "rtmp" + urlWithOutprot;
331
327
        }
332
328
 
333
329
        private String getSmallUrl() {
336
332
            if (urlWithOutprot.isEmpty()) {
337
333
                return "";
338
334
            }
339
 
            String smallUrl = HTTP + urlWithOutprot;
340
 
            return smallUrl;
 
335
            return HTTP + urlWithOutprot;
341
336
        }
342
337
 
343
338
        private String getSuperSmalUrl() {
344
339
            final String PATTTERN_PROT_HTTP_S = "\"entry_media\",\"attr\":{\"val0\":\"h264\",\"val1\":\"1\",\"val2\":\"http";
345
340
            String urlWithOutprot = strSeite2.extract(PATTTERN_PROT_HTTP_S, PATTERN_END);
346
 
            String superSmallUrl = HTTP + urlWithOutprot;
347
 
            return superSmallUrl;
 
341
            return HTTP + urlWithOutprot;
348
342
        }
349
343
 
350
344
        private String[] extractKeywords(MSStringBuilder strSeite2) {