Skip to content

Commit

Permalink
Fix #296: Remove World Sunlight Map as a source
Browse files Browse the repository at this point in the history
  • Loading branch information
peterlevi committed Feb 11, 2020
1 parent fe868f2 commit d6b51f8
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 121 deletions.
3 changes: 2 additions & 1 deletion data/ui/changes.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
0.8.0 - 0.8.2
0.8.0 - 0.8.3
Image sources are now plugins
Add support for sequential albums
Add support for multiple simultaneously running Variety profiles (--profile command option)
Add a Privacy Notice dialog
Add support for configurable Unsplash sources
Add two new sources (ChromeOS Wallpapers and Google Earth View Wallpapers)
Remove World Sunlight Map source

This comment has been minimized.

Copy link
@jlu5

jlu5 Feb 12, 2020

Member

@peterlevi In the future would you mind creating a new changelog section for each patch release? It would help downstreams track and isolate changes a bit easier

Added Urban Dictionary and UNIX fortune program as quote sources
Download linked to wallpaper changing, not configured as a separate interval
Add a dedicated --set/--set-wallpaper option
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
variety (0.8.3) bionic; urgency=medium

* Remove World Sunlight Map source

-- Peter Levi <peterlevi@peterlevi.com> Wed, 12 Feb 2020 01:12:00 +0200

variety (0.8.2) bionic; urgency=medium

* Bugfixes
Expand Down
30 changes: 0 additions & 30 deletions tests/TestEarthDownloader.py

This file was deleted.

4 changes: 2 additions & 2 deletions tests/TestJumble.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ class TestJumble(unittest.TestCase):
def test_load(self):
p = Jumble(["variety/plugins/builtin"])
p.load()
self.assertEqual(14, len(p.get_plugins()))
self.assertEqual(14, len(p.get_plugins(IPlugin)))
self.assertEqual(15, len(p.get_plugins()))
self.assertEqual(15, len(p.get_plugins(IPlugin)))
self.assertEqual(1, len(p.get_plugins(name="Goodreads")))
4 changes: 0 additions & 4 deletions variety/Texts.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@
),
"desktoppr": ("Random wallpapers from Desktoppr.co", _("Random wallpapers from Desktoppr.co")),
"apod": ("NASA's Astronomy Picture of the Day", _("NASA's Astronomy Picture of the Day")),
"earth": (
"World Sunlight Map - live wallpaper from Die.net",
_("World Sunlight Map - live wallpaper from Die.net"),
),
"bing": ("Bing Photo of the Day", _("Bing Photo of the Day")),
"unsplash": (
"High-resolution photos from Unsplash.com",
Expand Down
7 changes: 7 additions & 0 deletions variety/VarietyWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -2239,6 +2239,13 @@ def perform_upgrade(self):
options.quotes_disabled_sources.append("Urban Dictionary")
options.write()

if Util.compare_versions(last_version, "0.8.3") < 0:
logger.info(lambda: "Performing upgrade to 0.8.3")
options = Options()
options.read()
options.sources = [source for source in options.sources if source[1] != "earth"]
options.write()

# Perform on every upgrade to an newer version:
if Util.compare_versions(last_version, current_version) < 0:
self.write_current_version()
Expand Down
83 changes: 0 additions & 83 deletions variety/plugins/builtin/downloaders/EarthDownloader.py

This file was deleted.

2 changes: 1 addition & 1 deletion variety_lib/varietyconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# for easy development / running from source.
__variety_data_directory__ = "../data"
__license__ = "GPL-3"
__version__ = "0.8.2"
__version__ = "0.8.3"

import os

Expand Down

0 comments on commit d6b51f8

Please sign in to comment.