Commit Graph

23 Commits (5bedabdc662b1b625b1a534c26da287a8c72bcb8)

Author SHA1 Message Date
voussoir 5a868dc7bd Use voussoirkit.gentools for chunk_generator. 2020-11-15 22:07:41 -08:00
voussoir 81bd7b9ca2 Move playlist paginator out to get a clean looking generator. 2020-11-10 17:54:21 -08:00
voussoir 294ccb77d9 More logging updates. 2020-11-10 17:53:52 -08:00
voussoir 4f6080859a Synchronize Etiquette and YCDL. 2020-09-22 02:59:17 -07:00
voussoir 720db06d4c Set cache_discovery=False to get rid of that console warning. 2020-08-20 13:16:55 -07:00
voussoir 2da4568fb5 Create separate get_video/get_videos, plural looks better.
Not a big difference, but I didn't like the way
calling get_video([...]) looked.
2020-08-12 11:20:43 -07:00
voussoir 299ea6b579 Simplify this useless two-step assignment. 2020-08-12 11:17:30 -07:00
voussoir 3f3eda58b1 Move logging basicconfig effort to frontmost application layer. 2020-08-12 11:17:10 -07:00
voussoir 323b2ead54 Use isodate instead of strptime to parse published date. 2020-08-11 23:20:26 -07:00
voussoir 795aacb044 Add ChannelNotFound exception. 2020-07-20 19:03:53 -07:00
voussoir de5992c906 Alphabetize methods. 2020-07-01 16:10:48 -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 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 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 e165b16edc Rstrip the "Z" off of timestamps.
This only started occuring recently.
2020-05-06 21:23:24 -07:00
voussoir 2f5ec40b89 Big: Object-oriented channels & videos, match Etiquette structure.
- Channels and videos are now objects instead of just dictionaries.
- Copied Etiquette's use of cachemanager mixin to cache those objects.
- Copied Etiquette's use of sql_ methods.
- Copied Etiquette's use of namespaced javascript.
- Copied Etiquette's use of config file.
- Redid video_card css to use grid, better on mobile.
- Improved usage of URL parameters with class=merge_class.
- Wrote some actual content on readme.
2020-04-05 18:59:16 -07:00
voussoir 1a7662b6bd Add method get_playlist_videos. 2020-03-17 20:53:10 -07:00
voussoir 78ce6a6f41 Add views column and some other database changes.
And various other changes which have been sitting here for too long.
2020-01-06 22:07:25 -08:00
voussoir 420a14bb88 Add a logger to ytapi. 2020-01-06 22:03:18 -08:00
voussoir f1f12423b1 Changes
- Add thumbnails to the card (dynamically loaded)
- Add button for embedding the video
- Store video duration in db (use update script)
- Separate links for filter views with and without query.
2018-12-17 19:17:53 -08:00
voussoir ba1961349c It's been a while 2017-10-08 21:39:07 -07:00