Commit Graph
90 Commits
Author SHA1 Message Date
Jordan Petridis 93372a30d0 1.21 Gigawatts. Remove non-future indexing loop.
Tried to have a seperate futures loop but it's too confusign having
too write a Trait2, functon2, etc version of everything and keep it together.

Futures are functional sort of, so the synchronous versioun can be removed.
It still needs a ton of work though to be ready, or even get near the perf
of of the sync+rayon version.
2018-01-18 11:38:24 +02:00
Jordan Petridis 574cfae5c6 rustfmt: enable reorder imports. 2018-01-17 08:57:02 +02:00
Jordan Petridis 3358fcd0b3 hammond_data::Feed: general cleanup of no longer needed stuff. 2018-01-15 11:03:40 +02:00
Jordan Petridis e4d77a6ba4 Cleanup the id() method mess of the diesel models. 2018-01-13 07:46:56 +02:00
Jordan Petridis ee9cede921 hammond_data: Remove Source dependancy from Feed struct. 2018-01-13 06:08:51 +02:00
Jordan Petridis 8e367b7e86 Dont ask me how this is working. 2018-01-12 08:50:16 +02:00
Jordan Petridis 8a90de3c0e Implement download cancel action. #24 2018-01-10 09:43:38 +02:00
Jordan Petridis 7f8544373f EpisodesView: Show 50 episodes instead of 100. 2018-01-10 02:14:49 +02:00
Jordan Petridis 955845110b Merge branch 'master' into 33-downloader-re-work 2018-01-09 12:06:38 +02:00
Jordan Petridis 193117f579 Downloader: Update the progress index of downloads. 2018-01-08 12:29:47 +02:00
Jordan Petridis 074284d286 Move unsub show logic and get_download_folder func to hammond-data::utils. 2018-01-07 08:26:38 +02:00
Jordan Petridis 5c333291e1 Move temporary downloads to XDG_CACHE/Downloads. 2018-01-07 07:46:11 +02:00
Jordan Petridis 13ba2762ad Move the download manager to the gtk crate. 2018-01-05 22:02:06 +02:00
Jordan Petridis e9dd297bf3 Merge branch 'master' into 33-downloader-re-work 2018-01-05 21:43:41 +02:00
Jordan Petridis eafad35860 Upgrade diesel to 1.0.0 and update rest dependancies. 2018-01-05 19:57:11 +02:00
Jordan Petridis c61d322569 EpisodeWidget: Implement shared download state. 2018-01-02 08:00:38 +02:00
Jordan Petridis 37e9b6fbf0 'How hard could it be' 2018-01-02 07:23:53 +02:00
Jordan Petridis b32f448957 When downloading an episode, set it's title to rowid instead of it's title. 2018-01-01 16:36:15 +02:00
Jordan Petridis a3cd76dbf8 hammond-downloader: Use glob Insead of hardcoded file extensions. 2017-12-31 03:59:48 +02:00
Jordan Petridis ca06a16bd9 Closes #2. Kudo to @jwykeham for the fix!. 2017-12-29 02:45:02 +02:00
Jordan Petridis 55b6fccefd Make it explicit to run some tests. 2017-12-28 23:46:09 +02:00
Jordan Petridis 1d78ab7c42 Cargo upgrade. 2017-12-28 23:19:36 +02:00
Jordan Petridis bfb74c4dba hammond-data: Index_loop does not wait for GET request to finish now. 2017-12-26 18:18:48 +02:00
Jordan Petridis e7185d2cd3 Visual tweaks, and other minor stuff.
Added margins bottom margins on EpisodesView and ShowWidget.
Added some comment's to the code.
Silenced needless_pass_by_value clippy warning.
Updated TODO.md.
2017-12-23 16:56:03 +02:00
Jordan Petridis 2ad0539a82 Downloader: Overwrite episode.lenght column upon download finish with the actual file size. Closes #22. 2017-12-21 22:15:17 +02:00
Jordan Petridis 2e06205eda Define a new Diesel Model for PodcastCover querries.
Define new Diesel Model and impl From<Podcast> trait,
Change the signature of downloader::cache_image function,
Change and merge hammond-gtk::utils::get_pixbuf_from_path functions.
2017-12-20 18:19:31 +02:00
Jordan Petridis 440badf1eb ShowWidget: Strip html tags from the description. 2017-12-16 20:45:15 +02:00
Jordan Petridis 8fe6b526a5 Add a new Diesel Model for the EpisodeWidget. 2017-12-14 12:01:35 +02:00
Jordan Petridis d5d55d4ef3 Update dependancies. 2017-12-12 16:51:24 +02:00
Jordan Petridis bc57c33491 Change episode table schema. 2017-12-09 17:38:46 +02:00
Jordan Petridis b528c48e3b Run rustfmt. 2017-12-09 05:57:16 +02:00
Jordan Petridis 276169e43d Minor cleanup of nested match/if let statements into using and_then(). 2017-12-04 14:32:16 +02:00
Jordan Petridis 74a1aae168 Upgraded diesel to 0.99 and switched from the git master into crated.io.
Also did a cargo upgrade of all the dependancies.
Notable upgrades are r2d2, lazystatic 1.0, loggerv 0.6 and rss 1.2
2017-12-02 01:39:28 +02:00
Jordan Petridis 3707b70b41 Document Episode Model. 2017-11-28 08:25:04 +02:00
Jordan Petridis d81f9c6ad7 Fixed stable unit tests. 2017-11-28 04:42:15 +02:00
Jordan Petridis cb65782829 Extended the NewModel builder and added a bunch of unit tests. 2017-11-27 04:32:21 +02:00
Jordan Petridis 7eff93ecf1 Remove rand from the downloader. 2017-11-26 03:47:43 +02:00
Jordan Petridis f83f894e44 Replaced pool.get().unwrap() statements with get()?. 2017-11-25 03:29:06 +02:00
Jordan Petridis 7498a37f68 Fixed unit test. 2017-11-25 02:19:16 +02:00
Jordan Petridis 62da8bbb52 Use source_id as the unique identifieble field for the podcast table. 2017-11-25 01:56:10 +02:00
Jordan Petridis aa7c493e81 hammond-data/src/feed.rs api changes. 2017-11-23 18:48:41 +02:00
Jordan Petridis 02b27d33b6 Move XDG global variables into their own module. 2017-11-22 21:07:21 +02:00
Jordan Petridis 31328355b1 Methods renaming, Api changes. 2017-11-22 06:25:34 +02:00
Jordan Petridis 9bc6df2cba Made Disel NewModels private. 2017-11-22 05:50:25 +02:00
Jordan Petridis ee7c5ca26e Use bail! instead of panic!. 2017-11-20 22:23:04 +02:00
Jordan Petridis 47b32ac000 Removed the Database type alias. 2017-11-19 22:39:51 +02:00
Jordan Petridis 052988a2b1 Update dependancies. 2017-11-19 18:14:56 +02:00
Jordan Petridis 1ec4370c7b Moved Database type-alias into hammond-data/src/lib.rs. 2017-11-17 21:37:55 +02:00
Jordan Petridis cfb876e006 Split hammond-data/models into sub modules. 2017-11-15 17:42:22 +02:00
Jordan Petridis a286014a62 Refactored indexing functions of the Diesel models. 2017-11-14 17:56:28 +02:00