Commit Graph

13 Commits

Author SHA1 Message Date
badlandspray 705f4b4252
Track album name and track length 2022-05-08 13:26:42 +00:00
krateng bfc83fdbb0 Ported signal handling fix from 3.1 2022-04-24 20:47:17 +02:00
krateng 781ed66357 Fixed audioscrobbler APIs 2022-04-06 22:51:14 +02:00
krateng 34db81ccef Adapted audioscrobbler legacy API to new architecture 2022-04-06 22:45:56 +02:00
krateng 80acf6275f Moved API key checking to proper module 2022-01-06 05:19:56 +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 df6ad4f073 Legacy audioscrobbler should now use correct scheme automatically 2020-11-01 22:14:55 +01:00
Krateng 5b7d1fd8e9 Added ability to use legacy audioscrobbler without SSL 2020-11-01 18:05:11 +01:00
Krateng e70cb3e037 API improvements 2020-10-31 19:57:49 +01:00
Krateng 724bfd7164 Updated postman collection 2020-10-29 17:21:50 +01:00
Krateng e8c19a05e4 Implemented scrobbling 2020-10-29 17:14:22 +01:00
Krateng 8cf93c3100 Implemented handshake 2020-10-29 16:46:45 +01:00
Krateng 5c2928e13b Renaming and organization 2020-10-29 15:56:51 +01:00