Commit graph

31 commits

Author SHA1 Message Date
ef356986a6
Add some type hints to ytapi. 2021-11-07 18:50:34 -08:00
8821491ff3
Log the total number of snippets retrieved. 2021-10-25 14:00:12 -07:00
c22f20fcf8
Use worms, add more ycli functions. 2021-10-15 21:00:04 -07:00
491992b606
Some linting. 2021-08-20 22:59:17 -07:00
d185a3f451
Update requirements.txt. 2021-04-04 11:17:11 -07:00
75a17a6361
Improve usage of generators in ytapi. 2021-03-31 19:35:13 -07:00
fa363a33c7
Improve handling of livestreams, premieres with live_broadcast attr. 2021-03-31 17:24:57 -07:00
9f5726e5d3
Log fetched snippets at level loud. 2021-03-31 14:35:51 -07:00
5a868dc7bd Use voussoirkit.gentools for chunk_generator. 2020-11-15 22:07:41 -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
4f6080859a Synchronize Etiquette and YCDL. 2020-09-22 02:59:17 -07:00
720db06d4c Set cache_discovery=False to get rid of that console warning. 2020-08-20 13:16:55 -07:00
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
299ea6b579 Simplify this useless two-step assignment. 2020-08-12 11:17:30 -07:00
3f3eda58b1 Move logging basicconfig effort to frontmost application layer. 2020-08-12 11:17:10 -07:00
323b2ead54 Use isodate instead of strptime to parse published date. 2020-08-11 23:20:26 -07:00
795aacb044 Add ChannelNotFound exception. 2020-07-20 19:03:53 -07:00
de5992c906 Alphabetize methods. 2020-07-01 16:10:48 -07:00
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
e1eb53a114 Add method get_user_uploads_playlist. 2020-07-01 15:54:40 -07:00
3ff5de67bc Remove redundant _iter_playlist, just use get_playlist_videos. 2020-07-01 15:52:59 -07:00
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
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
e165b16edc Rstrip the "Z" off of timestamps.
This only started occuring recently.
2020-05-06 21:23:24 -07:00
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
1a7662b6bd Add method get_playlist_videos. 2020-03-17 20:53:10 -07:00
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
420a14bb88 Add a logger to ytapi. 2020-01-06 22:03:18 -08:00
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
ba1961349c It's been a while 2017-10-08 21:39:07 -07:00
Renamed from ytapi.py (Browse further)