arcctgx / lfmedit Goto Github PK
View Code? Open in Web Editor NEWScript for making Last.fm scrobble editing requests from the command line.
License: MIT License
Script for making Last.fm scrobble editing requests from the command line.
License: MIT License
This looks like a case when the album field is set, but album artist field is not set on Last.fm side.
INF: applyChangesFrom(): editing scrobble 388 of 408
INF: requestScrobbleEdit(): This is the edit that will be applied:
-1291342475 [untitled] William Basinski Melancholia
+1291342475 Melancholia VII William Basinski Melancholia William Basinski
ERR: requestScrobbleEdit(): HTTP error 500: check edit parameters (wrong original album artist?)
This would require getting old scrobble data from source other than Last.fm API. The most reasonable thing to do would be to require full diff as input data (not just the new scrobble data).
Just got 36 false positives. Seems like the verification step doesn't really help, it only slows down the editing process.
After making about 40-50 edits all subsequest requests fail with HTTP 406 error.
In its current form failed.log
is not very useful, because it doesn't store the cause of failure. This should be a short status string like HTTPxxx
, CASEONLY
, NOCHANGE
or BADAARTIST
.
Sometimes HTTP status codes other than the ones being explicitly handled are reported, and they don't always mean edit failures. These should rather be logged as warnings to a dedicated file, warnings.log
. These should also be printed to the console. WRN
error severity should be reintroduced.
Finally, consider if attempts to edit scrobbles without reliable timestamps should be treated and logged as errors, or not.
It's not possible to keep auth_tokens.sh
as a sample template where changes are tracked, and at the same time ignore it when real tokens are set.
Authentication tokens should be read from file placed in XDG_CONFIG_HOME
. This repository should only contain a sample template file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.