Variety is downloading .json files for images from different sources

Bug #1403041 reported by Adrian Skar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Variety
Fix Released
High
Unassigned

Bug Description

Variety 0.4.21.
Ubuntu 14.04.1 LTS 64-bit
Gnome 3.10.1

So Variety is downloading .json files along images and it does not delete them when folder size limit is reached but it does delete the old images.
It happens from different feeds/sources (wallhaven and deviantart)

Related branches

Revision history for this message
Peter Levi (peterlevi) wrote :

Not deleting the json files is an omission which I will fix.

But it normally creates json files only if it cannot save the metadata directly in the image itself and this should happen rarely, just for non-jpeg, non-png images. If you have a json for every image Variety downloads then something is going wrong.

Please run it from a terminal with the "-v" option and attach here the log file it produces after several downloads (~/.config/variety/variety.log).

Changed in variety:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Adrian Skar (cylonskar) wrote :
Download full text (28.5 KiB)

It doesn't happen on every image but here's the log I've found:

INFO: 2014-12-16 14:23:21,914: perform_upgrade() 'Last run version was 0.4.21 or earlier, current version is 0.4.21'
INFO: 2014-12-16 14:23:21,923: process_command() 'Received command: [u'-v']'
INFO: 2014-12-16 14:23:22,017: load() 'Jumble loading'
INFO: 2014-12-16 14:23:22,043: _walk_modules() 'Jumble loading module in __init__ from /opt/extras.ubuntu.com/variety/share/variety/plugins/__init__.py'
INFO: 2014-12-16 14:23:22,066: _walk_modules() 'Jumble loading module in QuotationsPageSource from /opt/extras.ubuntu.com/variety/share/variety/plugins/quotes/QuotationsPageSource.py'
INFO: 2014-12-16 14:23:22,241: load() 'Jumble found plugin class: <class 'QuotationsPageSource.QuotationsPageSource'>: {'author': 'Peter Levi', 'name': 'TheQuotationsPage.com', 'version': '0.1', 'description': u'Fetches quotes from TheQuotationsPage.com'}'
INFO: 2014-12-16 14:23:22,242: _walk_modules() 'Jumble loading module in __init__ from /opt/extras.ubuntu.com/variety/share/variety/plugins/quotes/__init__.py'
INFO: 2014-12-16 14:23:22,243: _walk_modules() 'Jumble loading module in GoodreadsSource from /opt/extras.ubuntu.com/variety/share/variety/plugins/quotes/GoodreadsSource.py'
INFO: 2014-12-16 14:23:22,245: load() 'Jumble found plugin class: <class 'GoodreadsSource.GoodreadsSource'>: {'author': 'Peter Levi', 'name': 'Goodreads', 'version': '0.1', 'description': u'Fetches quotes from Goodreads.com'}'
INFO: 2014-12-16 14:23:22,246: _walk_modules() 'Jumble loading module in LocalFilesSource from /opt/extras.ubuntu.com/variety/share/variety/plugins/quotes/LocalFilesSource.py'
INFO: 2014-12-16 14:23:22,253: load() 'Jumble found plugin class: <class 'LocalFilesSource.LocalFilesSource'>: {'author': 'Peter Levi', 'name': 'Local text files', 'version': '0.1', 'description': u'Displays quotes, defined in local text files.\nPut your own txt files in: ~/.config/variety/pluginconfig/quotes/.\nThe file format is:\n\nquote -- author\n.\nsecond quote -- another author\n.\netc...\n\nExample: http://rvelthuis.de/zips/quotes.txt'}'
INFO: 2014-12-16 14:23:22,254: _walk_modules() 'Jumble loading module in QuotesDaddySource from /opt/extras.ubuntu.com/variety/share/variety/plugins/quotes/QuotesDaddySource.py'
INFO: 2014-12-16 14:23:22,258: load() 'Jumble found plugin class: <class 'QuotesDaddySource.QuotesDaddySource'>: {'author': 'Peter Levi', 'name': 'QuotesDaddy', 'version': '0.1', 'description': u"Fetches quotes from QuotesDaddy's daily quotes RSS feed.\nDoes not support searching by tags or authors."}'
INFO: 2014-12-16 14:23:22,275: reload_config() 'Creating new downloader for type 10, location http://backend.deviantart.com/rss.xml?q=boost%3apopular+in%3aphotography+max_age%3a24h&type=deviation'
INFO: 2014-12-16 14:23:22,275: reload_config() 'Creating new downloader for type 13, location http://alpha.wallhaven.cc/search?categories=111&purity=111&sorting=random&order=desc'
INFO: 2014-12-16 14:23:22,276: log_options() 'Loaded options:'
INFO: 2014-12-16 14:23:22,277: log_options() 'change_enabled = True'
INFO: 2014-12-16 14:23:22,277: log_options() 'change_interval = 360'
INFO: 2014-12-16 14:23:22,277: log_options() ...

Revision history for this message
Adrian Skar (cylonskar) wrote :

File here

Peter Levi (peterlevi)
Changed in variety:
status: Confirmed → Fix Committed
Peter Levi (peterlevi)
Changed in variety:
milestone: none → 0.5.0
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.