Commit Graph

51 Commits

Author SHA1 Message Date
Teemu Ikonen 6bd0bb0530 Remove unused imports and pass statements
Fixes flake8 error F401.
Most errors were fixed by running

autoflake -i -r --remove-all-unused-imports .

which also removes unnecessary 'pass' statements, some by hand-editing.
2022-11-14 18:32:09 +02:00
Eric Le Lay 12912bed3e fix naive access to response.text
bytes for xml, utf-8 fallback for html, known encoding if available
2020-07-18 15:04:04 +02:00
Eric Le Lay 3babb86c70 use requests package for util.urlopen
now a requests.Response is returned instead of the file-like object from urllib.
Fixed all usages of util.urlopen: it simplifies getting json, text encoding detection.
In particular feedcore (responsible for fetching feeds) is simplified.

This is a first pass and could benefit from better usage of the requests api
(Sessions for instance, to keep connection pools)

TODO: download.py
2020-07-11 17:42:28 +02:00
MarkusHackspacher 4baaa75ee4 fix E501 line too long
in lines with more than 145 characters
2018-09-07 06:52:32 +02:00
MarkusHackspacher 3ce9cd55e7 remove too many blank lines 2018-07-24 14:11:05 +02:00
MarkusHackspacher 82f41f4c21 sorting imports
with isort -y -rc
see #393
2018-07-24 11:08:10 +02:00
MarkusHackspacher bfa93465d3 fix E201 whitespace after '(' 2018-05-21 21:40:40 +02:00
MarkusHackspacher a1e7e1dcbe fix E226 missing whitespace around arithmetic operator 2018-03-27 21:40:36 +02:00
MarkusHackspacher a90fa0b521 fix W391 blank line at end of file 2018-02-11 21:51:40 +01:00
MarkusHackspacher 0c18a43d13 fix E302 and E303, only blank line change 2018-02-11 00:22:00 +01:00
MarkusHackspacher fcbaee227c Fix W291 trailing whitespace 2018-02-01 07:59:22 +01:00
Thomas Perl 98ec45a712 Update copyright years (2018) 2018-01-28 19:39:53 +01:00
simbiotiqu 13a5c4e660
Update opml.py 2018-01-15 18:20:50 +01:00
simbiotiqu d17e7ee763
Update opml.py
to fix opml export error #377
2018-01-07 12:23:05 +01:00
Thomas Perl 7b46a0ee72 Update copyright years (2017) 2017-12-16 13:54:59 +01:00
Eric Le Lay 592146cd76 urlopen().read() must be converted to string
when it's searched by re, etc.
FIXME: still work to do to validate some uses are ok
2016-11-26 15:28:15 +01:00
Thomas Perl 36eefc8a30 Update copyright years (2016) 2016-01-15 15:22:52 +01:00
Thomas Perl 169102de09 Device sync: Only fail if we can determine free disk space (bug 2052) 2015-12-16 09:33:21 +01:00
Thomas Perl aa72634950 Update copyright years (2015) 2015-05-24 19:33:39 +02:00
Thomas Perl 553e35f219 Update copyright years (2014) 2014-02-27 21:55:13 +01:00
Thomas Perl bda982be02 Update copyright years for 2013 2013-03-05 16:38:48 +01:00
Bernd Schlapsi d5eae16b9f Improvements to the extension system
- Add category metadata in every extension
- Show this category in the extension list gui
- Add "mandatory_in" and "disable-in" configuration for an extension
- Add Ubuntu unity check to enable/disable unity specific extensions
- Move "gpodder.win32" and "gpodder.osx" setting to the "gpodder.ui" namespace to be able to use it in the extensions category settings
- Only show metadata information in the right-click dialog of an extension
2012-12-07 10:30:28 +01:00
Jonas Kölker 7da85d30a0 CLI: Implement OPML export/import (bug 1303) 2012-02-06 16:54:37 +01:00
Thomas Perl 990cebe9b9 First try on the new JSON-based config module 2012-02-04 19:21:51 +01:00
Thomas Perl 624282aea2 Fix various import statements (Py3k compat) 2012-01-19 11:26:44 +01:00
Thomas Perl 5205a4b71d Update copyright years (add 2012) 2012-01-09 21:19:24 +01:00
Thomas Perl a72bf2b7f1 Clean up various FIXMEs by code updates 2011-10-31 17:33:11 +01:00
Thomas Perl 8e87300c04 Logging: Deprecate liblogger, use standard logging module 2011-07-15 16:32:06 +02:00
Thomas Perl 4376057001 Update copyright years 2011-04-01 18:59:53 +02:00
Thomas Perl ddf6b3c450 Maemo 5: Add OPML export to settings (Maemo bug 11504)
Conflicts:

	src/gpodder/gui.py
2011-02-25 16:31:46 +01:00
Thomas Perl cf44f7c30e Code cleanup: Remove unused imports 2010-05-17 18:26:13 +02:00
Thomas Perl db354a8f42 Improve parsing support for OPML files
Ignore the case for file types, so that OPML files
with UPPERCASE type attributes also work (this is
the way ziepod and other apps write OPML files).
2010-01-07 12:17:38 +01:00
Thomas Perl 181564f1b7 Add 2010 to the years in copyright notice
The following command has been used:

grep -r '2005-2009 Thomas Perl and the gPodder Team' * | cut -d: -f1 |
xargs sed -i -e 's/2005-2009 Thomas Perl and the gPodder Team/2005-2010
Thomas Perl and the gPodder Team/g'
2010-01-02 17:35:42 +01:00
Thomas Perl dc849c1bec User-agent header for all HTTP requests (bug 626)
This includes shownotes images (from the HTML widget),
OPML downloads, YouTube resolving and my.gpodder.org.
2009-11-14 02:09:21 +01:00
Thomas Perl 66ad39193e Split GTK+-specific OPML code into gtkui package
Again, this allows the CLI code to not depend on GTK+.

Also introduce symbolic names for columns in the OPML
List Model and use them in gpodder.gui.
2009-08-13 23:56:25 +02:00
Thomas Perl de3750e190 Win32-specific changes and bugfixes (bug 247, 442)
This patch merges all the win32-specific changes that
have been done to gPodder so far and also adds some
generic bugfixes that will benefit other versions of
gPodder, too.

Thanks to Stefan Koegl and David Greenbaum for testing.
2009-05-10 23:08:37 +02:00
Thomas Perl 0f226211b5 Update copyright info from 2005-2008 to 2005-2009
As every year, we have to update the year info for
gPodder in all our files throughout the source tree.
2009-02-01 21:22:21 +01:00
Thomas Perl e7e9ea446b Use correct OPML version when writing outlines (bug 263)
We have been using the wrong OPML version (1.1) for
writing OPML files in gPodder. We now use version "2.0".

According to opml.org the 'title' and 'xmlUrl' are
not defined until version 2.0 of the OPML spec.

Thanks to Cory Albrecht for reporting this bug.
2008-12-01 16:23:40 +01:00
nikosapi 8e34554146 Use RFC2822-compliant dateCreated in opml files (bug 227)
opml.py: Use email.Utils' formatdate function to generate a timestamp instead
	of using datetime. It is guaranteed to be RFC2822-compliant.

Thanks to Cory Albrecht for reporting this bug.
2008-10-23 10:35:31 +02:00
Thomas Perl e0828d8fde Tue, 15 Jul 2008 10:08:16 +0200 <thp@perli.net>
Fix bugs and annoyances when no channels.opml file exists

	* src/gpodder/opml.py: Make sure can save a new channels.opml file
	when no other file exists, and make sure we don't try to parse a file
	that does not exist when opening OPML files



git-svn-id: svn://svn.berlios.de/gpodder/trunk@775 b0d088ad-0a06-0410-aad2-9ed5178a7e87
2008-07-15 08:09:18 +00:00
Thomas Perl 1174dd057c Sat, 14 Jun 2008 15:56:53 +0200 <thp@perli.net>
Make things less verbose and fix a problem with cover art handling

	* src/gpodder/gui.py: Fix problem when trying to remove a non-existent
	podcast cover art from the cache; make things less verbose
	* src/gpodder/*.py: Make things less verbose



git-svn-id: svn://svn.berlios.de/gpodder/trunk@739 b0d088ad-0a06-0410-aad2-9ed5178a7e87
2008-06-14 13:57:34 +00:00
Thomas Perl 3ccbb80a2c Sat, 29 Mar 2008 17:13:26 +0100 <thp@perli.net>
Project management updates (authors, contributors and copyright)

	* AUTHORS: Removed (was outdated); content now in gui.py (AboutDialog)
	* bin/gpodder, data/po/Makefile, doc/dev/copyright_notice, 
	  doc/dev/win32/setup-win32.py, INSTALL, Makefile, README,
	  setup.py: Updated Copyright and old website URL to include 2008, the
	  gPodder team and www.gpodder.org
	* src/gpodder/*.py: Updated Copyright years
	* src/gpodder/gui.py: Add list of contributors from AUTHORS file and
	from the content on the website's news page (please mail me if I
	forgot to mention you as a contributor, I surely have missed a few);
	make the AboutDialog's application name "gPodder" (from gpodder) and
	add an URL hook function to the AboutDialog, so the website is opened
	in the user's default web browser



git-svn-id: svn://svn.berlios.de/gpodder/trunk@648 b0d088ad-0a06-0410-aad2-9ed5178a7e87
2008-03-29 16:16:55 +00:00
Thomas Perl efff09eeb2 Support buggy OPML feeds, notify user on OPML import
git-svn-id: svn://svn.berlios.de/gpodder/trunk@566 b0d088ad-0a06-0410-aad2-9ed5178a7e87
2008-02-07 19:23:12 +00:00
Thomas Perl 5e221634d5 Output pretty-printed OPML when saving channels list
git-svn-id: svn://svn.berlios.de/gpodder/trunk@559 b0d088ad-0a06-0410-aad2-9ed5178a7e87
2008-02-04 08:33:58 +00:00
Thomas Perl bb624ccf46 Use os.rename to make channel list saving atomic
git-svn-id: svn://svn.berlios.de/gpodder/trunk@509 b0d088ad-0a06-0410-aad2-9ed5178a7e87
2008-01-09 10:54:28 +00:00
Thomas Perl 2c4c6586de Make sure there is enough free disk space when saving OPML channel list
git-svn-id: svn://svn.berlios.de/gpodder/trunk@470 b0d088ad-0a06-0410-aad2-9ed5178a7e87
2007-11-25 10:55:12 +00:00
Thomas Perl e2db68e087 Finally remove Desktop symlink code; several compatibility fixes
git-svn-id: svn://svn.berlios.de/gpodder/trunk@433 b0d088ad-0a06-0410-aad2-9ed5178a7e87
2007-09-25 20:06:48 +00:00
Thomas Perl f84d984780 Replace wget with new gpodder.download module; User-agent support
git-svn-id: svn://svn.berlios.de/gpodder/trunk@421 b0d088ad-0a06-0410-aad2-9ed5178a7e87
2007-09-18 18:25:25 +00:00
Thomas Perl 768228b695 Upgrade gPodder to GPLv3
git-svn-id: svn://svn.berlios.de/gpodder/branches/gpodder-thp-200708@400 b0d088ad-0a06-0410-aad2-9ed5178a7e87
2007-08-29 18:30:26 +00:00
Thomas Perl dffd252c06 import of the huge refactoring changeset
git-svn-id: svn://svn.berlios.de/gpodder/branches/gpodder-thp-200708@375 b0d088ad-0a06-0410-aad2-9ed5178a7e87
2007-08-20 13:45:46 +00:00