Examples of RSSChannel


Examples of org.gudy.azureus2.plugins.utils.xml.rss.RSSChannel

     
      List results = new ArrayList();
     
      for ( int i=0; i<channels.length; i++ ){
       
        RSSChannel channel = channels[i];
       
        SimpleXMLParserDocumentNode[] channel_kids = channel.getNode().getChildren();
       
        int  auto_dl_state = AUTO_DL_SUPPORTED_YES;
       
        for ( int j=0; j<channel_kids.length; j++ ){

          SimpleXMLParserDocumentNode child = channel_kids[j];

          String  lc_full_child_name   = child.getFullName().toLowerCase();

          if ( lc_full_child_name.equals( "vuze:auto_dl_enabled" )){
           
            if ( !child.getValue().equalsIgnoreCase( "true" )){
             
              auto_dl_state = AUTO_DL_SUPPORTED_NO;
            }
          }
        }     
       
        setLocalLong( LD_AUTO_DL_SUPPORTED, auto_dl_state );
       
        RSSItem[] items = channel.getItems();

        for ( int j=0 ; j<items.length; j++ ){
         
          RSSItem item = items[j];
         
View Full Code Here

Examples of org.gudy.azureus2.plugins.utils.xml.rss.RSSChannel

                RSSFeed feed = pluginInterface.getUtilities().getRSSFeed(new URL(rss_url));
                  RSSChannel[] channels = feed.getChannels();
             
                  for (int i = 0 ; i < channels.length ; i++)
                  {
                      final RSSChannel channel = channels[i];
                      View.display.asyncExec(new Runnable (){
                  public void run () {
                      if(View.rss_info != null && !View.rss_info.isDisposed()){
                          TreeItem items[] = View.rss_info.getItems();
                          for (int j = 0 ; j < items.length ; j++)
                          {
                              if(items[j].getText().startsWith(channel.getTitle()))
                              {
                                  System.out.println("Duplicate!");
                                  return;
                              }
                          }
                         
                         
                          item_server = new TreeItem(View.rss_info,SWT.NULL);
                         
                       
                        if (View.rss_info.getItemCount()%2==0) {
                            item_server.setBackground(View.gray_color);
                        }
                         
                                             
                          item_server.setText(channel.getTitle() +
                                          "   (" + rss_url + ") ");
                      }
                     
                     
       
                                  RSSItem[] items = channel.getItems();
                                  if(items.length == 0)
                                  {
                                      item_rssitem = new TreeItem(item_server,SWT.NULL);
                                      item_rssitem.setText("RSS Feed active but no torrents present");
                                      item_rssitem.setBackground(item_server.getBackground());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.