banshee r3940 - in trunk/banshee: . src/Extensions/Banshee.Lastfm src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui src/Extensions/Banshee.Podcasting/Resources src/Libraries/Migo/Migo/Migo.Syndication
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r3940 - in trunk/banshee: . src/Extensions/Banshee.Lastfm src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui src/Extensions/Banshee.Podcasting/Resources src/Libraries/Migo/Migo/Migo.Syndication
- Date: Wed, 21 May 2008 19:18:00 +0000 (UTC)
Author: gburt
Date: Wed May 21 19:18:00 2008
New Revision: 3940
URL: http://svn.gnome.org/viewvc/banshee?rev=3940&view=rev
Log:
2008-05-21 Gabriel Burt <gabriel burt gmail com>
* src/Extensions/Banshee.Lastfm/Makefile.am: Reorder.
* src/Extensions/Banshee.Podcasting/Resources/GlobalUI.xml:
* src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui/PodcastActions.cs:
Add Download All action to podcast context menu.
* src/Libraries/Migo/Migo/Migo.Syndication/FeedEnclosure.cs: Avoid
queueing the download if we're already download.
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Extensions/Banshee.Lastfm/Makefile.am
trunk/banshee/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui/PodcastActions.cs
trunk/banshee/src/Extensions/Banshee.Podcasting/Resources/GlobalUI.xml
trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/FeedEnclosure.cs
Modified: trunk/banshee/src/Extensions/Banshee.Lastfm/Makefile.am
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.Lastfm/Makefile.am (original)
+++ trunk/banshee/src/Extensions/Banshee.Lastfm/Makefile.am Wed May 21 19:18:00 2008
@@ -19,9 +19,9 @@
Banshee.Lastfm.addin.xml \
Resources/ActiveSourceUI.xml \
Resources/AudioscrobblerMenu.xml \
- Resources/LastfmTrackActions.xml \
Resources/GlobalUI.xml \
- Resources/lastfm.glade
+ Resources/lastfm.glade \
+ Resources/LastfmTrackActions.xml
include $(top_srcdir)/build/build.mk
Modified: trunk/banshee/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui/PodcastActions.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui/PodcastActions.cs (original)
+++ trunk/banshee/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui/PodcastActions.cs Wed May 21 19:18:00 2008
@@ -95,6 +95,12 @@
OnPodcastUpdate
),
new ActionEntry (
+ "PodcastDownloadAllAction", Stock.Save,
+ Catalog.GetString ("Download All Episodes"),
+ null, String.Empty,
+ OnPodcastDownloadAllEpisodes
+ ),
+ new ActionEntry (
"PodcastHomepageAction", Stock.JumpTo,
Catalog.GetString ("Visit Podcast Homepage"),
null, String.Empty,
@@ -386,7 +392,17 @@
if (feed != null) {
feed.Delete (true);
}
- }
+ }
+
+ private void OnPodcastDownloadAllEpisodes (object sender, EventArgs e)
+ {
+ Feed feed = source.FeedModel.FocusedItem;
+ if (feed != null) {
+ foreach (FeedItem item in feed.Items) {
+ item.Enclosure.AsyncDownload ();
+ }
+ }
+ }
private void OnPodcastItemDeleteFile (object sender, EventArgs e)
{
Modified: trunk/banshee/src/Extensions/Banshee.Podcasting/Resources/GlobalUI.xml
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.Podcasting/Resources/GlobalUI.xml (original)
+++ trunk/banshee/src/Extensions/Banshee.Podcasting/Resources/GlobalUI.xml Wed May 21 19:18:00 2008
@@ -21,6 +21,7 @@
<popup name="PodcastFeedPopup" action="PodcastFeedPopupAction">
<menuitem name="PodcastUpdateFeed" action="PodcastUpdateFeedAction" />
+ <menuitem name="PodcastDownloadAll" action="PodcastDownloadAllAction"/>
<menuitem name="PodcastHomepage" action="PodcastHomepageAction" />
<menuitem name="PodcastDelete" action="PodcastDeleteAction" />
<separator />
Modified: trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/FeedEnclosure.cs
==============================================================================
--- trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/FeedEnclosure.cs (original)
+++ trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/FeedEnclosure.cs Wed May 21 19:18:00 2008
@@ -115,7 +115,8 @@
public void AsyncDownload ()
{
- Manager.QueueDownload (this);
+ if (DownloadedAt == DateTime.MinValue)
+ Manager.QueueDownload (this);
}
public void CancelAsyncDownload ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]