| 69 | |
| 70 | |
| 71 | def item(lib=None, **kwargs): |
| 72 | defaults = dict( |
| 73 | title="the title", |
| 74 | artist="the artist", |
| 75 | albumartist="the album artist", |
| 76 | album="the album", |
| 77 | genres=["the genre"], |
| 78 | lyricists=["the lyricist"], |
| 79 | composers=["the composer"], |
| 80 | arrangers=["the arranger"], |
| 81 | grouping="the grouping", |
| 82 | work="the work title", |
| 83 | mb_workid="the work musicbrainz id", |
| 84 | work_disambig="the work disambiguation", |
| 85 | year=1, |
| 86 | month=2, |
| 87 | day=3, |
| 88 | track=4, |
| 89 | tracktotal=5, |
| 90 | disc=6, |
| 91 | disctotal=7, |
| 92 | lyrics="the lyrics", |
| 93 | comments="the comments", |
| 94 | bpm=8, |
| 95 | comp=True, |
| 96 | length=60.0, |
| 97 | bitrate=128000, |
| 98 | format="FLAC", |
| 99 | mb_trackid="someID-1", |
| 100 | mb_albumid="someID-2", |
| 101 | mb_artistid="someID-3", |
| 102 | mb_albumartistid="someID-4", |
| 103 | mb_releasetrackid="someID-5", |
| 104 | album_id=None, |
| 105 | mtime=12345, |
| 106 | ) |
| 107 | i = beets.library.Item(**{**defaults, **kwargs}) |
| 108 | if lib: |
| 109 | lib.add(i) |
| 110 | return i |
| 111 | |
| 112 | |
| 113 | # Dummy import session. |