Commit Graph

19 Commits

Author SHA1 Message Date
Daniel Schulte 17b8727f62 Use actual video publication date if availiable
This commit add usage of the video publication date in addition to the
"Added to playlist" date that was used up to this point. This improves
the video list behavior for channels which upload videos and add them to
the playlists a while before the actual publication date. Before these
published, but old in the playlist videos would show up at their upload
date instead of the publication date which is the relevant one for this
application. The "added to playlist" date is still recorded and being kept.
2021-07-18 16:39:32 +02:00
Daniel Schulte b77cd9c227 Add support for setting user defined flags per channel 2021-07-18 16:11:51 +02:00
Daniel Schulte 97f252ce28 Use correct variable type when getting HTTP response code from cURL 2021-04-06 16:42:35 +02:00
Daniel Schulte 5c43b08b03 Show video channel name column when viewing virtual channels 2020-12-06 19:40:10 +01:00
Daniel Schulte b272f64b2d Don't crash on API errors while refreshing a channel 2020-12-04 09:01:15 +01:00
Daniel Schulte d4ff88ab17 Return an empty channel object if there is no pageInfo item
This usually happens if there are API errors
2020-12-02 22:55:49 +01:00
Daniel Schulte a6fa67bf5a Show a message box when parsing the YT API response fails 2020-12-02 21:11:44 +01:00
Daniel Schulte 0f777ef139 Return number of new (unwatched) videos when fetching updates 2020-12-01 20:37:08 +01:00
Daniel Schulte 1ca53d1491 Add license 2020-11-28 15:40:46 +01:00
Daniel Schulte 00d0e6946b Don't explicitly store the video count in the channel object anymore 2020-11-26 19:44:37 +01:00
Daniel Schulte c571e5fec4 Add virtual channel for all unwatched videos 2020-11-26 13:27:11 +01:00
Daniel Schulte ac894128c6 Free data from cURL URL buffer as early as possible
Freeing it where it was causes a segmentation fault for some reason
2020-11-23 00:03:59 +01:00
Daniel Schulte acfe00ef21 Use nlohmann::json::count so it works with the version shipped in Debian 10 2020-11-22 23:44:33 +01:00
Daniel Schulte d3028c28b2 Optimize loading channel info by getting rid of nested SELECT statements 2020-11-22 21:31:26 +01:00
Daniel Schulte 87d85c60f3 Move more database stuff out of the main application file 2020-11-22 21:29:45 +01:00
Daniel Schulte e47089325d Use db_transaction helper class instead of using sqlite3_exec directly 2020-11-22 20:37:12 +01:00
Daniel Schulte 71654fe32e Move some DB stuff into separate files and create the DB if it's not there 2020-11-22 19:18:45 +01:00
Daniel Schulte 862c56d91e Add format-string version of tui_abort and use it to display SQLite errors 2020-11-22 18:13:46 +01:00
Daniel Schulte 71f9ebaed7 Initial commit 2020-11-22 16:17:14 +01:00