Commit graph

4078 commits

Author SHA1 Message Date
Eric Le Lay 3c58c27b2c replace cgi.escape with html.escape everywhere
cgi.escape is deprecated
2019-09-08 18:14:52 +02:00
Eric Le Lay 635c2e1800 deprecated cgi.escape to html.escape + escape every self.show_message
Otherwise an empty Download Error popup happens
if episode title contains '&' when important=True and we set
the popup's text using pango markup.
2019-09-08 18:14:52 +02:00
Eric Le Lay 1a82f1d77c
Merge pull request #659 from Hiltronix/master
Fix never deleted Win32 Powershell Notifications on Win7
2019-09-07 16:18:18 +02:00
Eric Le Lay f583d19857
Merge pull request #652 from gpodder/youtube-dl
Extension to manage Youtube subscriptions using youtube-dl
2019-09-07 15:41:06 +02:00
Eric Le Lay 58d1f5c38a fix linter warning and update doc link 2019-09-07 15:30:45 +02:00
Eric Le Lay 25ca3593bf Merge remote-tracking branch 'origin/master' into youtube-dl 2019-08-27 21:58:11 +02:00
Eric Le Lay 8cafd22161 fix edit config boolean editor: align left 2019-08-27 21:57:54 +02:00
Eric Le Lay ded38eda51 youtube description: fix log + translate No description available 2019-08-27 21:56:13 +02:00
Eric Le Lay dfb245fd85 don't override custom feed descriptions 2019-08-27 21:55:49 +02:00
Eric Le Lay 7127797af1 add youtube description 2019-08-27 21:52:33 +02:00
Eric Le Lay 5e9d2923db Merge remote-tracking branch 'origin/master' into youtube-dl 2019-08-27 20:49:51 +02:00
Eric Le Lay 28f729f15e use stream_url or download_url when applicable 2019-08-26 20:56:16 +02:00
Hiltronix b6889c0eb3 Update notification-win32.py 2019-08-24 15:55:30 -05:00
Hiltronix 232b3b8b28 Update notification-win32.py 2019-08-24 15:52:36 -05:00
Hiltronix 8e2368e6ab Fix Win32 Powershell Notifications
On Windows 7, the Powershell notifications that gPodder  3.x is using are never deleted from the desktop.  The notification icons permanently stay visible in the taskbar system tray, untill your manually roll over them with the mouse cursor.

Changing the subprocess  from "run" to "Popen" so the fuction is non-blocking.

Non Win 10 Windows script will create it's own time delay, after which it removes the taskbar system tray icon, and then deletes it's own script file.

Removing the Python delete file, and have the Powershell script delete itself when it's done, because we want the script to be non-blocking and be removed from the temp folder after use.

I have not tested on Win 10 as I use Win 7, so I don't know if Win 10 has the same issues with Powershell permant  taskbar system tray icons.  So this fix is just for <Win10 script notifications.
2019-08-24 15:34:29 -05:00
Eric Le Lay e82f1f97f8 fix View > Show Toolbar always disabled
broken since Feb (e4a16f1526)
2019-08-24 16:26:57 +02:00
Eric Le Lay 31e8de4355 fix #547 Download progress not updated on auto download
- adding new tasks to download queue manager is delayed in
download_episode_list() so new tasks are in INIT state.
- download_list_update() will disable UI refresh when it sees no task
in queued downloading or synchronizing state.

So after download_episode_list(), there is a race condition between
the first execution of download_list_update() and queue_task()

Fixed by calling enable_download_list_update() after adding tasks to the
download queue manager.

Also queue_tasks() now registers all tasks at once instead of one by
one.
2019-08-24 16:02:22 +02:00
Eric Le Lay 54925234a1
Merge pull request #654 from Hiltronix/master
Fix Podcast Description None
2019-08-20 19:11:42 +02:00
Hiltronix 39e45f353f Update util.py
Change so there is no blind except.
2019-08-20 11:04:09 -05:00
Hiltronix da3e2391f7 Update youtube.py
Fix white space.
2019-08-19 23:06:52 -05:00
Hiltronix 3b56118daf Update youtube.py
Fix blank line spacing.
2019-08-19 23:03:24 -05:00
Hiltronix b49327fe09 YouTube Updates
YouTube full size 900x900 image was  never being selected, images were always 100x100, due to HTMLParser interating till all matches were found.  900x900 was found first, then 100x100px image, which was the final result.  Now all results are saved in a list, the first find is the selected result.

YouTube channel description and link were not being discovered, or saved to the sqlite DB.  Desc is now retreived from the YouTube channel webpage in the same manner as the cover image link, and the link is the YouTube channel URL.
2019-08-19 22:53:34 -05:00
Hiltronix 08a0b8255b Fix Podcast Description None
Error occurs when saving changes to sqlite DB when desc is None, as SQL field "description" is set "NOT NULL" in table "podcasts".  Desc must be empty string not None.
2019-08-19 22:29:34 -05:00
Eric Le Lay c34f23e23e dd youtube_dl to win installer 2019-08-17 18:35:45 +02:00
Eric Le Lay f821617bad youtube-dl: pip install in description 2019-08-17 18:35:39 +02:00
Eric Le Lay 2133527afb better isort youtube-dl fix 2019-08-17 18:30:23 +02:00
Eric Le Lay 75864758cd config + doc 2019-08-17 18:27:45 +02:00
Eric Le Lay 335770d8bb make lint show isort intended diff
it's more useful to know what it wants than the verbose output
2019-08-17 17:59:56 +02:00
Eric Le Lay 514e254324 isort import order 2019-08-17 17:58:04 +02:00
Eric Le Lay a7fbe0d531 use registry.feed_handler instead of gPodderFetcher.custom_handlers 2019-08-17 17:48:52 +02:00
Eric Le Lay ba8ed45d11 Manage Youtube subscriptions using youtube-dl
still WIP: fetching subscription entries is really slow because youtube-dl fetches and parses the whole webpage
of each video. Should there be a setting to only download?
2019-08-17 17:40:11 +02:00
Eric Le Lay 1444b71ddc add webm extension, mimetype 2019-08-17 16:26:02 +02:00
Eric Le Lay a05bd85d76 registry.custom_downloader + registry.download_url
for extensions to be able to register custom downloaders,
not only resolving episode to a real download url.
refactor {escapist,youtube,vimeo}.get_real_download_url to use registry.
2019-08-17 16:25:00 +02:00
Eric Le Lay c847988531 backport gpodder-core's registry 2019-08-17 16:15:56 +02:00
Eric Le Lay e03a3f1909 remove unused gpodder.net feedservice example code 2019-08-11 16:33:24 +02:00
Eric Le Lay b4554005d9 fix linter warning 2019-08-11 12:18:28 +02:00
Eric Le Lay 9827cc5862 Open website extension: also from podcast 2019-08-11 12:18:12 +02:00
Eric Le Lay d004d952f5 fix #648 Checking for new episodes clears file_size for some downloaded files
in particular youtube episode info never has file size, erasing downloaded file size.
Thanks to @auouymous for the fix
2019-08-11 12:05:30 +02:00
Eric Le Lay a7385c95b5 fix #649 Progress icon doesn't appear when downloading a failed or paused episode
thanks to @auouymous for the fix
2019-08-11 11:59:08 +02:00
Eric Le Lay 03819e4abf fix #635 Vimeo download fail 2019-06-18 09:00:26 +02:00
Eric Le Lay d9ecf5ecc7
Merge pull request #634 from TZocker/patch-10
Update de.po
2019-06-12 23:17:05 +02:00
TZocker 3219917bdf
Update de.po
to 3.10.9
2019-06-10 11:09:01 +02:00
Eric Le Lay 034e3ffa2b Merge default and custom feed handling; support paged feeds
RFC 5005 (http://podlove.org/paged-feeds/)

Fixes #231
2019-06-09 18:59:09 +02:00
Eric Le Lay 711ed276df doctest: convert dict to sorted seq for python 3.5 compat 2019-06-09 16:46:17 +02:00
Eric Le Lay 7d0381905a fix linter warning 2019-06-09 16:30:21 +02:00
Eric Le Lay 80a017e231 fix unittest on python 3.5 2019-06-09 16:23:03 +02:00
Eric Le Lay 6d1906dab9 prepare 3.10.9 release 2019-06-09 16:11:40 +02:00
Eric Le Lay d16cad438f fix linter warnings 2019-06-09 16:11:40 +02:00
Eric Le Lay 42cd004935 don't eat extension's dot in sanitize_filename_ext
it's too confusing: caused bugs in core itself (#630)
2019-06-09 16:05:16 +02:00
Eric Le Lay cc3e0563fd win_installer: remove conflicting packages instead of reinstalling the toolchain
removing the toolchain broke deps
2019-06-08 18:54:58 +02:00