diff options
author | Wolfgang Müller | 2024-09-19 20:26:24 +0200 |
---|---|---|
committer | Wolfgang Müller | 2024-09-19 20:26:24 +0200 |
commit | 06a4bcc74f8a9deaa7b28f5cca1982caf83b6db3 (patch) | |
tree | 6346461b4de6fcd8ab5ef9af9f1bd63f24c7d5aa /.editorconfig | |
parent | ae449a426f047c3574749b6ae1f5d2f5c28ad640 (diff) | |
download | later-06a4bcc74f8a9deaa7b28f5cca1982caf83b6db3.tar.gz |
Move functionality into classes
This should disentangle the logic a bit and make the entire code base
easier to work with. The watch_later entries are now kept in a
WatchLaterEntry dataclass which supports pretty-printing with __repr__.
Fetching of titles is now done through a dedicated TitleMap class which
imports yt_dlp as late as possible, speeding up printing of entries that
don't need to be updated and avoiding the import entirely if everything
can be fetched from cache. Otherwise there should not be any functional
change.
Diffstat (limited to '.editorconfig')
0 files changed, 0 insertions, 0 deletions