AutoDJ, Playlists, Forced Metadata Refresh, and other possible Noob questions.
  • Hi, we have recently been building out an airtime server, with hopes to create more for a growing platform.  We have run into a few hurdles, however.  We found this link AutoDJ Sweetest Vosses Tech and created and linked the folders with the correct scripts, and restarted liquidsoap, but it does not seem to be kicking in.  Which brings me to my next question: How and where are the playlist files saved on Airtime?  Our script looks like this 

    ######################################Start##################################

    # Music
    autodj = playlist("~/srv/playlists/autodj/*.mp3")

    # Some jingles
    jingles = playlist("~/srv/playlists/jingles/*.mp3")

    # If something goes wrong, we'll play this
    security = single("~/srv/playlists/autodj/*.mp3")

    # Start building the feed with music
    radio = autodj

    # Now add some jingles
    radio = random(weights = [1, 4],[jingles, radio])

    # And finally the security

    # this is added
    #please watch for the period behind the numbers below they are float

    default = fallback(track_sensitive=false,[strip_blank(max_blank=45.,threshold=-45.,default),radio])

    #########################################END#####################################

    Which connects to this:

    # AUTO DJ
    %include "autodj.liq"

    ref_off_air_meta = ref off_air_meta
    if !ref_off_air_meta == "" then
        ref_off_air_meta := "Airtime - offline"
    end
    #default = rewrite_metadata([("title", !ref_off_air_meta)], default)
    ignore(output.dummy(default, fallible=true))

    Which are both in /srv/backup/fallback, which we connected to /etc/liquidsoap per sudo ln -s /etc/liquidsoap/  /srv/airtime/backup/fallback/

    Because we dont know where playlists are created in the server, so we just made file folders as a cheap solution.  Does this script work with playlists made in the Airtime GUI?

    Next question is, not all mixes that are uploaded show the correct time.  Many show 30-40 minutes when they are in fact an hour.  Our manual fix is just to open metadata and save, but cant we either do a force refresh, or some kind of automatic metadata conversion upon ingest?

    Last question, anyone know why BUTT 0.1.14 doesnt work with 2.5.1?  Is there a patch for it?

    Thank you very much for any help that is provided.


  • 1 Comment sorted by
  • oh, last question is what is the correct script to force delete a scheduled song?