summaryrefslogtreecommitdiff
path: root/tidal_dl_ng
Commit message (Collapse)AuthorAgeFilesLines
* change artist delimiter to semicolonMaya Doshi2025-09-291-2/+2
|
* 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.
* fix(download): πŸ› adjust cover image handling to prevent metadata size issuesRobert Honz2025-09-071-3/+11
| | | | | * Prevent writing `CoverDimensions.PxORIGIN` to metadata to avoid exceeding max file size (>16Mb). * Ensure correct cover image is used based on `cover_dimension` settings.
* feat(tidal): ✨ add url_ending_clean function and refactor URL handling. ↡Robert Honz2025-09-073-20/+38
| | | | | | | Fixes #523 * Introduced `url_ending_clean` to sanitize URLs by removing trailing "/u" or "?u". * Updated `_process_url` and GUI search logic to utilize cleaned URLs for better validation and processing.
* refactor(constants): streamline enums and enhance type annotationsRobert Honz2025-08-132-26/+36
| | | | | | | | | | | This commit refactors the codebase to improve readability and maintainability by updating enums and type annotations: - ✨ **Replaced `StrEnum` attributes**: Removed explicit type declarations for enum values to simplify the code. - πŸ› οΈ **Introduced `AudioExtensionsValid` enum**: Added a new enum for valid audio file extensions. - πŸ”„ **Enhanced type annotations**: Updated `FAVORITES` dictionary to include specific type hints for clarity. - 🧹 **Updated references**: Replaced outdated `AudioExtensions` usage with the new `AudioExtensionsValid`. These changes improve code clarity, enforce stricter typing, and enhance extensibility.
* feat: add metadata_write_url setting for conditional URL metadata writingRobert Honz2025-08-122-1/+3
| | | | | | | | | | Introduces a new configuration option, `metadata_write_url`, to control whether the media file URL is included in metadata. Updates logic to respect this setting. - ✨ **Feature**: Adds `metadata_write_url` to enable/disable URL writing in metadata. - πŸ”§ **Logic Update**: Adjusts URL handling to check the new setting before including it. - πŸ“ **Documentation**: Updates help descriptions to explain the new option. This change improves flexibility in metadata customization.
* feat: add support for original image dimension in album coversRobert Honz2025-08-122-1/+6
| | | | | | | | | | Adds functionality to handle original image dimensions (`origin`) for album cover downloads. - ✨ Added `PxORIGIN` option to cover dimension constants. - πŸ”„ Updated cover image URL logic to support original dimensions. - πŸ› οΈ Improved cover data handling for more flexible metadata embedding. This enhances customization and fidelity in cover image management.
* feat(gui): enhance app icons with multi-resolution supportRobert Honz2025-08-1210-3/+8
| | | | | | | | | | | | Improves the application's icon handling by introducing multi-resolution support, replacing a single PNG file with multiple resolution-specific icons. - ✨ **Added** multiple resolution icons (16x16, 32x32, 48x48, 64x64, 256x256, 512x512). - πŸ”„ **Updated** GUI setup to use multi-resolution icons for better scalability. - πŸ—‘οΈ **Removed** the old single-resolution `icon.png`. This update ensures better compatibility and visual quality across different platforms and screen resolutions.
* 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(metadata): add UPC support for metadata taggingRobert Honz2025-08-122-0/+7
| | | | | | | | | | | This update introduces support for handling UPCs (Universal Product Codes) in metadata processing. It ensures that UPC information is extracted, stored, and written to the appropriate metadata tags for various formats. - ✨ **Feature**: Adds UPC field to metadata handling. - πŸ› οΈ **Enhancement**: Updates metadata initialization to include UPC. - πŸ—‚οΈ **Tagging**: Implements UPC writing for supported file formats. - βœ… **Compatibility**: Ensures proper handling when UPC is absent. This improvement enhances metadata completeness and compatibility with systems requiring UPC data.
* refactor(cli): restructure callback and favorites commandsRobert Honz2025-07-031-20/+31
| | | | | | | | | | | Refactors the CLI structure to improve readability and maintainability: - ♻️ Replaces `dl_fav_group` with `app_dl_fav` for better naming consistency. - πŸ› οΈ Restructures the `callback_app` function, removing redundancy. - πŸš€ Adds a URL detection mechanism to streamline `dl <URL>` command simulation. - ✨ Enhances imports by adding `urlparse`. These updates aim to simplify the codebase and improve user experience.
* refactor(decryption): ✨ Improve docstring for `decrypt_security_token` ↡Robert Honz2025-07-031-2/+10
| | | | | | | function - Enhanced clarity of the function's purpose and usage. - Added detailed descriptions for arguments and return values.
* refactor(cli): πŸ”§ Update context handling in download functionsRobert Honz2025-07-031-16/+17
| | | | | | * Refactored `_handle_track_or_video` and `_handle_album_playlist_mix_artist` to use `typer.Context` instead of `Settings` directly. * Improved clarity by centralizing settings retrieval through context. * Adjusted `_process_url` and `_download` functions to align with the new context-based approach.
* refactor(download): πŸ”§ Improve media validation and preparation logicRobert Honz2025-07-031-56/+25
| | | | | | | * Enhanced `_validate_and_prepare_media` method to support additional media types: `Album`, `Playlist`, `UserPlaylist`, and `Mix`. * Updated media validation checks to ensure proper handling of unavailable media. * Refactored `_validate_media_instance` to streamline media instance creation and validation. * Removed redundant `_validate_and_prepare_media_collection` method for cleaner code.
* refactor(download): ✨ Enhance media collection handling and download executionRobert Honz2025-07-021-35/+195
| | | | | | * Improved validation and preparation of media collections for downloads. * Refactored download context setup and execution logic for better clarity and maintainability. * Added progress tracking for download tasks and improved handling of download futures.
* refactor(download): πŸ”§ Improve media validation and download processRobert Honz2025-07-021-100/+311
| | | | | | | | * Reordered parameters in `item` method for clarity. * Added `_validate_media_instance` method to streamline media validation. * Enhanced `_prepare_file_paths_and_skip_logic` for better file handling. * Introduced `_perform_actual_download` to encapsulate download logic. * Improved error handling and logging throughout the download process.
* refactor(download): ✨ Refactor media download logic for clarity and efficiencyRobert Honz2025-07-021-39/+137
| | | | | | | * Renamed `_download` to `_get_media_urls` for better clarity on its purpose. * Simplified URL extraction logic for `Track` and `Video` media types. * Improved progress setup and error handling in the download process. * Enhanced `_download_segments` and `_download_postprocess` methods for better readability and maintainability.
* refactor(download): ✨ Enhance docstrings for `RequestsClient` and ↡Robert Honz2025-07-021-0/+246
| | | | | | | `Download` classes * Improved documentation for methods in the `RequestsClient` and `Download` classes. * Added detailed descriptions, parameters, and return types to enhance code readability and maintainability.
* refactor(gui): ✨ Enhance type annotations and improve method signaturesRobert Honz2025-07-022-49/+49
| | | | | | * Updated type hints for various methods in and classes. * Changed list types from to for better clarity and consistency. * Improved function signatures to include return types for better type safety.
* refactor(gui): ✨ Improve filter handling in `MainWindow`Robert Honz2025-07-011-5/+7
| | | | | | * Refactored the filter extraction logic to directly use `header.filter_text(i)` for better clarity. * Updated the filters list to store tuples of index and text, enhancing the data structure used. * Ensured that the `proxy_model.filters` is set directly, simplifying the code.
* refactor(gui): ✨ Enhance type annotations and improve method signaturesRobert Honz2025-07-011-45/+45
| | | | | | * Updated type hints for several methods in `MainWindow` class to improve code clarity and type safety. * Changed return types to `None` where applicable. * Refined parameter types for better type checking and consistency.
* refactor(gui): ✨ Enhance documentation for `MainWindow` methodsRobert Honz2025-07-011-41/+451
| | | | | | * Added detailed docstrings for methods in the `MainWindow` class. * Improved clarity on parameters and return types for better understanding. * Aims to facilitate future development and maintenance.
* refactor(gui): ✨ Improve `search_result_to_model` method and extract ↡Robert Honz2025-07-011-105/+141
| | | | | | | | | helper functions * Refactored `search_result_to_model` to use type hints with `list` instead of `[*SearchTypes]`. * Added detailed docstring for better understanding of parameters and return types. * Extracted logic into helper methods for better readability and maintainability. * Improved handling of item availability and explicit content representation.
* fix(cli): πŸ› Correct type for `item_id` in `_handle_album_playlist_mix_artist`Robert Honz2025-07-011-22/+26
| | | | | | * Changed `item_id` type from `int` to `str` for better consistency. * Updated related list type from `list[int]` to `list[str]`. * Added type checks for `media_type`, `item_id`, and `file_template` in `_process_url` for improved error handling.
* refactor(cli): ✨ Improve function documentation and remove unused importsRobert Honz2025-07-011-115/+211
| | | | | | * Enhanced docstrings for clarity and consistency across functions. * Removed unused imports to clean up the codebase. * Improved the structure of the `_download` function for better readability.
* 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-303-8/+35
| | | | #447 & #436
* ✨ Either date added or date released will be shown, depending if a list is ↡Robert Honz2025-06-302-9/+25
| | | | selected or a search was performed. Fixes #424
* πŸ› οΈ Favorites won't getting duplicated after user hits the list reload ↡Robert Honz2025-06-301-0/+5
| | | | button. Fixes #409
* πŸ› οΈ Cover won't be removed, if clicked on the same item multiple times.Robert Honz2025-06-291-1/+5
|
* ✨ Spinner will be shown, if search results are expanded.Robert Honz2025-06-291-1/+9
|
* ✨ will only return the first artists. will return all album artists. ↡Robert Honz2025-06-292-1/+6
| | | | Fixes #439
* πŸ› οΈ GUI dos not hang if searched media is not available anymore.Robert Honz2025-06-291-0/+3
|
* πŸ› οΈ App does not crash anymore on not available content. Fixes #422Robert Honz2025-06-291-3/+15
|
* πŸ‘· Lists and cover will be loaded in background. Gui won't hang anymore. ↡Robert Honz2025-06-292-30/+72
| | | | Fixes #423
* πŸ‘· Re-arranged imports.Robert Honz2025-06-291-9/+6
|
* Merge pull request #428 from JuanJesusAlejoSillero/masterexislow2025-06-291-0/+2
|\ | | | | Fix UnboundLocalError in GUI on_populate_tree_lists method leading to unresponsive left panel
| * Fix: Prevent UnboundLocalError in on_populate_tree_listsJuan JesΓΊs Alejo Sillero2025-04-261-0/+2
| | | | | | | | | | - Added a safeguard to skip items in `user_lists` that do not match expected types (`UserPlaylist`, `Playlist`, or `Mix`). - Ensured `twi_child` is only accessed when properly initialized. - This prevents crashes during GUI interaction when unexpected data is encountered.
* | πŸ› οΈ Fixed wrong repo url after pyproject.toml update. Credits to ↡Robert Honz2025-06-291-1/+1
| | | | | | | | @orbittwz in README.
* | ✨ Empty metadata tags will be removed before written to file. Url tag for ↡Robert Honz2025-06-061-1/+7
|/ | | | mp4 corrected.
* ✨ Implemented playlist track position naming (`{list_pos}`) for downloads. ↡Robert Honz2025-04-023-16/+56
| | | | Fixes #165
* πŸ› οΈ Fixed and simplified path_file_sanitize method.Robert Honz2025-03-272-53/+36
|
* πŸ› οΈ Fix: Only re-create media item if it is a track. Fixes #386Robert Honz2025-03-251-1/+1
|
* πŸ‘· Code style.Robert Honz2025-03-242-3/+4
|
* πŸ‘· Check if albums and videos are available or not due to regional ↡Robert Honz2025-03-241-7/+18
| | | | restrictions. Fixes #277
* πŸ› οΈ 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