Commit graph

228 commits

Author SHA1 Message Date
Thomas Perl 746b7590bf Allow Python buffer objects through util.convert_bytes() 2016-11-20 11:50:05 +01:00
Thomas Perl 4189cf48fb Port from feedparser to podcastparser 2016-11-18 14:47:15 +01:00
Thomas Perl 826864daaa Fix class naming 2016-08-21 22:59:33 +02:00
Mathias Rav 81cbe1fba7 Move the code that uses html5lib under the html5lib guard 2016-08-11 09:53:36 +02:00
Mathias Rav a6f284331d Refactor, remove diffing code and extract_hyperlinked_text_{1,2} 2016-08-11 09:51:56 +02:00
Mathias Rav 6f2db07d76 Try importing html5lib and log a warning if it fails 2016-08-11 09:51:56 +02:00
Thomas Perl 334eaff8e3 Remove error message when html5lib not available 2016-08-08 20:10:35 +02:00
Mathias Rav 6a9a47a7b7 Fix NameError in ImportError handling 2016-08-08 20:04:14 +02:00
Mathias Rav 9cc600208f Handle HTML entities using name2codepoint 2016-08-08 20:00:28 +02:00
Mathias Rav 33af39d69d extract_hyperlinked_text: Compare the two algorithms and output their difference 2016-08-08 19:51:29 +02:00
Mathias Rav f74b20113b Implement extract_hyperlinked_text_2 2016-08-08 19:51:15 +02:00
Mathias Rav 87ce8447e3 Refactor, renaming extract_hyperlinked_text -> extract_hyperlinked_text_1 2016-08-08 19:50:51 +02:00
Mathias Rav c7ab9f6f70 Use html5lib to find hyperlinks in the HTML of the podcast show notes 2016-08-07 12:24:03 +02:00
Thomas Perl 28075c09dd Remove QML UI 2016-02-03 19:54:33 +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 8c537c703c gpodder.util: Fix timestamp issues (bug 1983) 2015-02-15 11:55:32 +01:00
Thomas Perl ca7586168b gpodder.util: Don't force password to be lowercase (bug 1942) 2014-08-25 12:57:41 +02:00
Thomas Perl 91a042b1f6 Sailfish: Remove obsolete, Qt4-based Sailfish QML UI
The current Sailfish UI is maintained as part of gPodder 4 in
gpodder-core, gpodder-ui-qml and gpodder-sailfish. The code
removed here was part of the old, Qt4-based Sailfish Alpha
SDK-based port that was still using PySide and Python 2.
2014-06-28 13:48:13 +02:00
Thomas Perl 2728172b28 gpodder.util: Fix a bug in delete_empty_folders
The bug could have caused an empty directory in the current working
directory to be removed if an empty folder of the same name exists in
the download directory.
2014-05-23 15:19:38 +02:00
Thomas Perl f83e64e169 gpodder.util: Fix a bug in the delete_empty_folders code 2014-05-17 11:42:05 +02:00
Ricardo Miranda 142214d9eb CLI: Delete empty folders on download, update, pending (bug 1601) 2014-05-17 11:08:34 +02:00
Thomas Perl d81d7617d3 gpodder.xspf: Remove broken plugin 2014-03-17 19:58:55 +01:00
Thomas Perl 553e35f219 Update copyright years (2014) 2014-02-27 21:55:13 +01:00
Wes Morgan 2e6ea217dc gpodder.util: Fix FreeBSD network detection (bug 1730)
The unix_get_active_interfaces() function only partially works on
FreeBSD. Wireless interfaces do not have a status of "active", but
rather "associated".
2013-12-07 12:54:51 +01:00
Thomas Perl bda982be02 Update copyright years for 2013 2013-03-05 16:38:48 +01:00
Thomas Perl 98a25e2096 Util: Fix unit test (use real unknown extension) 2013-03-05 16:34:43 +01:00
Thomas Perl 39daccbd92 QML UI: Initial support for Sailfish Silica 2013-03-01 11:19:18 +01:00
Thomas Perl 9abcf6a3cc Cover downloader: Add 5-second connection timeout 2013-02-26 21:46:38 +01:00
Thomas Perl 00f80f7130 Util: Improve parse_time() 2013-02-17 19:00:17 +01:00
Thomas Perl 60e541fde8 Util: Python 2.6 compatibility fixes 2013-01-30 19:07:43 +01:00
Thomas Perl 9386d904f2 Offline mode: Logic fixes (bug 1730) 2013-01-29 18:38:47 +01:00
Thomas Perl 72c028dc25 Make online detection a bit smarter (bug 1730)
If we don't have "ifconfig" and "ip" assume we're online
(because we can't determine that we're offline), and if
detecting the network connection fails for some reason,
also assume that we're online. This avoid bogus "you're
offline" messages while still giving good feedback to
users who try to check for new episodes while offline.
2013-01-29 18:26:07 +01:00
Olivier Brisson 710ec086fc Util: Add interface detection for FreeBSD (bug 1730)
I've also been hit with this bug on FreeBSD where
iproute2 is not available.

FreeBSD 8.2-STABLE i386

I wrote a little patch to make gpodder work on FreeBSD.
2013-01-05 01:51:55 +01:00
Thomas Perl cd851c5429 Util: Improve parse_time() function 2012-12-29 19:01:30 +01:00
Bernd Schlapsi 6ebad7d672 Add support for the opus audio codec (bug 1734) 2012-12-29 14:20:30 +01:00
Thomas Perl b848f79369 Util: Parse HH:MM-style strings with HH > 59 2012-12-29 01:26:57 +01:00
Thomas Perl ce461ff90d gpodder.util: Use gpodder.ui.win32 for new code 2012-12-17 15:34:08 +01:00
Thomas Perl faa9bb7916 Merge pull request #31 from smunkel/master
Dont warn about unknown file if it is a system file (Bug 1712)
2012-12-17 06:33:06 -08:00
Thomas Perl f6c66134b9 Merge pull request #29 from brot/master
Improvements to the extension system
2012-12-17 06:31:51 -08:00
Sean Munkel 2b9ef81bca Dont warn about system files in windows (bug 1712) 2012-12-07 14:02:21 -05: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
Thomas Perl 831cbde7fc Util: Python 2.6 compatibility fix 2012-11-23 12:03:55 +01:00
Thomas Perl cdf27fe5f1 Linux: Detect PPP as Internet connection (bug 1702)
PPP connections on Linux have state "UNKNOWN", and are
therefore not detected as such. We fix this now by assuming
that all "UNKNOWN" connections are actually working Internet
connections, and filter the loopback interface (which is also
an "UNKNOWN" connection).

Thanks to Sudaraka Wijesinghe for the bug report, initial
patch and testing/feedback.
2012-11-03 13:43:15 +01:00
Eric Le Lay 41b273db45 Offline mode detection for OS X (bug 107) 2012-10-23 12:41:47 +02:00
Thomas Perl e3f5360073 Basic Offline mode support (bug 107)
Detect network connections on Linux (still need to find a way to
implement it for Windows and OS X - on these platforms, this
implementation acts as if the connection is always available).

We might need to use this in more places in the code, but for starters
this should work nicely.

The Linux implementation assumes the "ip" command is available.
2012-10-13 13:52:14 +02:00
Thomas Perl 61f2cfa379 QML UI: Remove remaining Maemo 5 (Fremantle) support
After a year of basically no work towards Maemo 5 support,
I consider gPodder 3-on-Maemo 5 something that we won't ever
do, so the remaining codes goes. This also cleans up some
dead code in the Gtk UI that's been sitting there.

If anybody wants to step up and do something about that, be
my guest. If anything, I'd assume that if anything on the N900,
gPodder 3-on-Nemo Mobilemight be feasible, and in that case, it
should be "just like Harmattan" in most ways.
2012-09-15 20:22:06 +02:00
Bernd Schlapsi 82d36f368c First changes for the flattr integration to better work when offline
Better flattr integration when offline (bug 1576)

Reset the worker_thread variable when the worker thread is finished (bug 1576)

change the name of the flattr cache database
2012-09-02 17:18:05 +02:00
Thomas Perl f1b4df19a7 Util: make object_string_formatter more robust
Based on an initial patch by Alessandro Guido, but
updated to conform to PEP-8. Also added 2 doctests.
2012-07-30 21:58:04 +02:00