memoryfm.ScrobbleLog.from_scrobble#
- classmethod ScrobbleLog.from_scrobble(scrobble, meta, username, tz)#
Create a ScrobbleLog from a Scrobble.
- Parameters:
- scrobble: Scrobble
A Scrobble instance.
- meta: dict, default None
A dictionary containing metadata. If
None, then it is generated from username and timezone.- username: str
A username for the ScrobbleLog
- tz: str, default None,
An IANA Timezone string. If none passed, tz is calculated. See :class:
ScrobbleLogfor more.
- Returns:
- ScrobbleLog