Commit Graph

23 Commits

Author SHA1 Message Date
Teemu Ikonen aed3a9fabc Accept coverart as SVG 2023-01-29 13:16:43 +02:00
Teemu Ikonen dc7ebf494d Fix setting cover image from local file 2022-08-16 17:18:09 +03:00
auouymous 41c312dd68 Change deprecated logger.warn() to logger.warning(). 2022-04-29 02:54:32 -06:00
Paper 2806f64a1a Fix warning on non-200 status codes in coverart 2021-03-05 11:56:21 +01: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
Eric Le Lay 19bf70572c add support for feed image in ico format 2019-05-08 18:55:57 +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
Xincognito10 7de1ff1719 * Cleaned up import statements
* Fixed get_real_cover to work with the new api-less youtube fetching
    * get_real_cover now uses the channel id fetched from the feed
    * The regex has been replaced with a dedicated html parser
2018-04-16 05:10:14 -05:00
MarkusHackspacher 52ddd60434 fix E228 missing whitespace around modulo operator
see issue https://github.com/gpodder/gpodder/issues/393
2018-03-18 01:00:02 +01: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
Thomas Perl e020448e14 More Python 3 fixes (Soundcloud, util) 2016-11-21 23:19:20 +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 bda982be02 Update copyright years for 2013 2013-03-05 16:38:48 +01:00
Thomas Perl 9abcf6a3cc Cover downloader: Add 5-second connection timeout 2013-02-26 21:46:38 +01:00
Thomas Perl 8a97b1c629 Cover art: Add support for GIF 2012-03-08 10:49:58 +01:00
Thomas Perl c9d5e7208d Cover art: Unified download manager (bug 1288) 2012-03-05 10:44:19 +01:00