about summary refs log tree commit diff stats
path: root/old/url.old/mod.rs (unfollow)
Commit message (Collapse)Author
2024-08-23fix(cli): Always log with a verbosity of at least WARNBenedikt Peetz
This ensures that warnings actually reach the user. And the `--quite` flag can still be used to silence all output.
2024-08-23fix(treewide): Actually use the values from the configBenedikt Peetz
2024-08-23feat(watch/events): Add further understood script-messagesBenedikt Peetz
They make it possible to force check for new available videos and to remove the currently playing video from the playlist to free cache space (otherwise you would have to quit the whole playlist).
2024-08-23fix(storage/setters): Enforce status invariantsBenedikt Peetz
2024-08-23feat(treewide): Use a configuration fileBenedikt Peetz
This allows use to avoid duplication of default values in the codebase and obviously also facilitates changing these without having to re-compile.
2024-08-23refactor(yt_dlp): Also move the `crates` subdirectoryBenedikt Peetz
2024-08-23refactor(cli): Replace the byte parser with the one from the `bytes` crateBenedikt Peetz
2024-08-23fix(yt_dlp/lib): Standardize the formatting of bytes with the new `bytes` crateBenedikt Peetz
2024-08-23feat(crates/bytes): InitBenedikt Peetz
2024-08-23refactor(libmpv2): Move to the `crates` directoryBenedikt Peetz
2024-08-23chore(yt_dlp/progress_hook): Also consider the `total_bytes_estimate` fieldBenedikt Peetz
2024-08-23chore(yt_dlp/info_json): Add further fieldsBenedikt Peetz
2024-08-23refactor(storage/downloader): Remove unused `get_next_video_watchable`Benedikt Peetz
2024-08-23fix(storage/downloader): Sort the next videos to be downloaded like in the ↵Benedikt Peetz
selection file
2024-08-23feat(cli): Add an explicit `subs export` subcommandBenedikt Peetz
This subcommand is functionally identical with the previous `subs list --url`, but semantically it improves the situation, by having symmetrical `import` and `export` subcommands.
2024-08-22fix(storage/schema.sql): Tell SQLite to perform type-checkingBenedikt Peetz
Otherwise, SQLite tries to “coerce” types into fitting in the “preferred” type of the table. Now SQLite actually refuses to accept a type mismatch.
2024-08-22refactor(storage/getters): Inline an Option re-creation with `map`Benedikt Peetz
2024-08-22fix(storage/setters): Avoid writing a literal "NULL" string into the dbBenedikt Peetz
Sqlx supports turning an option to a NULL insertion, but trying to insert a string, containing "NULL", will result in this literal string being written to the database.
2024-08-22refactor(storage): Make all URL parsings panicBenedikt Peetz
These URLs should be checked *before* they are written to the database, thus being unable to decode them after they've been read from the database is an application bug and not a user input issue.
2024-08-22refactor(cli): Remove the useless `concurrent_processes` flag from `update`Benedikt Peetz
With the new `update_raw.py` script, supporting this flag becomes nearly impossible. Thus, we're simply removing it.
2024-08-22fix(update): Propagate the logging options to the `update_raw.py` scriptBenedikt Peetz
2024-08-22fix(package): Actually provide the blake3 library to the python interpreterBenedikt Peetz
2024-08-22chore(version): v1.0.0 v1.0.0Benedikt Peetz
2024-08-22chore(treewide): Add missing licenseBenedikt Peetz
2024-08-22fix(yt_dlp/info_json): Add further missing fieldsBenedikt Peetz
2024-08-22fix(watch/events): Also mark a video inactive on the stop eventBenedikt Peetz
2024-08-22fix(constants): Don't set a default subtile languageBenedikt Peetz
Always fetching a subtitle file is rather counterproductive.
2024-08-22fix(update): Correctly treat a success as a successBenedikt Peetz
2024-08-22fix(subscriptions/add): Ignore the trailing slash on URLsBenedikt Peetz
2024-08-22fix(storage/get_videos): Also order by `publish_date`Benedikt Peetz
All freshly added videos have a priority of 0. To ensure that they are still ordered, also sort by `publish_date`.
2024-08-22feat(select/file): Allow `--priority` argument to all functionsBenedikt Peetz
This allows setting a priority even on picked videos.
2024-08-22feat(download): Support limiting the downloader by maximal cache sizeBenedikt Peetz
2024-08-22test(benches/update): InitBenedikt Peetz
2024-08-22perf(raw_update.py)!: Don't fetch entries that are already in the databaseBenedikt Peetz
Testing has resulted in a speed-up of circa 3400% (updates of 1 subscription (which is already fully stored) are now ca. 1 sec from previously 34 sec). BREAKING CHANGE: The extractor hash is now calculated from the `id` and not the `webpage_url` field requiring a complete re-fetch of all stored videos. ```bash $# export your subscriptions: $ yt subs list --urls > subs.txt $# remove the old database $ mv ~/.local/share/yt/videos.sqlite{,.old} $# reimport the subsciptions $ yt subs import subs.txt $# refetch all videos $ yt upadate ```
2024-08-22build(package): Include python `blake3` dependencyBenedikt Peetz
2024-08-21chore(version): v0.1.3 v0.1.3Benedikt Peetz
2024-08-21fix(yt_dlp/info_json): Add another missing attributeBenedikt Peetz
2024-08-21chore(version): v0.1.2 v0.1.2Benedikt Peetz
2024-08-21fix(yt_dlp/info_json): Add further fieldsBenedikt Peetz
2024-08-21docs(yt_dlp/lib): Improve some commentsBenedikt Peetz
2024-08-21build(flake): Wrap the yt binary with the required dependenciesBenedikt Peetz
2024-08-21chore(version): v0.1.1 v0.1.1Benedikt Peetz
2024-08-21fix(select/duration): Also parse `[No Duration]` as durationBenedikt Peetz
2024-08-21fix(update): Use the `raw_update.py` from the pathBenedikt Peetz
2024-08-21build(flake): Add package definitionBenedikt Peetz
2024-08-21style(treewide): Reformat v0.1.0Benedikt Peetz