# My "AutoDJ" liquidsoap code. What is yours?

**URL:** <https://discourse.libretime.org/t/my-autodj-liquidsoap-code-what-is-yours/1448>\
**Category:** Uncategorized\
**Created:** [April 4, 2023, 4:32pm UTC](https://discourse.libretime.org/t/my-autodj-liquidsoap-code-what-is-yours/1448 "2023-04-04T16:32:20Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![NessRadio](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/nessradio/32/839_2.png) [@NessRadio](https://discourse.libretime.org/u/NessRadio)\
**Post date:** [July 22, 2025, 2:25pm UTC](https://discourse.libretime.org/t/my-autodj-liquidsoap-code-what-is-yours/1448/7 "2025-07-22T14:25:40Z")

</div>

I just updated the code and the method.

> [@“AutoDJ” liquidsoap code for 4.5.0 (updated)](https://discourse.libretime.org/t/autodj-liquidsoap-code-for-4-5-0/1927):
>
> I’ve extended the default Liquidsoap setup to automatically play a random music playlist whenever no shows are scheduled or a DJ isn’t live. I tested it on LibreTime 4.5.0, and it appears to work just as well on earlier releases. The core steps are: 1- Create autodj.liq sudo nano /opt/libretime/lib/python3.9/site-packages/libretime\_playout/liquidsoap/1.4/autodj.liq Copy&past the code below and change path and .mp3 accordingly # Your jingles jingles = playlist("/myradio/jingle") # Your backu…

Enjoy!

---

_[View the full topic](https://discourse.libretime.org/t/my-autodj-liquidsoap-code-what-is-yours/1448)._
