Commit Graph

11 Commits

Author SHA1 Message Date
krateng 88403d2583
Fetch smaller image from musicbrainz, fix GH-206 2023-03-27 18:10:53 +02:00
krateng bfc83fdbb0 Ported signal handling fix from 3.1 2022-04-24 20:47:17 +02:00
krateng 0ec93d7d0f Reworked pkginfo again 2021-12-25 23:43:34 +01:00
krateng 73a6c18b17 Repurposed __pkginfo__ module 2021-12-24 06:30:19 +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 ce9d882856 Listenbrainz artwork urls are now converted to https, fixes GH-41 2020-10-18 19:08:47 +02:00
Павло 951c192adb
Update musicbrainz.py
URLEncode already do URL Quoting, so we don't need to do it before
2020-09-30 13:28:29 +03:00
Krateng dd3c83920b Enabled custom sorting of metadata providers, GH-23 2020-07-28 20:12:50 +02:00
Krateng 1eae55e3bb Fixed race condition in search 2020-07-26 18:09:41 +02:00
Krateng 29f88539b4 Added MusicBrainz service for metadata, resolves GH-22 2020-07-26 03:27:10 +02:00