arcctgx / tagreaders Goto Github PK
View Code? Open in Web Editor NEWsimple programs for reading audio files metadata
simple programs for reading audio files metadata
last.fm uses the following logic to determine if the track will be scrobbled:
But this logic is used only to determine whether the track will be scrobbled. If the track is scrobbled, the timestamp of playback start is used.
Currently csvscrob
uses time at half of the track (or at 4 minutes into the track if it's long) as timestamp, which is incorrect. Since we assume all given tracks must be scrobbled, we shouldn't care about the logic described above.
Tracks shorter than 30 seconds are not supposed to be scrobbled, and they are ignored. But current time should advance by the length of this track. This is not the case now:
> csvscrob -t 0:00:00 12_you_suffer.ogg 01_continue.ogg
track too short (4s), skipping.
"Lull", "Continue", "Continue", "2017-04-30 00:04:00", "", "3720"
The 2nd track should be scrobbled at 00:04:04.
Double quotes embedded in the titles should be escaped by doubling them, e.g.:
Theme From "To Kill a Dead Man"
becomes Theme From ""To Kill a Dead Man""
Something like:
> csvscrob -t now <files ...>
> csvscrob -t "2017-04-29 23:58:45" 01_stream_endless.ogg
"Lull", "Stream Endless", "Dreamt About Dreaming", "2017-04-30 01:02:45", "", "709
This is correctly scrobbled after 4 minutes, but for some reason one hour is added to the time.
Perhaps UTF-8 output should remain the default, but there could be a command line switch for disabling it.
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.