Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: definable custom links for the "Downloads" dropdown #58

Open
iGerman00 opened this issue Nov 27, 2022 · 0 comments
Open

Comments

@iGerman00
Copy link

Right now I have to edit the macros.html file like so:

sed -i 's/<a class="dropdown-item" href="\/qbittorrent.downloads">qBittorrent<\/a>/<a class="dropdown-item" href="\/movies">Movies<\/a>\n<a class="dropdown-item" href="\/shows">Shows<\/a>/' /opt/swizzin/templates/macros.html

(locations as I defined them in /etc/nginx/apps/qbtindex.conf):

location /movies {
    alias "/mnt/Downloads/Movies";
    include /etc/nginx/snippets/fancyindex.conf;
    # auth_basic "What's the password?";
    # auth_basic_user_file /etc/htpasswd;

  location ~* \.php$ {

  }
}
location /shows {
    alias "/mnt/Downloads/Shows";
    include /etc/nginx/snippets/fancyindex.conf;
    # auth_basic "What's the password?";
    # auth_basic_user_file /etc/htpasswd;

  location ~* \.php$ {

  }
}

But that gets annoying quite fast.

It would be nice if there was an easy way to define custom locations for the panel, for example in the cfg file. It would also be nice for swizzin to offer a way to do what I did with qbtindex.conf more easily, it took me a good dozen searches through file contents to actually find what to edit, though I don't know exactly where to request that...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant