voussoir
5d000f87c3
Fix DatabaseOutOfDate exception using wrong variable names.
2020-07-01 15:59:49 -07:00
voussoir
215a46591e
Remove support for username argument in get_user_videos.
...
Just get their id first with get_user_id.
2020-07-01 15:56:44 -07:00
voussoir
e1eb53a114
Add method get_user_uploads_playlist.
2020-07-01 15:54:40 -07:00
voussoir
3ff5de67bc
Remove redundant _iter_playlist, just use get_playlist_videos.
2020-07-01 15:52:59 -07:00
voussoir
f2e8aeb568
Improve these docstrings.
2020-07-01 15:47:27 -07:00
voussoir
d0f041c694
Let database upgrader functions take actual ycdldb, not plain sql.
...
Like Etiquette. This gives us access to the ycdl methods rather
than being limited to just sql operations.
2020-07-01 15:47:15 -07:00
voussoir
6919f39e81
Rearrange upgraders in ascending order.
2020-07-01 15:25:29 -07:00
voussoir
bacdad07a6
Add docstring to bind_box_to_button, and some small linting.
2020-06-30 20:32:29 -07:00
voussoir
6a41b18ba7
Dedent by using early returns.
2020-06-28 17:07:12 -07:00
voussoir
3044907264
Use dot notation instead of subscript on response.
2020-06-28 16:57:32 -07:00
voussoir
1e4f4441bb
Use dot notation instead of subscript.
2020-06-28 16:55:37 -07:00
voussoir
fcbb128f47
Add attribute "completed" to response object.
2020-06-28 16:47:54 -07:00
voussoir
27219d74c4
Add spinner when setting automark.
2020-06-26 20:59:55 -07:00
voussoir
8d28484240
Add multicolumn index on download, published.
...
This helps generate the "sub box" page more quickly, which
was previously using temp b-tree for sorting.
2020-06-24 22:28:57 -07:00
voussoir
226bc03bff
Add methods Channel.delete and Video.delete.
2020-06-18 09:01:05 -07:00
voussoir
3f9565b874
Add video id to this print statement.
2020-06-17 15:55:30 -07:00
voussoir
e3abf5f39d
Fix automark:download by marking state after calling download.
...
The previous order of operations was wrongly triggering the
"video already downloaded" check in ycdldb.
2020-06-17 15:54:59 -07:00
voussoir
f1e80dac94
Add spinners to channel refresh buttons.
2020-06-17 14:15:50 -07:00
voussoir
235bc2501d
Add spinner.js, synced with Etiquette.
2020-06-17 14:15:13 -07:00
voussoir
dd59fd2c36
Import common.js before api.js.
2020-06-17 14:13:33 -07:00
voussoir
e420d92f6c
Add more docstring to button_with_confirm data-onclick parameter.
2020-06-17 14:09:02 -07:00
voussoir
d2d8a69d39
Synchronize Etiquette common.js and YCDL common.js.
2020-06-17 13:38:01 -07:00
voussoir
b3d3e4ae6c
Use .get instead of [] to handle missing some attributes.
...
Some of these are ones I've experienced first-hand, others are
defensive because I realized I don't know what kind of weird
things might be out there. Can do more if necessary.
2020-06-17 08:40:18 -07:00
voussoir
ff1b043279
Arrange the state filters horizontally instead of vertically.
...
The "New videos are" dropdown and the sorting options are both
horizontal, so this one being vertical stuck out badly visually.
This is a little better.
2020-06-10 23:09:17 -07:00
voussoir
b467304ea8
Add instructions for getting youtube API key to readme.
2020-06-10 23:05:17 -07:00
voussoir
9c629d53b1
Remove some useless functions from common.js.
2020-06-04 19:04:51 -07:00
voussoir
66f499c232
Move functions mark_state, start_download to api.js.
2020-06-03 13:01:53 -07:00
voussoir
d996101152
Move function set_automark to api.js.
2020-06-03 13:01:28 -07:00
voussoir
ba1f17da75
Move function add_channel to api.js.
2020-06-03 13:00:44 -07:00
voussoir
1f2c43278a
Move function refresh_all_channels to api.js.
2020-06-03 13:00:16 -07:00
voussoir
ab1a2364be
Move function refresh_channel to api.js.
2020-06-03 12:59:29 -07:00
voussoir
b76be18b6c
Add CHANNEL_ID variable to js via jinja.
2020-06-03 12:58:33 -07:00
voussoir
415acdf7d1
Add api.js.
2020-06-03 12:54:20 -07:00
voussoir
d0a0a87b43
Add function common.refresh.
2020-06-03 12:28:09 -07:00
voussoir
113a92fb5b
Move function html_to_element to common.js.
2020-06-03 12:26:25 -07:00
voussoir
2ba9eb8df2
Add docstring for init_atag_merge_params.
2020-06-03 12:21:23 -07:00
voussoir
8fcba8f05b
Add more attributes to ytapi.Video from API data.
...
Not actually used by the application at the moment, but in the
interest of making this particular file a better representation
of the API, this felt like an easy change that I can take advantage
of later now that I have it.
2020-05-26 22:05:08 -07:00
voussoir
dd99ddc10f
Remove youtube_dl_function argument, but add configurable extension.
...
In order to improve the configurability of the queuefile creation,
which I can't really do when relegating that to a possibly third-party
function with only the video id as argument, I've decided I want to
go all in on the queuefile as the output of ycdl. Actually downloading
the video is best left to another tool designed for the task.
Any third-party downloading function would always introduce the
possibility of network errors and crashes, ruining the call stack
of ycdldb.download_video for no good reason.
2020-05-24 21:07:14 -07:00
voussoir
bd27a910e1
Fix bugs introduced by new http response["data"] format.
2020-05-21 22:20:50 -07:00
voussoir
3e27e6e2e8
Add separate API endpoint for add_channel, apply to web ui.
...
Previously, the "add channel" box was just calling refresh, which
implicitly adds the channel. This adds a separate endpoint for
add_channel, and as a bonus the web ui will navigate you to the
channel after it has been loaded.
2020-05-21 22:16:02 -07:00
voussoir
480eeb9ac3
Update common.js request, get, post functions like Etiquette.
2020-05-21 20:29:43 -07:00
voussoir
5c4b2e9d21
Add jsonify.py.
2020-05-21 20:28:52 -07:00
voussoir
21af1576c2
Move endpoints into separate files like Etiquette.
2020-05-21 20:04:02 -07:00
voussoir
13a72ec7fc
Move CSS and JS into separate folders under static.
2020-05-21 19:43:45 -07:00
voussoir
55d0bb463c
Add utility merge_db.py.
2020-05-21 17:33:59 -07:00
voussoir
57d87560a4
Add interface for setting automark state.
2020-05-21 17:28:34 -07:00
voussoir
0c5823cbeb
Indicate automark state on /channels listing.
2020-05-21 17:26:12 -07:00
voussoir
34f24d9940
Let default state of automark be pending, not None.
2020-05-21 17:25:06 -07:00
voussoir
af494e2684
Rename CSS class channel_card_downloaded -> channel_card_no_pending.
2020-05-21 17:22:07 -07:00
voussoir
e165b16edc
Rstrip the "Z" off of timestamps.
...
This only started occuring recently.
2020-05-06 21:23:24 -07:00