Commit Graph

101 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
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
Eric Le Lay fa5a289396 finish fixing E226 2018-04-15 18:59:20 +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
Thomas Perl 98ec45a712 Update copyright years (2018) 2018-01-28 19:39:53 +01:00
Thomas Perl 7b46a0ee72 Update copyright years (2017) 2017-12-16 13:54:59 +01:00
Eric Le Lay a4e41c09b7 python 3.6 SQLite compat vacuum in transaction
fixes sqlite3.OperationalError: cannot VACUUM from within a transaction
solution from https://bugs.python.org/issue28518
2017-01-29 16:30:17 +01:00
Thomas Perl 5a7c30b359 Port to Python 3 2016-11-21 23:13:46 +01:00
Thomas Perl 36eefc8a30 Update copyright years (2016) 2016-01-15 15:22:52 +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 2de2456e7f Database: Check if every episode is assigned to a podcast 2013-03-12 17:15:08 +01:00
Thomas Perl bda982be02 Update copyright years for 2013 2013-03-05 16:38:48 +01:00
Thomas Perl 5411f3fc2f Python 3: Initial support for Python 3 (CLI)
This changeset makes gPodder's codebase convertable
to Python 3 using the "2to3" utility. Right now, only
the CLI module (bin/gpo) has been tested.

See the README file for instructions and remarks.
2012-01-10 13:47:20 +01:00
Thomas Perl 5205a4b71d Update copyright years (add 2012) 2012-01-09 21:19:24 +01:00
Thomas Perl f03145a394 Fix SQLite-related unicode encoding errors (bug 1465)
Python 3 cannot come fast enough.
2011-10-29 20:41:42 +02:00
Thomas Perl 76762fcabb Use unicode strings from the SQLite database
This avoids unicode warnings and should hopefully
prepare us for the wonderful times of Python 3
sanity, when all our encoding problems are gone ;)
2011-10-22 19:03:11 +02:00
Thomas Perl 7775202666 Database upgrade: Store section names in the DB
This makes it possible to fix 931 later on - right
now, users cannot edit the section names in the UI,
but only via editing the database file directly.
2011-07-27 15:36:04 +02:00
Thomas Perl 1894f0e999 GTK UI: Clean up episode_object_by_uri 2011-07-26 12:17:17 +02:00
Thomas Perl f5acd56d24 Improve podcast list updating in Gtk UI 2011-07-16 20:51:26 +02:00
Thomas Perl 7ddb2eb354 Use slots and keep model instances in memory 2011-07-16 17:26:04 +02:00
Thomas Perl 52779f611b First cut of dbsqlite simplification (w/ weakrefs) 2011-07-16 14:30:08 +02:00
Thomas Perl 819a97b59d Cleanup dependencies, remove D-Bus mock code 2011-07-15 17:55:38 +02:00
Thomas Perl 8e87300c04 Logging: Deprecate liblogger, use standard logging module 2011-07-15 16:32:06 +02:00
Thomas Perl 5f2cc57953 Re-add "published" to Episode database table
Oops. That wasn't planned. It's fixed now, relax.
2011-05-02 23:12:45 +02:00
Thomas Perl 477119df01 Refactoring: Remove "published" from PodcastChannel
This field wasn't used at all in gPodder's UI or backend.
2011-04-28 21:11:59 +02:00
Thomas Perl 4376057001 Update copyright years 2011-04-01 18:59:53 +02:00
Thomas Perl c68edb6a03 Clean up and improve local_filename()
Remove obsolete code parts, merge code paths for
easier readability. Make filename check based on
podcast ID (so files in different folders can have
the same name).
2011-02-25 23:27:59 +01:00
Thomas Perl 997bb2dfcc Add support for remembering last playback time
This makes it possible to get "recently listened
to" episodes from the database, and reload the
last-listened-to episode from the database.
2011-02-11 16:25:56 +01:00
Thomas Perl 4e09b984f8 Support for grouping podcasts by content type 2011-02-04 19:06:20 +01:00
Thomas Perl afdfd5687f Don't delete episodes if max_episodes is 0 2011-02-04 02:47:30 +01:00
Thomas Perl 19c36ad921 Fix unplayed podcast statistics calculation 2011-02-02 00:24:12 +01:00
Thomas Perl 64a2e214bc Schema creation, upgrade and migration for DB 2011-02-01 17:27:34 +01:00
Thomas Perl d085ddfaf0 Python 2.5 compatibility: with statement 2011-02-01 16:58:56 +01:00
Thomas Perl 292c82ab00 Database schema cleanup / upgrade 2010-12-20 14:35:46 +01:00
Thomas Perl 3e59385337 Remove sync_to_devices from podcast channel 2010-12-20 11:15:29 +01:00
Thomas Perl cc58ca6646 Remove deprecated statistics properties of channel 2010-12-20 01:59:34 +01:00
Thomas Perl e131e5a40c Remove device_playlist_name from podcast channel 2010-12-20 01:58:08 +01:00
Thomas Perl 7616f61146 Episode GUID should be unique per-podcast only 2010-12-19 22:31:54 +01:00
Thomas Perl b785d1113f Add per-podcast pause subscription option (bug 1050) 2010-09-27 00:08:30 +02:00
Bernd Schlapsi edbad47928 Add "not null" and "default" to upgrade function (bug 1127) 2010-08-24 19:23:23 +02:00
Bernd Schlapsi eea03796de Restructure database tables (bug 1127)
Use not null and default definitions.
2010-08-23 23:41:35 +02:00
Thomas Perl 194f3e7c0e DB: Remove orphaned episodes after schema upgrade 2010-07-07 19:22:57 +02:00
Thomas Perl 8466636cd6 Faster episode searching by URL/filename
Implement a faster method for acquiring the
episode object from a download URL or filename.

This improves performance for episode status
updates and episode metadata requests over D-Bus.
2010-06-12 18:08:57 +02:00
Thomas Perl 96cd54122f Remove orphaned episodes from the database
Thanks to Sebastian Krause for reporting this
bug and sending in an example database.
2010-05-28 19:32:40 +02:00
Thomas Perl 44aae8f0ad Fix "ProgrammingError" undefined in dbsqlite 2010-05-17 18:29:40 +02:00
Thomas Perl cf44f7c30e Code cleanup: Remove unused imports 2010-05-17 18:26:13 +02:00