Commit Graph

28 Commits

Author SHA1 Message Date
krateng ac498bde73 Refactored some scrobble parsing 2022-05-07 22:24:37 +02:00
krateng f74d5679eb Properly passing flags argument for regex sub calls, fix GH-145 2022-05-07 15:17:29 +02:00
krateng e116690640 Fixed leftover whitespaces when parsing titles 2022-04-30 20:19:45 +02:00
krateng 3ede71fc79 Made some parsing rules case insensitive 2022-04-28 06:08:51 +02:00
alim4r ec02672a2e Remove debug print... 2022-04-27 22:30:23 +02:00
alim4r 91a7aeb50d Add feature to parse remix artists 2022-04-27 20:54:33 +02:00
krateng 53bc856222 Merge branch 'master' into feature-restructure 2022-04-20 19:08:16 +02:00
krateng 43ec4c2c9e Reenabled bracket normalization for titles, GH-121 2022-04-19 22:13:51 +02:00
krateng 17be00f794 Improved parsing of featuring artists in square brackets, fix GH-121 2022-04-19 15:22:42 +02:00
krateng 871b3d289d Moved monkey patching and globalconf to subpackage 2022-04-09 21:39:04 +02:00
krateng dc192d7444 Removed remaining doreah tsv dependencies 2022-04-08 16:08:48 +02:00
krateng 9f8e691924 Moved image handling to top level module 2022-03-27 22:02:24 +02:00
krateng 4dd7cf69a7 Replaced pkg_resources with importlib 2022-03-10 05:31:41 +01:00
krateng 0ccd39ffd9 How tf did that even happen 2021-12-22 07:24:34 +01:00
krateng 4186171b8f Replaced settings calls 2021-12-19 21:41:43 +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 723efcb8ba Made artist delimiters a setting, fix GH-66 2021-01-06 22:09:07 +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 212fbf368e Database fixing now finally respects existing separation 2020-12-02 21:08:44 +01:00
Krateng 034bd064f1 Improved artist fixing (hopefully) 2020-11-15 20:19:29 +01:00
Krateng 10f636e7ed Removed rulestate consistency system 2020-09-01 01:19:10 +02:00
Krateng a6724b9455 Added fixartists rule 2019-12-29 20:00:17 +01:00
Krateng e50cce28fa Finally refactored lastfm import 2019-12-15 15:35:11 +01:00
Krateng dbc23ca73c Replaced directory changing with fully generated file paths 2019-12-15 15:18:33 +01:00
Krateng e856130e19 Added more title cleanup 2019-12-14 16:05:34 +01:00
Krateng 5d066d9b26 Added artistintitle rules 2019-12-11 14:25:09 +01:00
Krateng 55621ef4ef Refactored into Python Package 2019-11-24 21:47:24 +01:00