Commit graph

126 commits

Author SHA1 Message Date
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
fa363a33c7
Improve handling of livestreams, premieres with live_broadcast attr. 2021-03-31 17:24:57 -07:00
1e59d7be06
Add get_things_by_sql. 2021-03-31 14:39:10 -07:00
9f5726e5d3
Log fetched snippets at level loud. 2021-03-31 14:35:51 -07:00
7aef451b07
Add a few more docstrings about ytrss. 2021-03-31 14:35:31 -07:00
341c40ad1c
Pull out separate method Channel.refresh_uploads_playlist. 2021-03-31 14:34:39 -07:00
9a47ff00ee
Remove redundant call to mark_state during automark download. 2021-03-29 23:10:41 -07:00
18f617a45b
Clean up input type of ycdldb.download_video. 2021-03-29 23:09:04 -07:00
cfad775a0a
Move published_string to a property of the Video object. 2021-03-24 20:29:15 -07:00
68919fae24
Fix UI showing outdated cached info when items get refreshed. 2021-03-24 20:04:34 -07:00
9c5fb4fec1
Move jsonify methods to the objects instead of separate file. 2021-02-25 19:46:00 -08:00
bc8de9fc52 Add a couple more log statements. 2020-11-20 16:37:49 -08:00
2bfc1a00d4 Add log.warning when a channel fails to refresh. 2020-11-20 16:24:03 -08:00
a81af363ff Pass rss_assisted=False during traditional fallback. 2020-11-20 16:15:11 -08:00
4d80237456 Rename variables uid->channel_id, most_recent_video->video_id. 2020-11-20 16:13:14 -08:00
5a868dc7bd Use voussoirkit.gentools for chunk_generator. 2020-11-15 22:07:41 -08:00
3f32ab1664 Incorporate __name__ into ycdldb's logger. 2020-11-15 22:02:21 -08:00
b659a6da5f Wrap this long line. 2020-11-15 21:11:25 -08:00
ced16d9063 Don't traceback.print_exc. 2020-11-15 21:10:01 -08:00
bac6efe108 Use voussoirkit.stringtools for pascal_to_loudsnakes. 2020-11-15 21:08:58 -08:00