Commit Graph

11 Commits

Author SHA1 Message Date
krateng 898dd9735c Fixed Spotify auth if not in use, fix GH-87 2021-11-21 17:14:22 +01:00
krateng ff8e5ec8ff Commenting and slight Spotify search improvement 2021-11-18 06:45:44 +01:00
krateng 29f8c10167 Minor UI / output changes 2021-11-17 19:10:28 +01:00
krateng 26dfdfb569 Minor cleanup and better logging 2021-11-16 18:22:46 +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 23cc1ac341 Third party improvements 2021-01-21 17:38:37 +01:00
Krateng 7a4df06090 Spotify now re-authenticates 2020-07-30 15:15:09 +02:00
Krateng dd3c83920b Enabled custom sorting of metadata providers, GH-23 2020-07-28 20:12:50 +02:00
Krateng 29f88539b4 Added MusicBrainz service for metadata, resolves GH-22 2020-07-26 03:27:10 +02:00
Krateng fe106a3227 Implemented artist metadata interface 2020-07-25 19:34:41 +02:00
Krateng b6a66ff2ed Added Spotify metadata service 2020-07-25 18:38:56 +02:00