# Download lyrics as separate file

**URL:** <https://discourse.beets.io/t/download-lyrics-as-separate-file/1707>\
**Category:** Help\
**Created:** [February 25, 2021, 6:33am UTC](https://discourse.beets.io/t/download-lyrics-as-separate-file/1707 "2021-02-25T06:33:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amitheous](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Amitheous](https://discourse.beets.io/u/Amitheous)\
**Post date:** [February 25, 2021, 6:33am UTC](https://discourse.beets.io/t/download-lyrics-as-separate-file/1707/1 "2021-02-25T06:33:07Z")

</div>

I have my music library that I access via Plex. Currently Plex doesn’t support lyrics embedded as Metadata (apparently they are considering adding it as a feature at some point…). So I’ve got beets working and it does fetch lyrics and embeds them into each song which is great, but to get them to appear in Plex I would need to somehow get those into their own individual .lrc or .txt files. I was looking at Sphinx thinking maybe that would be related to the solution, but I’m struggling to figure things out. Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)\
**Post date:** [February 25, 2021, 12:40pm UTC](https://discourse.beets.io/t/download-lyrics-as-separate-file/1707/2 "2021-02-25T12:40:14Z")

</div>

I don’t think there’s an obvious built-in way to do that, unfortunately. You can use `beet lyrics -p` to print out lyrics and then pipe them to files, but you’d be stuck doing that one album at a time.

If you’re handy with Python, though, it doesn’t seem like an extremely hard feature to add to the lyrics plugin…

---

<div class="post-metadata">

**Author:** ![Amitheous](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Amitheous](https://discourse.beets.io/u/Amitheous)\
**Post date:** [February 25, 2021, 4:10pm UTC](https://discourse.beets.io/t/download-lyrics-as-separate-file/1707/3 "2021-02-25T16:10:03Z")

</div>

Hey thanks for the reply! Yeah I was hoping it was something built in that I may have missed. I’m familiar with the basics of Python, but don’t have a lot of free time, I may need to put this off as a project to work on in a few months ha

---

<div class="post-metadata">

**Author:** ![ctrueden](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/ctrueden/32/475_2.png) [@ctrueden](https://discourse.beets.io/u/ctrueden)\
**Post date:** [March 15, 2021, 12:55am UTC](https://discourse.beets.io/t/download-lyrics-as-separate-file/1707/4 "2021-03-15T00:55:13Z")

</div>

@Amitheous How about a shell script?

```auto
beet ls -p | while read f
do
echo "$f"
lyrics=$(beet lyrics -p "path:$f" 2>/dev/null)
lrc=$(echo "$f" | sed 's/\.[^\.]*$/.txt/')
test "$lyrics" && echo "-> $lrc" && echo "$lyrics" > "$lrc" 
done

```
