~ubuntu-branches/ubuntu/trusty/freeguide/trusty

« back to all changes in this revision

Viewing changes to src/freeguide/plugins/grabber/ntvplus/GrabberNtvplus.java

  • Committer: Bazaar Package Importer
  • Author(s): Shaun Jackman
  • Date: 2007-09-11 16:52:59 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070911165259-4r32oke21i1ezbmv
Tags: 0.10.5-1
* New upstream release.
* Update the watch file.
* Change Debian policy to version 3.7.2.2. No changes necessary.
* Add ant-optional to build dependencies. Closes: #441762.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
import java.util.TimeZone;
13
13
 
14
14
/**
15
 
 * DOCUMENT ME!
 
15
 * Grabber for www.ntvplus.ru.
16
16
 *
17
 
 * @author $author$
18
 
 * @version $Revision: 1356 $
 
17
 * @author Alex Buloichik
19
18
 */
20
19
public class GrabberNtvplus extends BaseModule implements IModuleGrabber
21
20
{
 
21
    protected static final String CHANNEL_PREFIX = "ntvplus/";
 
22
    protected static final String URL =
 
23
        "http://www.ntvplus.ru/static/schedule/schedule.zip";
22
24
    protected static final TimeZone TIMEZONE =
23
25
        TimeZone.getTimeZone( "Europe/Moscow" );
24
26
 
62
64
        progress.setProgressMessage( 
63
65
            Application.getInstance(  ).getLocalizedMessage( "downloading" ) );
64
66
 
65
 
        new ListTVParser( "ntvplus/", storage ).parseZips( 
66
 
            new String[] { "http://www.ntvplus.ru/static/schedule/schedule.zip" },
67
 
            TIMEZONE, progress, logger );
 
67
        new ListTVParser( CHANNEL_PREFIX, storage ).parseZips( 
 
68
            new String[] { URL }, TIMEZONE, progress, logger );
68
69
    }
69
70
}