summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/helper/path.py
Commit message (Collapse)AuthorAgeFilesLines
* fix(path): 🐛 add **kwargs support to formatting functionsRobert Honz2025-10-171-18/+9
| | | | | * Updated multiple formatting functions to accept **kwargs for better flexibility. * Ensures consistent handling of additional parameters across artist, title, name, number, date, metadata, and volume formatting.
* feat(path): ✨ add customizable delimiters for artist names in file pathsRobert Honz2025-10-171-15/+65
| | | | | | * Updated `format_path_media` and related functions to accept customizable delimiters for artist names. * Modified `Settings` class to include `filename_delimiter_artist` and `filename_delimiter_album_artist`. * Enhanced `name_builder_artist` and `name_builder_album_artist` functions to utilize the new delimiters.
* fix(path): 🐛 correct filename sanitization logicRobert Honz2025-09-251-1/+3
| | | | | * Adjusted the logic in `path_file_sanitize` to ensure the sanitized filename correctly appends the file suffix after the placeholder. * This change prevents potential filename issues when handling file paths.
* feat: add support for formatting album release datesRobert Honz2025-08-121-2/+26
| | | | | | | | | | This update introduces support for handling date-related format strings, improving the flexibility of media metadata formatting. - ✨ **Feature**: Adds `_format_dates` function to handle date-related strings like `album_date`. - 🛠️ **Enhancement**: Refactors `_format_durations` by isolating date-related logic into a new function. - 📅 **Improvement**: Supports formatting `album_year` and `album_date` with proper checks for `Album` and `Track` types. This improvement enhances media metadata formatting capabilities for more detailed date information.
* refactor(helper): improve ID format handling logicRobert Honz2025-08-121-2/+4
| | | | | | | | | | Refactors the ID formatting logic to extend support for `video_id` and improve clarity. - ✨ **Feature:** Adds support for `video_id` in ID formatting logic. - ♻️ **Refactor:** Updates conditional checks for better readability. - 🔧 **Metadata:** Updates `poetry.lock` content hash. These changes enhance functionality and maintainability by accommodating additional media types.
* feat: ✨ Enhance media formatting functionsRobert Honz2025-07-011-123/+281
| | | | | | | * Added detailed docstrings for `format_str_media` and related helper functions. * Refactored media formatting logic to utilize dedicated functions for better readability and maintainability. * Improved error handling in media formatting. * Updated `file_unique_suffix` function to correct the spelling of `separator`.
* ✨ Add docstrings for path-related functions and improve path sanitization ↵Robert Honz2025-07-011-72/+117
| | | | logic.
* 🛠️ Windows drives won't get sanitized anymore. Fixes #474Robert Honz2025-07-011-1/+2
|
* 🛠️ Directory length limit is checked and adapted correctly now. Fixes ↵Robert Honz2025-06-301-4/+27
| | | | #447 & #436
* ✨ will only return the first artists. will return all album artists. ↵Robert Honz2025-06-291-0/+2
| | | | Fixes #439
* ✨ Implemented playlist track position naming (`{list_pos}`) for downloads. ↵Robert Honz2025-04-021-8/+32
| | | | Fixes #165
* 🛠️ Fixed and simplified path_file_sanitize method.Robert Honz2025-03-271-50/+35
|
* 👷 Code style.Robert Honz2025-03-241-2/+1
|
* 🛠️ Fixed: Skip file is not ignored anymore. Filenames will not be ↵Robert Honz2025-03-241-12/+25
| | | | uniquified by default.
* 🛠️ Fixed: Wrong path build after file sanitization on Windows. Fixes ↵Robert Honz2025-03-241-1/+1
| | | | #389 & #358
* 👷 Refactored path file split method.Robert Honz2025-03-241-20/+13
|
* 🛠️ Fixed path length sanitation. Also refactored the path helper to use ↵Robert Honz2025-02-281-53/+77
| | | | `pathlib.Path` instead of str. Fixed #358
* Add isrc to path formattingflesnuk2025-02-191-0/+3
|
* ✨ Album track number padding can be set. Fixes #142Robert Honz2024-12-151-6/+13
|
* 🛠️ Fixed track volume number gets omitted on CDn-1. Fixes #151Robert Honz2024-12-131-2/+2
|
* 🛠️ Fixed `{album_artist}` tag replacement on track level. Fixes #239Robert Honz2024-11-171-2/+1
|
* ✨ Do not process tracks with missing segments. Refactored some method to ↵Robert Honz2024-11-131-6/+6
| | | | `pathlib.Path`.
* ✨ Track segments are downloaded simultaneously, which results in a huge ↵Robert Honz2024-11-121-0/+21
| | | | speed increase. Some refactoring work has been done.
* Fix: `{album_artist}` is now emitting only the album artist is only replaced ↵Robert Honz2024-11-101-1/+2
| | | | on an Album level. Fixes #200
* `{track_volume_num_optional}` and `{track_volume_num_optional_CD}` added for ↵Robert Honz2024-11-101-0/+8
| | | | an optional sub CD folder structure. Fixes #151
* Fix: Replace `{artist_name}` only on Track / Video basis. Fixes #171Robert Honz2024-11-101-4/+5
|
* Respect user specified config directory. Fixes #141Robert Honz2024-11-091-1/+4
|
* Respect user specified config directory. Fixes #141Robert Honz2024-11-091-1/+1
|
* ✨ `{album_id}` can be used for track naming. Fixes #123Robert Honz2024-06-161-0/+2
|
* ✨ Can download artists. Fixes #102Robert Honz2024-05-221-1/+1
|
* ✨ Exception logging on filename sanitization and download watcher.Robert Honz2024-04-221-1/+2
|
* 👷 Hacky workaround marked with TODO.Robert Honz2024-04-211-1/+1
|
* ✨ `pathvalidate` library is currently not able to shorten filenames. ↵Robert Honz2024-04-211-3/+11
| | | | Implemented a hacky workaround for now. Fixes #91
* 👷 Migrated media constants to `tidalpi`.Robert Honz2024-04-201-1/+2
|
* 🛠️ Naming placeholder to str conversion fix.Robert Honz2024-04-201-5/+5
|
* ✨ For albums you can now use `album_num_volumes` as a placeholder and for ↵Robert Honz2024-04-201-0/+6
| | | | tracks `track_volume_num`. Fixes #90
* ✨ `album_id` can be used as a placeholder for album namings. `album_year` ↵Robert Honz2024-04-201-1/+6
| | | | can also be used within track namings. Fixes #85
* ✨ Explicit versions can be tagged with filename placeholder ↵Robert Honz2024-04-201-0/+6
| | | | `track_explicit` and `album_explicit`. Fixes #82
* 👷 Switch to `match` function for placeholder replacement.Robert Honz2024-04-051-66/+67
|
* 👷 Cleanup of `. value` usage for Enum access.Robert Honz2024-04-021-1/+1
|
* 🛠️ Duplicates check now detects all files correct.Robert Honz2024-04-021-2/+1
|
* ✨ Include dafault album image in build.Robert Honz2024-04-011-0/+10
|
* ♻️ `ffmpeg` will be checked against the path in config.Robert Honz2024-03-291-8/+0
|
* ✨ Removed deprecated code.Robert Honz2024-03-291-18/+0
|
* ✨ Downloader will check for FFmpeg before converting video files.Robert Honz2024-03-221-0/+8
|
* 🧑‍🔧️ GUI buttons correctly prefixed with `pb`.Robert Honz2024-03-221-1/+1
|
* ✨ Adds 'album_artist' to the folder names. Fixes #51Robert Honz2024-03-191-1/+3
|
* ✨ Added append as a new option for skip existing. 🛠️ Fixed skip ↵Robert Honz2024-03-191-13/+45
| | | | existing ignore extension.
* ✨ The full track name will be used as file title.Robert Honz2024-03-141-2/+3
|
* ✨ Track media items will be re-created with album information. Path format ↵Robert Honz2024-03-131-5/+6
| | | | refactored.