Skip to content

Instantly share code, notes, and snippets.

@Ulrar
Created June 29, 2015 16:38
Show Gist options
  • Save Ulrar/7434eb6c45e09c5ad0f5 to your computer and use it in GitHub Desktop.
Save Ulrar/7434eb6c45e09c5ad0f5 to your computer and use it in GitHub Desktop.
Doc download_url

Configure download URL

Introduction

Available in General -> Interface, the field download url allows you to specify where the episodes can be downloaded. If configured, a column is added in the episode list with a "Download" link. It's simply generated using the URL configured in the download URL field + the name of the show + the name of the episode. For example, if the download url is set to http://shows.domain.tld/, for the show Firefly the url generated for the first episode could be http://shows.domain.tld/Firefly/Season%2001/Firefly%20-%201x01%20-%20The%20Train%20Job.mp4 (probably different for you since it depends on your naming convention).

You do need a separate webserver with a vhost configured to make the shows available.

Apache Example configuration if you use apache, assuming your shows are stored in /home/user/shows :

    <Directory "/home/user/shows">
       Order deny,allow
       Allow from all
    </directory>
  </virtualhost>

nginx Example configuration for nginx :

        access_log                      /var/log/nginx/shows.access_log;
        error_log                       /var/log/nginx/shows.error_log;
  
        root                            /home/user/shows;
        location /
        {
           autoindex                    on;
        }
  }

TODO - Make subtitles available for download too - Allow to setup a different download URL for each show root directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment