Commit graph

145 commits

Author SHA1 Message Date
b46dc1feb1 Use mark_state instead of direct sql so that object state updates. 2023-08-20 16:08:38 -07:00
4de461dbf1 Ignore youtube shorts on a per-channel basis. 2023-08-09 23:24:47 -07:00
4d7b396e0c
Add column last_refresh to channels. 2022-11-11 15:56:33 -08:00
1c4d13cd2f
Add type annotations to ytrss. 2022-10-29 22:21:11 -07:00
834c25882f
Update worms, insert data renamed to pairs. 2022-08-13 07:25:29 -07:00
2aa23ac2aa
Do all the non-rss refreshes last. 2022-07-20 18:04:36 -07:00
ca353e9977
Update to new worms version. 2022-07-20 18:04:35 -07:00
82a6739768
Use worms select_column. 2022-06-03 19:54:52 -07:00
b3390940a5
Use worms select_one_value. 2022-06-03 19:54:35 -07:00
efcc224a50
Use sql.row_factory = sqlite3.Row. 2022-03-15 18:19:32 -07:00
ec0bf50490
Remove pragma count_changes, which is deprecated. 2022-03-15 18:12:10 -07:00
5bf6fe0cd7
Fix handling of premiered videos in ycdldb.refresh_all. 2022-01-26 21:20:08 -08:00
0239ae6b76
Use absolute_path instead of Path object in log statement. 2022-01-14 23:42:15 -08:00
f35a2c7750
Remove double space. 2022-01-13 17:22:11 -08:00
8840599be0
Add a few more docstrings. 2021-12-19 19:20:58 -08:00
ecf96d531a
Improve use of SQL selecting livestream video ids. 2021-12-19 19:07:13 -08:00
03b88ec5f8
Improve documentation around Channel.refresh. 2021-12-19 19:06:40 -08:00
89621d2976
Remove unnecessary use of .absolute_path thanks to fspath. 2021-12-07 12:43:17 -08:00
5076efac45
Pass raise_for_missing=True to worms. 2021-11-10 23:43:57 -08:00
5929a7689c
Let download_video take download_directory, queuefile overrides. 2021-11-10 22:19:41 -08:00
63c332ea52
Add method get_videos_by_id. 2021-11-07 18:51:49 -08:00
ef356986a6
Add some type hints to ytapi. 2021-11-07 18:50:34 -08:00
a03ee5de90
Don't bother calling ytapi.get_videos if no new ids from RSS. 2021-10-31 12:51:17 -07:00
87407d39c1
Return the queuefile from download_video. 2021-10-25 14:10:11 -07:00
b33a01065e
Don't bother trying to iterate refresh_ids if it's empty. 2021-10-25 14:04:08 -07:00
6aeff3bc9f
Only recheck premieres / lives for the channel being refreshed. 2021-10-25 14:02:58 -07:00
6370e36c84
Log these objects using their str instead of .id. 2021-10-25 14:02:21 -07:00
8821491ff3
Log the total number of snippets retrieved. 2021-10-25 14:00:12 -07:00
d08415eaad
Add assert_valid_state so I can stop copypasting this code. 2021-10-25 13:20:05 -07:00
c22f20fcf8
Use worms, add more ycli functions. 2021-10-15 21:00:04 -07:00
ca94ecce46
Match configlayers update. 2021-10-01 14:10:36 -07:00
86c0530b17
Make these arguments keyword-only. 2021-09-30 19:43:26 -07:00
5f5d8141f1
Move logic to separate function normalize_autorefresh. 2021-09-15 18:55:52 -07:00
bf7407daa2
Add call to download_directory.correct_case. 2021-09-15 18:52:46 -07:00
ad306ae771
Make better use of vlogging. 2021-09-08 19:31:56 -07:00
6068d644b9
Add autorefresh to Channel to include/exclude in refresh_all loop. 2021-09-05 01:26:34 -07:00
0418cae57a
Move truthystring to stringtools. 2021-09-05 01:22:21 -07:00
54082e82aa
Log the exceptions that cause RSSAssistFailed. 2021-09-05 00:08:58 -07:00
b88e816347
Import lxml immediately so ImportErrors can be found. 2021-09-04 23:53:06 -07:00
2ad85ad69a
Add Channel.set_download_directory. 2021-09-01 23:37:43 -07:00
38299db102
Add Channel.normalize_queuefile_extension. 2021-09-01 23:36:28 -07:00
46be4f8cff
Improve normalize_db_row by making it more strict on types. 2021-08-26 21:32:44 -07:00
491992b606
Some linting. 2021-08-20 22:59:17 -07:00
c74b9523e4
Don't sort channels from get_channels, use get_things. 2021-06-04 20:35:17 -07:00
ff5fcca548
Log exact path of queuefile while creating it. 2021-05-24 16:21:28 -07:00
d185a3f451
Update requirements.txt. 2021-04-04 11:17:11 -07:00
10f67cae4b
Reinstate this line as log.loud. 2021-04-02 18:31:26 -07:00
451285ba0b
Fix nameerror exc. 2021-04-02 18:31:13 -07:00
75a17a6361
Improve usage of generators in ytapi. 2021-03-31 19:35:13 -07:00
1626e13c08
Replace newline with colon in exception str. 2021-03-31 19:34:21 -07:00