Commit Graph

1457 Commits

Author SHA1 Message Date
Jordan Petridis
6510daf885
CI: cache only the sources from flatpak-builder
Gitlab CI zips its cache target which causes it to strip
xattributes. This breaks ostree and the cache artifacts.

Cache only the sources instead.
2018-09-05 00:45:09 +03:00
Merge Bot
db46b751d8 Merge branch 'alatiera/total-size-failed' into 'next'
EpisodeWidget: Hide total_size if request fails

See merge request World/podcasts!73
2018-09-04 21:44:12 +00:00
Jordan Petridis
d0b43e187d
EpisodeWidget: Hide total_size if request fails
This moves the rest of the methods of Progress struct to the downloader
trait and cancels the Progress if the request does nto succed.

Close #90
2018-09-04 22:29:21 +03:00
Jordan Petridis
da361d0cb9
Pipeline: Avoid spamming stderr when not needed
This commit add a new DataError Variant for feeds that return 304.
Its expected behaviror and the current API of Source::into_feed
is kinda limiting the return type to make it easier to handle.

Up till now 304 was returning an Error to early return. Ideally
Source::into_feed will return a Multi variant Result Enum.

example:

enum FeedResult {
    Ok(Success(feed)),
    Ok(NotModified),
    Err(err),
}

Hopefully in a refactor in the near Future™

Till then we will just have to match and ignore
DataError::FeedNotModified.
2018-09-04 14:12:05 +03:00
Jordan Petridis
ca6996e53a
DataError: Improve the FeedRedirect variant 2018-09-04 12:41:37 +03:00
Jordan Petridis
a61bbc460f
Pipeline: clear the imports of fututres 2018-09-04 11:55:39 +03:00
Jordan Petridis
1933c79f7a
BaseView: Set minimum width to 360
While the HomeView and ShowView can't yet scale that low,
the ShowWidget could get to about 270p already which is not
desirable.

This commit sets the minimum width of all the Views to 360p,
which is our mobile target size.
2018-09-04 11:44:35 +03:00
Merge Bot
d025693ed4 Merge branch 'alatiera/future-stuff' into 'next'
Replace rayon_futures with Tokio Runtime

See merge request World/podcasts!70
2018-09-03 20:24:55 +00:00
Jordan Petridis
59ad90b989
Pipeline: Minor formatting improvment 2018-09-03 20:30:41 +03:00
Jordan Petridis
3019fcf630
Pipeline: Use a custom tokio threadpool
This reverts commit e64883eecb
and 40dd2d6923

Seems like core.run() returns once its done even if there
are still tasks in the Runtime underneath. A way to solve that
would be to call the shutdown_on_idle method.

We need ownership of the threadpool in order to invoke
`shutdown_on_idle` method but core.runtime only returns a
referrence so we need to create our own threadpool.
2018-09-03 19:50:42 +03:00
Jordan Petridis
3c52131ab5
Update Changelog 2018-09-03 19:47:25 +03:00
Jordan Petridis
40dd2d6923
DataError: Remove unused error variant
This was added due to Threadpool::spawn returning errors, but its
no longer used.
2018-09-03 19:47:25 +03:00
Jordan Petridis
e64883eecb
Pipeline: reuse the prexisting runtime executor
Instead of creating our own threadpool, we should reuse the executor
of the tokio::runtime::Runtime that backs the tokio::reactor::Core.
2018-09-03 19:47:24 +03:00
Jordan Petridis
68136941fa
Pipeline: Remove use of clone! macro 2018-09-03 19:46:12 +03:00
Jordan Petridis
f376027180
Pipeline: Use tokio threadpool to index feeds 2018-09-03 19:22:33 +03:00
Jordan Petridis
8fe1b70000
Pipeline: Remove dependancy on rayon_futures
This requires a RUSTFLAG to be set before hand for rayon to build.
This brakes a lot of tools like rls and clippy by default and
require special configs for itnegration.

Additionally, rayon_futures is still 0.1 and not much work seem
to have gone into it. Ideally it should be replased with the tokio
runtime/threadpool.
2018-09-03 13:10:27 +03:00
Jordan Petridis
0d7ca7dcc5
Feed: Remove another unnecessary wrapper 2018-09-03 13:09:52 +03:00
Jordan Petridis
ecadadd3ed
Feed: Remove unnecessary function wrapper 2018-09-03 13:09:42 +03:00
Jordan Petridis
b05163632b
test.sh: build with devel profile as well 2018-09-03 11:17:03 +03:00
Daniel Mustieles
f59be31ded Update Spanish translation 2018-09-03 06:32:14 +00:00
Anders Jonsson
2e527250de Add Swedish translation 2018-09-02 23:35:41 +00:00
Piotr Drąg
91dd378f5d Update Polish translation 2018-09-01 17:49:54 +00:00
Jiri Grönroos
f5b3d033a3 Update Finnish translation 2018-09-01 16:59:07 +00:00
Rafael Fontenelle
db98e3b722 Add Brazilian Portuguese translation 2018-09-01 13:29:55 +00:00
Mario Blättermann
586cf16fdc Update German translation 2018-08-31 19:05:31 +00:00
Jordan Petridis
064d877205
Appdata: add release notes 2018-08-31 21:00:18 +03:00
Jordan Petridis
fbf8cc87c9 Version bump 2018-08-31 14:14:17 +00:00
Jordan Petridis
bebabf84a0 Update Changelog 2018-08-31 14:11:29 +00:00
Seong-ho Cho
36f169635a Add Korean translation 2018-08-31 00:56:44 +00:00
Jordan Petridis
3f509f44a1
Update dependancies. 2018-08-30 20:45:53 +03:00
Jordan Petridis
9bc8a8ac2b
Release: include meson_options.txt 2018-08-30 20:21:11 +03:00
Jordan Petridis
abfe98283b
EpisodeWidget: Allow size labels to elipsize 2018-08-30 20:21:10 +03:00
Kukuh Syafaat
ded0224f51 Add Indonesian translation 2018-08-30 10:43:20 +00:00
Fran Dieguez
0060a634d2 Add Galician translation 2018-08-30 08:45:45 +00:00
Jordan Petridis
d34005e04f Merge branch 'chng-readme' into 'master'
README.md: Change instructions for translators

See merge request World/podcasts!68
2018-08-29 08:43:48 +00:00
Rafael Fontenelle
c734bd48b5 README.md: Change instructions for translators
Change translation instructions to steer the translator to the translation platform D-L, to follow the proper workflow of the language teams.
2018-08-29 07:29:38 +00:00
Jordan Petridis
174c814541 Merge branch 'alatiera/cover_load_perf' into 'master'
Cover loading performance improvments

See merge request World/podcasts!67
2018-08-29 07:29:17 +00:00
Jordan Petridis
993b6e9d0a Utils: only queue a single cover download
Before we were inserting the id of the cover into the registry
from a rayon thread. But rayon will only execute N threads at the
same time and let the rest into a queue. This would casue mutliple
jobs being queued since the cover id was not inserted in the
registry until the downloading had started.

This fixes said behavior by having the main thread block and write
in the id in the registry.
2018-08-28 21:15:52 +00:00
Jordan Petridis
273c9f7b99 Utils: Change the priority of the cover caches
Since loadign a pixbuf from the pre-rendered cache is the most
common operation and it does not affect the behavior we can
first check that and then if the cover is midway downloading.

This avoids a mutex lock for the most common path.
2018-08-28 21:15:52 +00:00
Jordan Petridis
822deb2867 Utils: do not block the cover_dl registry
Accidently after f21398357b when a download would start,
it would lock the cover_dl_registry hashmap till it had finished.

Since the registry.read() happens on the main thread this would
cause the UI to block until the download was and the mutex guard
from the download thread dropped.
2018-08-28 21:15:52 +00:00
Merge Bot
132e2afce0 Merge branch 'wip/piotrdrag/update-potfiles-180828' into 'master'
Update POTFILES.in

See merge request World/podcasts!66
2018-08-28 20:54:09 +00:00
Piotr Drąg
2a888f0bce Update POTFILES.in 2018-08-28 19:44:34 +02:00
Jordan Petridis
f8202a7add Merge branch 'alatiera/meson-stuff' into 'master'
Parallel installation and meson cleanups

See merge request World/podcasts!64
2018-08-28 16:13:31 +00:00
Jordan Petridis
87e8d0b775
Fix the test-suite 2018-08-28 17:50:57 +03:00
Jordan Petridis
569c00ff5f
Allow for parallel development instance
This adds a configuration option in meson, if set it changes the
application ID allowing for stable and development version to be
run at the same time.
2018-08-28 17:22:13 +03:00
Jordan Petridis
15457e1db4
App/Build: Use env! macro to fetch the variable
env! is resolved at compile time which means we don't need to read
and set LOCALDI from build.rs
2018-08-28 17:22:13 +03:00
Jordan Petridis
0ae1eb9578
build: Translate desktop and appdata files 2018-08-28 17:22:13 +03:00
Jordan Petridis
aa1d0161d3
cargo fmt 2018-08-27 21:08:29 +03:00
Emin Tufan Çetin
a2d8b88337 Update Turkish translation 2018-08-27 08:43:08 +00:00
Jordan Petridis
a1b4306954
Merge remote-tracking branch 'zander/master'
See !65 for more.
2018-08-27 10:53:07 +03:00