Commit Graph

1459 Commits

Author SHA1 Message Date
Tomas Dvorak 5dded7d327 ci/cd 2026-03-18 11:47:52 +01:00
Tomas Dvorak 521f3791a5 update ci/cd 2026-03-18 09:46:37 +01:00
Tomas Dvorak cefc56c41d update ci/cd 2026-03-18 09:46:16 +01:00
Tomas Dvorak 2f0c0882fc Update README with stylized format and improved styling 2026-03-17 22:40:08 +01:00
Tomas Dvorak 38f1981283 Move backend files to root level for cleaner GitHub display
- Move all backend files from swingmusic/ to root level
- Backend files now display directly on GitHub repository page
- Keep client applications as submodules (swingmusic-android, swingmusic-desktop, swingmusic-webclient)
- Update README to reflect new structure (no cd swingmusic needed)
- Cleaner, more professional GitHub repository layout

Files moved to root:
- src/ (main source code)
- pyproject.toml, requirements.txt, run.py
- swingmusic.spec, uv.lock, version.txt
- services/

Result: GitHub shows backend files directly while maintaining organized structure
2026-03-17 22:37:49 +01:00
Tomas Dvorak 297315f5ba Configure submodules to track master branch
- Update .gitmodules to explicitly track master branch for all submodules
- Ensures submodules always point to latest master commits
- Removes specific commit hashes in favor of branch tracking
2026-03-17 22:37:11 +01:00
Tomas Dvorak 15aaeb3f6e Clean up repository - remove unnecessary files and folders
Removed:
- TODO.md (old todo list, can use GitHub Issues instead)
- tests/ (minimal test coverage, not actively maintained)
- docs/ (mostly empty documentation files)
- contributing/ (redundant with .github/contributing.md)
- appimage/ (AppImage-specific files, only needed for AppImage builds)

Kept essential files:
- .gitignore (required for Git)
- .gitmodules (required for submodules)
- LICENSE (legal requirement)
- README.md (project documentation)
- .github/ (workflows, templates, community files)
- Dockerfile (Docker support)

Repository now has clean, minimal structure with only necessary files.
2026-03-17 22:35:28 +01:00
Tomas Dvorak 4c04287800 Reorganize repository structure for better organization
- Move backend code to swingmusic/ folder
- Move client applications to root level (swingmusic-android, swingmusic-desktop, swingmusic-webclient)
- Remove intermediate backend/ and clients/ folders
- Update README with new folder structure and setup instructions
- Clean and organized repository layout
2026-03-17 22:34:34 +01:00
Tomas Dvorak 17e859dd2f Add client applications as submodules to main repository
- Keep main swingmusic backend code (src/, pyproject.toml, etc.)
- Add swingmusic-android as submodule
- Add swingmusic-desktop as submodule
- Add swingmusic-webclient as submodule
- Update README to reflect main backend + client apps structure
- Repository now contains complete Swing Music ecosystem in one place
2026-03-17 22:33:08 +01:00
Tomas Dvorak aad2f2d421 Add Spotify downloader and enhanced API features
- Add spotify_downloader service for track/album/playlist downloads
- Update Spotify API endpoints with enhanced functionality
- Fix pydub utils import issues
- Update GitHub workflows for improved CI/CD
2026-03-17 22:12:41 +01:00
Tomas Dvorak 272caf6bfe 🔧 Update GitHub Actions to latest versions
- Update actions/setup-node@v3 to @v4
- Update actions/setup-python@v2 to @v5
- Update actions/checkout@v3 to @v4
- Replace deprecated create-release/upload-release-asset with action-gh-release
- Eliminate deprecation warnings and improve reliability
2026-03-17 18:18:59 +01:00
Tomas Dvorak af366e3899 Rewrite README with clean, professional documentation
- Updated with comprehensive feature descriptions
- Added modern installation and setup instructions
- Included detailed project structure and architecture
- Added troubleshooting and development guidelines
- Standardized format across all repositories
- Removed unnecessary content and outdated information
2026-03-17 18:05:53 +01:00
Tomas Dvorak 4338dd1d9c Add comprehensive backend services and API enhancements
- Complete Spotify integration with downloader and settings
- Advanced UX features and audio quality management
- Enhanced search capabilities and mobile offline support
- Music catalog browser and recap features
- Universal downloader and upload functionality
- Update tracking system with database models and migrations
- Comprehensive service layer architecture
- Enhanced lyrics API and streaming capabilities
- Extended application builder and startup configuration
- New logging infrastructure and services directory
2026-03-17 17:56:20 +01:00
Mungai Njoroge 65a1268dab Add 'Martha Reeves and the Vandellas' to default artist split ignore list 2026-01-19 16:09:43 +03:00
Mungai Njoroge 52ce88d58d update default artist split ignore list 2026-01-19 16:06:39 +03:00
Mungai Njoroge 59c03ac99d add "Sonny & Cher" to default artist ignore list 2026-01-19 15:57:53 +03:00
wanji f5fe25323f disable macos 13 builds 2026-01-18 15:48:29 +03:00
wanji 9a915ca62a fix: directory traversal as reported by @d-virtuosa 2026-01-18 09:36:52 +03:00
Tikhon Petrishchev ea76cf5dc2 Fix: All scrobbles were applied to the Last.fm account associated with user ID 1 (#434) 2026-01-18 09:34:57 +03:00
Tikhon Petrishchev 7eb5c6bbc6 Fix: AttributeError 'Paths' has no attribute 'get_plugins_path' in lastfm plugin (#431) 2026-01-18 09:31:37 +03:00
Tikhon Petrishchev 10f6edeb68 Fix: list index out of range when trying to unset admin role (#432) 2026-01-18 09:30:23 +03:00
sanekb 4fa5c031e3 fix #440: move freeze_support to top of run.py to fix Windows crash (#450)
fix: call freeze_support immediately to fix Windows EXE crash
2026-01-18 08:54:00 +03:00
wanji 0664bb1790 add Yusuf / Cat Stevens to split ignore list 2026-01-03 13:42:57 +03:00
wanji 5f863a45a8 classify albums ending with "the album" as soundtracks 2026-01-02 21:52:25 +03:00
wanji 27a572bc9a update artist split ignore list 2026-01-02 11:16:23 +03:00
Mungai Njoroge 3e3e88a521 Add new artists to the split ignore list 2026-01-02 10:43:59 +03:00
Tikhon Petrishchev e9a4c1e11a merge #427 - fix: albums from 1970 using last modified date instead of album release date 2025-12-10 11:45:31 +03:00
orhtej2 84af418d15 merge #426 - downgrade binary build environment for Linux. fixes #422
Update build.yml
2025-12-10 11:36:42 +03:00
wanji 9122244880 download latest web client as fallback 2025-12-08 10:38:02 +03:00
wanji 32420f8dfe fix: importlib import bugs :sigh! 2025-12-08 00:31:53 +03:00
wanji 506c45c4fa fix client: download fallback to github release client
+ add fallback release version data to version.txt
+ move classproperty class to utils
+ update Dockerfile to install from source using pip install
+ move version info to Metadata class in settings.py
2025-12-07 23:19:34 +03:00
wanji d2b2ba6e02 fix: docker builds versionining 2025-12-03 19:16:34 +03:00
wanji aff8184983 fix: dockerfile 2025-12-03 19:03:48 +03:00
wanji 08292c8fb3 update image url on readme 2025-12-01 11:24:05 +03:00
wanji c51eb925b9 update version number on readme 2025-12-01 10:58:42 +03:00
wanji d7e2710d4a security: fix fetching an arbirtrary file from the host server on stream endpoint
+ fix path traversal
+ check if requested file is outside root dirs
+ confirm resolved track hash matches the requested trackhash
2025-12-01 10:41:29 +03:00
cwilvx 5d200fff30 add publishing to pip 2025-08-31 15:36:54 +03:00
cwilvx 070ed009c2 update playlist name on folder view 2025-08-30 18:46:52 +03:00
cwilvx 4969b51a92 try: freeze multiprocessing 2025-08-30 18:40:54 +03:00
cwilvx d169227b2d update appImage filename 2025-08-30 17:55:27 +03:00
cwilvx 83f3592676 update gh token 2025-08-30 17:32:11 +03:00
cwilvx 7341c14f9c change release action 2025-08-30 17:12:03 +03:00
cwilvx bb3167ed88 fix album and track number 2025-08-30 17:00:30 +03:00
cwilvx ade8759191 put back default track sort order
+ ignore src files in scans
2025-08-30 16:51:27 +03:00
cwilvx bfa9d6b7fc handle missing zip file 2025-08-29 14:14:12 +03:00
cwilvx 7450324514 update github ci token 2025-08-28 20:06:30 +03:00
cwilvx 8a767c04a3 Add sparse checkout for changelog in build workflow 2025-08-28 19:39:42 +03:00
cwilvx e57d4c6596 try: fix compression on windows 2025-08-28 19:26:54 +03:00
cwilvx ebc740a5a5 refactor Paths and update build workflow
+ rename app_dir -> config_dir and config_dir to config_parent
+ bundle web client as zip
+ bundle and extract client zip when running pyinstaller builds
+ installer pyinstaller as main dependency
+ remove fallback client flag
+ handle already used port
+ add assethandler class
+ remove some startup logs
+ ignore wheels and client.zip files
2025-08-28 16:38:49 +03:00
michily e770606567 merge refactors pr #364 from @michilyy
* Save to DB only unique trackhashes

* Add check if track already exists in playlist

* replace all paths with `pathlib.Path`

* `architecture.md`:
* add config folder layout

`config.py`:
* fix bug where `pathlib.Path` cannot be serialized

`files.py`:
* remove unused imports
* update path concatenation to `pathlib.Path`
* add config-folder creation

`imgserver.py`:
* fix serialisation bug

`playlistlib.py`:
* update path concatenation to `pathlib.Path`

* update all `settings.Paths` usages to new singleton `Paths` class.

* update all usages of `settings.Paths`

* `files.py`:
* rework assets copy function.
* remove unused loop and unused `shutil.copy2` function

`settings.py`
* fix recursion exception in `Paths`

* `settings.py`:
* remove Singleton and `@property` todos from `Paths`

* `__init__.py`:
* remove now unused function `create_config_dir()`

`setup.files`:
* remove because merged into `settings.Paths()`
  for more central and clear flow how the base path gets decided

`settings.py`:
* add `copy_assets` function

`start_swingmusic.py`:
* add configurable settings.Paths class

`__main__.py`:
* update click to used correct default path

* remove wrong commited egg files

* remove change in the wrong branch

* add forgotten `property` decorator
update `get_files_and_dirs` to use pathlib where possible

`config.py`:
* update type annotation

`folders.py`:
* convert `pathlib` to posix path where needed for sub-functions

`folderlib.py`:
* rework `get_files_and_dirs` to use `pathlib` where possible

`settings.py`:
* add forgotten `@property`

`start_swingmusic.py`:
* remove second `log_startup_info()`

* `artistlib.py`:
* fix calling property
`tagger.py`:
* fix comparing elements in `pathlib.Path`

* add support for repeating lyrics.

* rework lyrics api and lib

* update most path functions.
add type-hint pathlib where needed

* for serialization paths are converted to posix path

* use `open` instead of `os.open`
update `metaclass` with constant

* fix initial config exception if empty file existed

* update `userConfig` with `InitVar` to be excluded from `asdict`

* remove `is_windows_slash()`
rework path function to use pathlib

* convert `pathlib.Path` to `str` for serialization

* fixing bug with str + pathlib

* `__main__.py`:
* update click to use package version
* remove now unused function `print_version`

`filesystem.py`:
* rework `CWD` to use importlib

`pyproject.toml`:
* disable namespace for `importlib.resources` to work correctly

* update `lyrics.py`:
* remove unused functions
* simplify functions

* fix bug where assets get created on root

* remove unused code

* update lyrics for clearer structure.

* add support for unsynced lyrics

* fix wrong return type in unsynced lyrics

* update `/check` to use `send_lyrics`

* prefer tags to duplicates

* `lyrics.py`:
* add docs to a function group

* `logger.py`:
* add logging config dict.
* combine Logging into one file
* add socket logger
* add debug mode to logger
* add JSONL formater

* `logger.py`:
* update config to directly use the formater.
resolves circular import exception

`__main__.py`:
* add logger setup to main

`start_swingmusic.py`:
* add debug option to cli

* `lyrics.py`:
* add offset support

* add `setuptools-scm` to get version from git

* add support for docker build with scm

* add support for docker build with scm
need someone who can test the changes workflow

* update all usage of `version.txt` to `metadata.version()`

* 2x update all usage of `version.txt` to `metadata.version()`

* update to no local_scheme version

* provide fix for #331.
convert `sql.Row` and `TrackTable` to dict before converting to dataclass.

* fix `__main__.py`:
* wrong import and uncommited changes
* add debug and base_path parameter

* fix logger pathlib

* add client build workflow

* set name

* split client from build

* try fixing builds

* try another fix

* try also another fix

* try again something new

* try again something new

* change runner

* fix failed run because of malformed runner

* add wheel builds

* remove systems from pure python build

* add isolated pyinstaller build

* artifacts with names

* wrong wheel path

* try fetch-depth for tag fetch

* disable fail-fast.
add wheel installation

* add install system packages

* add debug

* fix wheel install
fix pyinstaller spec file

* try fix for pyinstaller

* try another fix

* build on release

* add concrete release types

* only run on released or pre-released

* try release upload

* reformat upload

* fix needs tag

* identifiable pyinstaller builds

* compress client folder before uploading

* update to src build

* remove no more needed aarch64 build script
rename pyinstaller assets to lowercase

* remove unneeded code

* fix: save to DB only unique track hashes

* replace click with argparse

* set concrete types in argparse

* replace manuall path usages with pathlib

* remove unused `configs.py` file

* reformat `start_swingmusic.py`

* fix empty set startup exception

* optimizing static files serve function

* fixing bug in optimisation of static files serve function

* fix folder view bug

* colorlib.py:
* fix wrong type exception
* remove singe use Index_everything class
* update logging of populate.py

* cleanup files

* fix settings.py Paths copy function.
Created folder on file.

* add exist check to folder

* remove unused `INFO` class

* fix multiprocessing bug on windows

* potential icon fix for pyinstaller
fix multiple logging bug

* fix argparse config path bug
add jobs file

* cleanup code fragments
fix logging issue
add notes to function

* note that concurrent creates own sys.modules

* refactor some lyrics plugin condition
remove unused import from hashing

* refactor taglib.py

* update import statements to be static

* playlistlib.py:
* refactoring and more doc strings
populate.py:
* add poc bugfix
settings.py:
* add typehint

* possible bugfix for multitreading globals

* folder.py:
* add check if provided path is absolute
populate.py:
* add bug note
settings.py:
* add possible error from Singleton implementation
start_swingmusic.py:
* correct spelling
* pass resolved path to Paths
tagger.py:
* add logging

* trying out fixes for multithreading

* only upload results not metadata

* fix build action again

* folder.py:
* strictly use pathlib where possible

folderlib.py:
* add missing docstring to function, who really need it.

track.py:
* refactor some code

folder.py:
* refactor some more code

* Merge DBPath class and Paths class.
Update all usages of DBPath

folderslib.py:
* fix bug with logging

taglib.py:
* add missing docstring

settings.py:
* merge classes
* refactor

* network.py:
* add more docstring

config.py:
* update pathlib usage

tools.py:
* refactor
* add docstrings

* colorlib.py:
* add docstring

Refactor App builder into grouped config settings.

* update assets access for migration

* Update FUNDING.yml

* Update FUNDING.yml

* upgrade tinytag in requirements.txt

* update readme

* update license

* update readme

* Update README.md

* Update README.md

* cleanup requirements.txt
remove unused import in audio_segment.py
add entrypoint.sh for appimage support
update pyproject.toml for optional dependencies
add appimage to github workflow

* fix invalid workflow file

* AppImage build needs more research.
Commenting for now

* testing a new build workflow

* add libev installation

* update workflow to new optional dependencies

* trying again another fix

* finally fix all optional deps installation correctly

* remove AppImage poc

* albumslib.py:
* add docstring

folder.py:
* add unix path fix

update logger name to `__name__`

* update build with docker
update Dockerfile with git
fix typo in lyrics.py
add dynamic deps back

* add log for static folder

* add missing import

* add some more todos

* add support for AppImages even when it's not perfect.

* quick bugfix for wrong appimage config path

* fix uploading not finding AppImages builds aka wrong pattern

* optimise docker build by using artifacts.
Add client path option.
change docstring to sphinx format

* add todos

* Now support AppImages for real:
manually build AppImage as we are building a complex project.

* fix missing dep in AppImage build

* add full AppImage metadata

* add missing image file.

* only update swingmusic appimage not tool

* add todo and fix AppImage build again.

* Try fixing some path mixup in AppImage build

* add debug tag to action

* correct path to appimage folder

* do not download tool before checkout

* Another fix for path in appimage build

* extend config files with more information

* default client dir is now inside the config dir.
TODOs updated.

* default client dir is now inside the config dir.
TODOs updated.
Add priority todos.

* Auto download client when client not found.
Respects user provided dir.

* rename `requests` submodule to `request`

* poc for arm AppImage builds

* try out another fix

* fix typo in build.yml

* add missing arch tag

* fix uploading double names

* unique naming

* enable fallback version for project.

* do not download client into readonly dir.

* fix relative client download path. Client was resolved into parent of config.

* remove client backup path as client is now downloadable

* `Paths` checks if config folder exists and creates it if necessary.
logger no more creates the config folder.
`app_builder.py`: static route no more with '/client'

* path are only created in MainProcess.
fix gz file not found.

* move assets into src and update usages accordingly

* remove solved todos

* Only upload artefacts if not draft/master aka only on tag

* wrong type in assets copy

* update log with correct priority

* add debug statements and logging to Paths

* remove debugging statement

* remove double version tag from docker build

* fork save release protection

* fix typo

* add fallback client dir for static builds.

* update argparse to new param

* add missing import pathlib

* add sparse checkout as we do not need everything downloaded

* add assets copy check

* init logger bevor Paths

* remove unused import

* check if logdir exists and create if not

* only add exec info to file

* remove exception log from cli

* move logging into main.
Allows tools support again.

* UserConfig now correctly uses _finished key.
Bug where _finished was never written

* double save serverId.
update root_dir to trow no exception on init.
remove debug param

* clean up TODOs

---------

Co-authored-by: skilletfun <skilletfun.laptew.sergey@yandex.ru>
Co-authored-by: Mungai Njoroge <geoffreymungai45@gmail.com>
2025-08-28 12:28:11 +03:00