Commit Graph

55 Commits

Author SHA1 Message Date
krateng 39a42e915c Initial support for new Spotify export format, GH-215 2023-06-25 18:00:23 +02:00
Karol Kosek 9b10ca4a5d Implement importing scrobbles from ListenBrainz
Closes: #162
2022-08-16 22:17:02 +02:00
Karol Kosek 2ce2e2f682 Import track lengths from own maloja format
It will also be used when importing ListenBrainz files.
2022-08-16 19:37:15 +02:00
krateng 01d52d7e36 Merge branch 'master' into feature-webedit 2022-04-22 17:16:26 +02:00
krateng 646c290a37 Added separate output for importing zero files 2022-04-21 21:17:55 +02:00
krateng 28163348fa Fixed importing with direct filename, fix GH-124 2022-04-21 21:15:53 +02:00
krateng 53bc856222 Merge branch 'master' into feature-restructure 2022-04-20 19:08:16 +02:00
krateng 32a900cf37 Fixed error for Lastfm import and added feedback, fix GH-118 2022-04-19 00:11:40 +02:00
krateng 871b3d289d Moved monkey patching and globalconf to subpackage 2022-04-09 21:39:04 +02:00
krateng abde7e72c4 Moved scrobble generation to dev package 2022-04-09 21:24:48 +02:00
krateng de5ae6408a Refactored imports to avoid DB startup for unrelated tasks 2022-04-08 19:10:20 +02:00
krateng 037f195803 More normalizing 2022-04-08 04:52:59 +02:00
krateng bd29c1e1ba Implemented extra information field in DB 2022-04-05 20:51:14 +02:00
krateng 8ff7acfc38 Readme and minor fixes 2022-04-05 05:48:23 +02:00
krateng b7781d27c3 Aligned export and backup 2022-04-04 18:30:51 +02:00
krateng c647a57983 Implemented import from own export 2022-04-04 17:50:46 +02:00
krateng 1b087e92db Merge branch 'master' into v3 2022-04-04 16:56:51 +02:00
krateng 72b74eb27e Renamed import module to match v3 2022-04-04 16:25:21 +02:00
krateng e0af117805 Added export functionality 2022-04-04 16:18:18 +02:00
krateng ca2596cfc9 Improved import feedback output logic 2022-04-01 19:43:33 +02:00
krateng c150a57090 Implemented importing from Spotify's one-year data export 2022-04-01 19:28:13 +02:00
krateng a833039ced Improved feedback of import 2022-04-01 18:19:21 +02:00
krateng d8821efeeb Implemented heuristics for Spotify import with inaccurate timestamps, GH-104 2022-04-01 17:53:36 +02:00
krateng 3389d6c5f5 Reworked import 2022-04-01 17:16:50 +02:00
krateng 8ed3923851 Fixed timestamp parsing for Spotify import, GH-104 2022-03-30 21:37:43 +02:00
krateng 2a1f188e37 Changed Spotify import to use all files and discard duplicates, GH-104 2022-03-30 17:38:56 +02:00
krateng 27cacbf658 Added ability to import multiple files, GH-104 2022-03-29 19:02:59 +02:00
krateng 5d582d39aa Added confirmation prompt to random generation 2022-03-29 18:09:39 +02:00
krateng 3108b368ef Fixed continued scrobble import after error 2022-03-29 17:41:16 +02:00
krateng 38f2173bde Added handling for invalid Spotify scrobbles 2022-03-29 17:27:34 +02:00
krateng 9f8e691924 Moved image handling to top level module 2022-03-27 22:02:24 +02:00
krateng be4ed055ff Small fixes 2022-03-27 19:52:51 +02:00
krateng e22ef4d268 Updated documentation 2022-03-27 05:57:58 +02:00
krateng c8ed894efb Updated tasks to new database architecture 2022-03-27 05:31:15 +02:00
krateng e31c0dce57 Reorganized tasks 2022-03-27 05:08:17 +02:00
krateng 3f098b6993 Merge branch 'master' into v3 2022-03-27 03:30:04 +02:00
krateng fa9fee758c Reworked import and added support for Spotify, GH-104 2022-03-27 03:10:54 +02:00
krateng 78c50d24d9 Updated backup 2022-02-14 05:11:55 +01:00
krateng af569ae983 Added backup from web interface 2021-12-26 20:53:38 +01:00
krateng be7780a0c0 Expanded scrobble generation 2021-11-18 06:47:03 +01:00
krateng 817d98e467 Added new scrobble generation for testing 2021-11-14 18:08:09 +01:00
Brian Pepple d1b598a32b
Refactoring (#83)
* Merge isinstance calls

* Inline variable that is immediately returned

* Replace set() with comprehension

* Replace assignment with augmented assignment

* Remove unnecessary else after guard condition

* Convert for loop into list comprehension

* Replace unused for index with underscore

* Merge nested if conditions

* Convert for loop into list comprehension

* Convert for loop into set comprehension

* Remove unnecessary else after guard condition

* Replace if statements with if expressions

* Simplify sequence comparison

* Replace multiple comparisons with in operator

* Merge isinstance calls

* Merge nested if conditions

* Add guard clause

* Merge duplicate blocks in conditional

* Replace unneeded comprehension with generator

* Inline variable that is immediately returned

* Remove unused imports

* Replace unneeded comprehension with generator

* Remove unused imports

* Remove unused import

* Inline variable that is immediately returned

* Swap if/else branches and remove unnecessary else

* Use str.join() instead of for loop

* Multiple refactors

- Remove redundant pass statement
- Hoist repeated code outside conditional statement
- Swap if/else to remove empty if body

* Inline variable that is immediately returned

* Simplify generator expression

* Replace if statement with if expression

* Multiple refactoring

- Replace range(0, x) with range(x)
- Swap if/else branches
- Remove unnecessary else after guard condition

* Use str.join() instead of for loop

* Hoist repeated code outside conditional statement

* Use str.join() instead of for loop

* Inline variables that are immediately returned

* Merge dictionary assignment with declaration

* Use items() to directly unpack dictionary values

* Extract dup code from methods into a new one
2021-10-19 14:58:24 +02:00
krateng 8ebd27ab76 Added some output for errors in import and start 2021-05-24 15:04:22 +02:00
Krateng f5f73d9223 Removed debug logging, fix GH-63 2020-12-25 17:11:09 +01:00
Krateng db80e1791a Fixed backup 2020-12-25 16:52:25 +01:00
Krateng 0818dccac4 Fixed most references to user files 2020-12-25 04:52:05 +01:00
Krateng 772f207b7e Cleaned up some imports 2020-12-03 20:12:49 +01:00
Krateng f6b9f2b9fa Fix GH-61 2020-12-03 18:37:30 +01:00
Krateng 212fbf368e Database fixing now finally respects existing separation 2020-12-02 21:08:44 +01:00
Krateng 3de4059f85 Fixed database maintenance, GH-59 2020-12-02 19:18:12 +01:00