Commit graph

109 commits

Author SHA1 Message Date
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
e4b769336b Set ytrss log level during flask launch. 2020-11-15 17:57:07 -08:00
81bd7b9ca2 Move playlist paginator out to get a clean looking generator. 2020-11-10 17:54:21 -08:00
294ccb77d9 More logging updates. 2020-11-10 17:53:52 -08:00
648d2af560 Add rss_assisted parameter to Channel.refresh too. 2020-11-10 17:15:19 -08:00
11414b4088 Add log_level param to constructor, like Etq. 2020-11-09 20:22:54 -08:00
13e6f7e1f0 Use vlogging and a distinct logger name instead of __name__. 2020-11-09 20:20:45 -08:00
927b5a559e Add parameter rss_assisted in case you want to turn it off. 2020-11-09 16:48:17 -08:00
b7ce46bef2 Make these keyword arguments kw-only. 2020-11-09 16:32:44 -08:00
aabb6691f0 Use voussoirkit.vlogging for loud. 2020-11-09 16:30:54 -08:00
a3f69573a4 Use requests.Session to greatly speed up RSS requests. 2020-11-09 16:30:25 -08:00
1263123a03 Dedent by performing loop outside of this function. 2020-11-09 16:29:59 -08:00
c2d10da6b6 Add log line when RSS assist fails, fallback to traditional. 2020-11-09 16:23:18 -08:00
c075133bdb Fix pascal_to_loudsnakes to handle repeated caps as single term.
Previous code made "R_S_S_ASSIST_FAILED", now "RSS_ASSIST_FAILED".
2020-11-09 16:19:37 -08:00
afe82b9c98 Add a dash more logging. 2020-10-25 20:16:43 -07:00
6270665737 Add repr for channel and video. 2020-10-25 20:16:24 -07:00
08290d7c6d Fix incorrect call to log. 2020-10-25 20:16:00 -07:00
b8ab1503c3 Don't use RSS when force=True. 2020-10-23 07:44:09 -07:00