[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [Amarok] Add podcast subscribe cli option.
From: Bart Cerneels <bart.cerneels () kde ! org>
Date: 2009-09-01 16:45:22
Message-ID: 200909011645.n81GjM34028502 () Wurst ! kollide ! net
[Download RAW message or body]
commit 1109006b5ba6cdd3e4fd2556ac5587ff421e84b1
Author: Bart Cerneels <bart.cerneels@kde.org>
AuthorDate: Tue Sep 1 18:40:51 2009 +0200
Commit: Bart Cerneels <bart.cerneels@kde.org>
CommitDate: Tue Sep 1 18:41:13 2009 +0200
Add podcast subscribe cli option.
diff --git a/src/App.cpp b/src/App.cpp
index 87ca77d..05200da 100644
--- a/src/App.cpp
+++ b/src/App.cpp
@@ -38,6 +38,7 @@
#include "playlist/PlaylistController.h"
#include "playlistmanager/PlaylistManager.h"
#include "PluginManager.h"
+#include "podcasts/PodcastProvider.h"
#include "RootDBusHandler.h"
#include "ScriptManager.h"
#include "statusbar/StatusBar.h"
@@ -428,6 +429,13 @@ App::handleCliArgs() //static
}
#endif // DEBUG
+ if( args->isSet( "subscribe" ) )
+ {
+ The::playlistManager()->defaultPodcasts()->addPodcast(
+ KUrl( args->getOption( "subscribe" ) )
+ );
+ }
+
args->clear(); //free up memory
}
@@ -473,6 +481,8 @@ App::initCliArgs() //static
options.add("multipleinstances", ki18n("Allow running multiple Amarok instances"));
options.add("cwd <directory>", ki18n( "Base for relative filenames/URLs" ));
options.add("test", ki18n( "Run integrated unit tests, if your build supports it" ));
+ options.add("p <feed-url>");
+ options.add("subscribe <feed-url>", ki18n( "Subscribe to podcast feed" ) );
KCmdLineArgs::addCmdLineOptions( options ); //add our own options
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic