Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Script for adding external URLs ?

vmummer
2008-10-03
2013-05-30
  • vmummer
    vmummer
    2008-10-03

    Does anyone have an example of an import script that allows for adding External URLS?

    I have a list of changing External URLS that would like to present to my DLNA player.

    It currently works great when I manually enter in the External URLS, I would like to automate this process.

    TIA

     
    • Jin
      Jin
      2008-10-03

      What you want is a simple playlist (maybe with some modifications of a playlist script), put it in a directory which is set on inotify scan, this way it will get reparsed and the virtual structure gets updated each time you change the playlist.

      Kind regards,
      Jin

       
    • vmummer
      vmummer
      2008-10-10

      Does anyone have a sample of this type of playlist?

      I have only seen music playlists examples.

      Vince

       
    • Jin
      Jin
      2008-10-10

      It can be a pls version 2 playlist (like the ones seen @ shoutcast) or a simply m3u:

      http://some/url
      http://some/other/url

      pls is better because it allows you to set a title for each entry, basically - just google for m3u or pls, you will find a lot of information.

      Since you are using video items you might need to adapt the playlists.js script, so that a video upnp class is set (some players care about that) to object.item.videoItem

      Kind regards,
      Jin