After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 553203 - Automatically delete old podcast episodes
Automatically delete old podcast episodes
Status: RESOLVED WONTFIX
Product: banshee
Classification: Other
Component: Podcasting
1.2.1
Other All
: Normal enhancement
: 1.x
Assigned To: Banshee Maintainers
Mike Urbanski
gnome[unmaintained]
: 605443 633099 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-09-22 02:54 UTC by Darin Ohashi
Modified: 2020-03-17 08:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
autodelete support patch (6.24 KB, patch)
2010-10-30 14:18 UTC, olivier dufour
needs-work Details | Review
autodelete patch (5.44 KB, patch)
2010-11-04 09:27 UTC, olivier dufour
none Details | Review

Description Darin Ohashi 2008-09-22 02:54:04 UTC
It would be nice if old podcasts could be automatically removed.  I.e. if an episode was downloaded more than X days ago, automatically delete it.
Comment 1 Chris Jones 2008-10-01 23:17:29 UTC
Similarly if it has been listened to
Comment 2 Gabriel Burt 2009-10-27 20:17:58 UTC
Bulk changing the assignee to banshee-maint@gnome.bugs to make it easier for people to get updated on all banshee bugs by following that address.  It's usually quite apparent who is working on a given bug by the comments and/or patches attached.
Comment 3 Bertrand Lorentz 2009-12-28 16:05:42 UTC
*** Bug 605443 has been marked as a duplicate of this bug. ***
Comment 4 Bertrand Lorentz 2009-12-28 16:07:50 UTC
From duplicate Bug 605443 :
Keeping only N episodes of each podcast would be useful.
Comment 5 bidossessi.sodonon 2010-03-18 07:16:07 UTC
Look to gpodder for excellent podcast lifespan management, with features such as protecting a podcast or a whole feed from automatic deletion (I want to keep my TedTalk vids forever!), specifying the lifetime of a played podcast, and setting HDD space usage limits to keep backlog from choking the machine.
Comment 6 Bertrand Lorentz 2010-10-27 20:43:47 UTC
*** Bug 633099 has been marked as a duplicate of this bug. ***
Comment 7 olivier dufour 2010-10-30 14:18:59 UTC
Created attachment 173554 [details] [review]
autodelete support patch

Here is a small patch for that features.
Can you test/review it?
Comment 8 Bertrand Lorentz 2010-11-01 16:13:12 UTC
Review of attachment 173554 [details] [review]:

I don't think the changes in LastfmRequest.cs are related to this issue, please leave them out of this patch.

::: src/Extensions/Banshee.Podcasting/Banshee.Podcasting/PodcastService.cs
@@ +682,3 @@
+        private int kept_pocasts_number_schema = keptPocastsNumberSchema.Get ();
+        //private SourcePage pref_page;
+

Please don't leave commented-out code. Same applies below.

@@ +715,3 @@
+        }
+
+        /*private void UninstallPreferences ()

Why is that method commented out ?
Shouldn't the preference be uninstalled when the extension gets disabled ?

@@ +727,3 @@
+        }*/
+
+        public static readonly SchemaEntry<int> keptPocastsNumberSchema = new SchemaEntry<int> (

The first letter of the property name should be uppercase. I'm not sure about the name, maybe something like "OldPodcastsToKeep" ?

@@ +730,3 @@
+            "plugins.podcasting", "kept_pocasts_number", 10, 0, 100,
+            "Kept pocasts number",
+            "Number of played podcast to kept when automatic delete option is on."

should be "to keep"

::: src/Libraries/Migo/Migo.Syndication/Feed.cs
@@ +544,3 @@
         }
 
+        public void DeleteOldItems (int keptItemCount)

variable names for method parameters should be in lower case with underscore. For example: int items_to_keep
Comment 9 Bertrand Lorentz 2010-11-01 16:13:14 UTC
Review of attachment 173554 [details] [review]:

I don't think the changes in LastfmRequest.cs are related to this issue, please leave them out of this patch.

::: src/Extensions/Banshee.Podcasting/Banshee.Podcasting/PodcastService.cs
@@ +682,3 @@
+
+        private int kept_pocasts_number_schema = keptPocastsNumberSchema.Get ();
+        //private SourcePage pref_page;

Please don't leave commented-out code. Same applies below.

@@ +715,3 @@
+        }
+
+        /*private void UninstallPreferences ()

Why is that method commented out ?
Shouldn't the preference be uninstalled when the extension gets disabled ?

@@ +727,3 @@
+        }*/
+
+        public static readonly SchemaEntry<int> keptPocastsNumberSchema = new SchemaEntry<int> (

The first letter of the property name should be uppercase. I'm not sure about the name, maybe something like "OldPodcastsToKeep" ?

@@ +730,3 @@
+            "plugins.podcasting", "kept_pocasts_number", 10, 0, 100,
+            "Kept pocasts number",
+            "Number of played podcast to kept when automatic delete option is on."

should be "to keep"

::: src/Libraries/Migo/Migo.Syndication/Feed.cs
@@ +544,3 @@
         }
 
+        public void DeleteOldItems (int keptItemCount)

variable names for method parameters should be in lower case with underscore. For example: int items_to_keep
Comment 10 olivier dufour 2010-11-04 09:27:58 UTC
Created attachment 173816 [details] [review]
autodelete patch

new patch with feedback fixes
Comment 11 olivier dufour 2010-12-15 19:31:54 UTC
seems fixed with patch  in 1.9.1 :
http://git.gnome.org/browse/banshee/commit/?id=cfc37e03229e9fb31fa06192a16865e01f3ef064

option is in feed and not global as submited patch.

==> to closed
Comment 12 Gabriel Burt 2010-12-15 20:26:58 UTC
No, what's in master auto-archives episodes, but doesn't delete files.  This should stay open, I think.
Comment 13 André Klapper 2020-03-17 08:29:11 UTC
Banshee is not under active development anymore and had its last code changes more than three years ago. Its codebase has been archived.

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect
reality. Please feel free to reopen this ticket (or rather transfer the project
to GNOME Gitlab, as GNOME Bugzilla is being shut down) if anyone takes the
responsibility for active development again.
See https://gitlab.gnome.org/Infrastructure/Infrastructure/issues/264 for more info.