aboutsummaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeLines
* Have entries() continue early if an entry is not a fileWolfgang Müller2024-09-19-10/+12
| | | | | This makes this already quite deeply nested function a bit easier to read.
* Parse entries when collectingWolfgang Müller2024-09-19-12/+13
| | | | | | | The piece of logic that parses the name of the watch_later entry and makes sure that no redirect entries are processed can easily be moved into the entries() generator. This way we don't even generate items that we end up skipping anyway.
* Move YTDLPLogger to beginning of fileWolfgang Müller2024-09-19-11/+11
|
* Use function to determine XDG directoriesWolfgang Müller2024-09-19-7/+9
| | | | We do the same thing here twice, so this seems worth it.
* lint: Remove newline from importsWolfgang Müller2024-09-19-1/+0
|
* Use os.makedirs instead of os.mkdirWolfgang Müller2024-09-19-4/+2
| | | | | This will make sure that the whole directory structure will be created if missing and saves us a try/except block with exist_ok.
* Add .editorconfigWolfgang Müller2024-09-14-0/+12
|
* Show video titles using yt-dlpJuhani Krekelä2024-09-12-6/+104
| | | | | | | | | | Different video URLs can be easy to confuse in the output of later(1). Look up titles for them in $XDG_CACHE_HOME/later/title.json and add an option, --update-titles, to populate the file automatically using yt-dlp. The title is prefixed with a hash sign (#) in order to better separate it visually from the URLs, as well as to allow easier copypasting of output onto an mpv command line.
* Change xdg_config_home to xdg_state_homeJuhani Krekelä2024-09-11-3/+3
|
* Initial commitWolfgang Müller2024-09-10-0/+92