Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.
/ akregator_clean Public archive

Remove orphan Metakit-Files (MK4) from the Archive-Directory of Akregator

Notifications You must be signed in to change notification settings

Adurol/akregator_clean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

akregator_clean

When a feed subscription in Akregator is deleted, the corresponding Metakit-File will remain. akregator_clean_orphans.py searches for these orphan MK4-Files with no subscription and reports or deletes them.

Requirements

  • KDE Plasma 5
  • Python >= 3.2

Usage

Please close Akregator beforehand!

$ python3 akregator_clean_orphans.py -h

usage: akregator_clean_orphans.py [-h] [-l] [-b] [-d]

List all MK4-Files within "/home/username/.local/share/akregator/Archive/"
without being found in the "/home/username/.local/share/akregator/data/feeds.opml".
These are most likely orphans from deleted subscriptions.

optional arguments:
  -h, --help    show this help message and exit
  -l, --long    list orphan MK4-Files with full path
  -b, --broken  list entries found in the OPML with no corresponding MK4-File
  -d, --delete  delete orphan MK4-Files to Trash

License

  • MIT

Notes

  • Works and (eyeball)tested on KDE Plasma 5 with a few hundred MK4-Files.
  • This script was born out of the need from an old (apparently fixed) bug that would crash Akregator with an overfull Archive-Directory.
  • Just change the path accordingly and it should work with KDE4.

About

Remove orphan Metakit-Files (MK4) from the Archive-Directory of Akregator

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages