27 Commits

Author SHA1 Message Date
James Taylor
66746d0ca8 Watch: Add padding in description box and urlize links 2019-12-20 21:00:10 -08:00
James Taylor
4b6efb0e0b Watch: display comment count and whether comments are disabled 2019-12-20 20:52:01 -08:00
James Taylor
0bc2e43822 Watch: Add border around badges such as unlisted badge
Especially for the light theme
2019-12-20 18:54:24 -08:00
James Taylor
b4406df9cf Merge branch 'modular-data-extract'
Commits in this branch are prefixed with "Extraction:"
This branch refactors data extraction. All such functionality has been moved to the yt_data_extract module.
Responses from requests are given to the module and it parses them into a consistent, more useful format.
The dependency on youtube-dl has also been dropped and this functionality has been built from scratch for these reasons:
(1) I've noticed youtube-dl breaks more often than invidious (which uses watch page extraction built from scratch) in response to changes from Youtube, so I'm hoping what I wrote will also be less brittle.
(2) Such breakage is inconvenient because I have to manually merge the fixes since I had to make changes to youtube-dl to make it do things such as extracting related videos.
(3) I have no control over error handling and request pooling with youtube-dl, since it does all the requests (these would require intrusive changes I don't want to maintain).
(4) I will now be able to finally display the number of comments and whether comments are disabled without making additional requests.
2019-12-19 21:33:54 -08:00
James Taylor
98777ee825 Extraction: Rewrite item_extraction for better error handling and readability, rename extracted names for more consistency 2019-12-18 19:39:16 -08:00
James Taylor
ee0a118a6c Extraction: Fix thumbnail and remove badges on related videos 2019-12-17 21:52:31 -08:00
James Taylor
45a4ab5ace Extraction: Detect limited state and fix false detection as unlisted 2019-12-17 20:58:15 -08:00
James Taylor
ecc1ce42b8 Extraction: Display that video is age-restricted 2019-12-12 22:13:37 -08:00
James Taylor
79d9a18f81 Extraction: return and display any errors preventing video playback 2019-11-22 14:56:53 -08:00
James Taylor
4c07546e7a Extraction: Replace youtube-dl with custom-built watch page extraction 2019-10-17 19:58:13 -07:00
James Taylor
652cef15ec Watch page: Background color on video when scrubbing bar larger than video 2019-09-09 20:40:38 -07:00
James Taylor
e9b16ef71f Layout: Add themes 2019-08-25 16:08:08 -07:00
James Taylor
3d911e4987 Layout: Theater layout: Expand video width across page only as necessary based on length of video 2019-08-24 17:55:14 -07:00
James Taylor
cb5f36581d Layout: add option to hide comments/related vids by default but click to show using <details> 2019-08-24 16:45:01 -07:00
James Taylor
943e1cd751 Layout: Make downloads click-to-show instead of hover-to-show using <details> element 2019-08-24 14:25:11 -07:00
James Taylor
d9fbf82bb2 Layout: Add option to use 720p resolution 2019-08-24 13:35:11 -07:00
James Taylor
fa2fa7fe16 Layout: Add theater mode 2019-08-24 12:43:58 -07:00
James Taylor
f2eb354197 Layout: Simplify color scheme 2019-08-24 11:59:23 -07:00
James Taylor
d9517a3322 Layout: Put related videos below video when page is too small 2019-08-23 19:24:42 -07:00
James Taylor
102c21132a Layout: simplify watch page space distribution on edges 2019-08-23 15:37:40 -07:00
James Taylor
85572c94de Layout: refactor item system to be more maintainable, add vertical item type 2019-08-23 14:48:00 -07:00
James Taylor
74cf3b2135 Use variable to set title on base template instead of block 2019-07-21 22:50:57 -07:00
James Taylor
8cad77ad0d Convert comments to flask framework 2019-07-19 22:27:10 -07:00
James Taylor
b89d90a0d3 watch_page: refactor music list into flask template 2019-07-07 17:29:25 -07:00
James Taylor
02962df052 Refactor watch page related videos to use item rendering macro 2019-06-21 21:59:33 -07:00
James Taylor
1ba2411862 Inherit from base template 2019-06-17 20:50:00 -07:00
James Taylor
2db58930a6 Convert watch page to flask framework 2019-06-16 16:16:03 -07:00