44 Commits

Author SHA1 Message Date
thecookingsenpai
f66bca67ac Testing with SHA1 gives positive results, also changed the truncation rule 2024-02-02 16:31:18 +01:00
thecookingsenpai
f0a8aa02a9 opted for sha1 2024-02-01 20:32:31 +01:00
thecookingsenpai
077661b73c lighter md5 method to be nicer on older cpus 2024-02-01 20:24:42 +01:00
thecookingsenpai
bc51150e47 failproof online check (fixes vpns and dns tunnels) 2024-01-31 18:25:20 +01:00
Mungai Njoroge
cb47a4bc6e
Update hashing.py 2024-01-22 22:38:01 +03:00
mungai-njoroge
8c44aeff3d update create_hash docstring 2024-01-22 22:35:27 +03:00
mungai-njoroge
258897b649 add silence removal using pydub and multithreading
+ fix favorites endpoint returning items less than limit
+ add endpoint to remove get silence padding
+ add 'the ulitimate' and 'compilation' to compilation album filters
+ misc
2024-01-05 01:08:07 +03:00
mungai-njoroge
336360d509 add routes to get all albums and artists with sort
+ rewrite load all albums + artist logic with itertools.groupby
+ add a function to convert seconds to string
2023-12-08 09:20:51 +03:00
mungai-njoroge
5a420214f2 fix playlist last update
+ create a recently added playlist on get api
2023-12-03 12:56:56 +03:00
mungai-njoroge
b03e721ee5 add routes for getting recently added items 2023-12-02 01:59:03 +03:00
mungai-njoroge
38650a1a7e Refactor file: taglib.py and utils/parsers.py
Add dataclass and pathlib imports in taglib.py

Add clean_filename, ParseData, and extract_artist_title functions in
taglib.py

Modify get_tags function in taglib.py to use extract_artist_title
function

Modify LyricsProvider class in lyrics.py to add timeout parameter in
session.get

Remove parse_artist_from_filename and parse_title_from_filename
functions in utils/parsers.py

Add split_artists function in utils/parsers.py

Remove parse_artist_from_filename and parse_title_from_filename
functions in utils/parsers.py

Add remove_prod function in utils/parsers.py

Refactor code and improve code readability
2023-11-22 15:44:31 +03:00
mungai-njoroge
4f757e989f redesign progressbars
+ hide some progressbars
+ rewrite telemetry into a class
+ remove obsolete start info logs
+ update contributing.md to include contributing.md
+ send posthog event in a bg thread
+ related side effects
2023-09-27 17:18:52 +03:00
mungai-njoroge
54714a224b ignore unicode characters errors
+ add methods on settings.Keys to verify key !== empty string
2023-09-26 17:59:12 +03:00
mungai-njoroge
ba88cf4a23 add telemetry using posthog
+ move build variables into a python file
+ rewrite logic to check if there's an internet connection
+ move IS_BUILD into settings
+ update pyintaller to 6.0.0
+ update other packages to latest
2023-09-25 20:27:20 +03:00
mungai-njoroge
50ebead026 fix issue with Ed Sheeran albums 2023-09-25 12:24:01 +03:00
mungai-njoroge
f2addf4d0f rewrite api/artist.py to remove artist cache
+ remove processing taylor's version
2023-09-23 18:57:19 +03:00
mungai-njoroge
83bbe69550 show artist decade in genres
+ assign default artist separators if db is empty
+ add instrumental to album version
+ check if album is a single by checking og_title and current title
+ hard code juice wrld artist name in model
+ set album aritst to first artist if track has no album artist
+ rewrite get_base_album_title regex to use existing album versions
+ misc
2023-09-04 11:01:03 +03:00
mungai-njoroge
5ff3e5d28a add "&" character to genre separators
+ handle r&b genre and rock&roll
2023-09-04 00:49:45 +03:00
mungai-njoroge
da88bbd9cc write LASTFM_API_KEY to config file
+ remove alive bar
2023-08-31 21:36:34 +03:00
mungai-njoroge
13475b0630 rewrite remove duplicates to support removing duplicates in albums tracks efficiently
+ remove flags added to client settings page
+ misc
2023-08-29 20:04:30 +03:00
mungai-njoroge
9972f64e8c configure to allow updating artist separators
+ remove ampersand from default
+ misc
2023-08-25 20:09:50 +03:00
mungai-njoroge
71cab5f5ea load settings from db, use api to change settings
+ add route to get all settings
+ add route to set any setting
+ add untested migration to add settings into settings db
+ compress json in api responses using FlaskCompress
+ serve gziped assets if browser accepts encoded files
+ misc
2023-08-24 15:52:09 +03:00
mungai-njoroge
68c2cf1909 read limit from api request query for search 2023-08-20 23:06:16 +03:00
mungai-njoroge
2471f51d86 extract album version into separate file 2023-08-14 11:01:53 +03:00
mungai-njoroge
93de3d2f0c rewrite migrations
+ delete older migrations ... oops
+ change migratrions from "migrations" to "dbmigrations"
+ restructure migrations, order them based on release version
+ add a utils/decorators.py file with a coroutine decorator
2023-07-29 06:46:28 +03:00
mungai-njoroge
6439b512e9 preset mimetypes
+ add db and api methods to remove tracks from playlists
2023-07-21 01:15:57 +03:00
mungai-njoroge
f5de09bd09 add last fm similar artists to db table
+ add db methods for the above
+ try and discard last fm store
2023-07-01 01:39:39 +03:00
mungai-njoroge
4a9d6bc3e6 rewrite split_artists parser to remove regex
+ write placehold functions to manage custom separators
2023-06-26 14:21:11 +03:00
mungai-njoroge
4d310c39c3 add tests for sqlitemanager util class
+ implement pendulum in date_string_to_time_passed()
+ remove unused bisection_search_string
2023-06-21 12:18:19 +03:00
mungai-njoroge
9d4f7af581 rewrite populate.get_image() to extract a
track thumbnail from the first track in an album that has one.

+ rewrite Populate.remove_modified with sets
+ clean the SqliteManager utility class
+ Rewrite ProcessTrackThumbnails to use a process pool instead of a thread pool
+ rewrite track store's  remove_tracks_by_filepaths to utilize sets
2023-06-21 09:20:56 +03:00
mungai-njoroge
1eac009fde prevent running migrations if is_fresh_install
+ fix: sqlite3.ProgrammingError: Cannot operate on a closed cursor on ProcessAlbumColors()
+ move processing artist images from periodic_scans to Populate
+ bump hash string limit from 7 to 10
+ add last_mod property to database
+ fix: TypeError: '<' not supported between instances of 'int' and 'str' on album page
2023-06-20 16:34:56 +03:00
mungai-njoroge
cc6552cb94 check if track exists in db before sending file 2023-06-19 21:49:13 +03:00
geoffrey45
8e59a59ba2 implement merging album versions
+ add "limit" parameter to the useBisection function
+
2023-05-09 15:18:30 +03:00
geoffrey45
740f45b9ac add route to open a file in file manager
+ try a new approach of cleaning remasters from track titles
2023-05-09 13:25:31 +03:00
geoffrey45
51a5502efc add parsers to clean track titles .ie. remove remaster info
+ use getters to read flags
+ use the largest limit to get recent favorites
+ misc
2023-05-05 17:49:59 +03:00
geoffrey45
3ddb6295c6 fix get_base_album_title function multiple brackets bug 2023-04-30 14:13:26 +03:00
geoffrey45
c993e0b583 add api route to fetch other album versions
+ add parser functions to extract album version
2023-04-23 01:45:08 +03:00
geoffrey45
3d5ee855d8 add methods to extract base album title from an album title string
+ add methods to extract album versions
+ implement these methods in the album model class
2023-04-22 15:12:59 +03:00
geoffrey45
9bfc1ceed2 add --config flag to modify config path
+ use getters instead of constants in settings classes
+ refactor previous references
+ move get_xdg_config_dir() from settings.py to app.utils.xdg_utils.py
2023-04-17 02:21:42 +03:00
geoffrey45
357afeb700 break settings.py into classes 2023-03-26 08:25:00 +03:00
geoffrey45
d43dcbff46 break down store.py into multiple files in a module
+ fix last updated date bug
2023-03-25 03:05:38 +03:00
geoffrey45
d21a834a00 fix get playlist tracks order
+ fix utils.get_home_res_path
2023-03-15 10:01:12 +03:00
geoffrey45
fed62bf7f4 add method and route to fetch similar artists from lastfm 2023-03-12 19:28:41 +03:00
geoffrey45
e3ec9db989 add method and route to search across tracks, albums and artists.
+ break models into separate files
+ same for the utils and setup
2023-03-09 13:08:50 +03:00