Skip to content

Commit

Permalink
Add example to README
Browse files Browse the repository at this point in the history
  • Loading branch information
jeselnik committed Jan 21, 2020
1 parent 64f1602 commit 3b4d71c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ All that is required is an installation of the Rust toolchain and a last.fm [API

A .scrobbler.log file looks like this:

(placeholder)
```
#AUDIOSCROBBLER/1.1
#TZ/UNKNOWN
#CLIENT/Rockbox ipod6g $Revision$
50 Cent Get Rich Or Die Tryin' Intro 1 6 L 1579643454
50 Cent Get Rich Or Die Tryin' What Up Gangsta 2 179 L 1579643462
```

It's a tab separated file of fields [ARTIST, ALBUM, TRACK, TRACK_POS, DURATION(sec), "RATING", TIMESTAMP(unix)].
rb-scrobbler iterates over each line, looks if the "RATING" field is marked "listened" (\tL\t),
Expand Down

0 comments on commit 3b4d71c

Please sign in to comment.