-
Notifications
You must be signed in to change notification settings - Fork 135
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
Add scripts for rss auto download #678
base: master
Are you sure you want to change the base?
Conversation
there are several features mixed in this PR, would you mind split them? |
You want one PR for the script & one for the header? |
there are also nix file and editor config file |
yes
|
I removed the nix & editorconfig files, there was no need to push them mb. I created a PR for the user agent #779 |
5cce493
to
9339748
Compare
can you add some example for potential users of this feature? |
Sure, where do you want me to place this example? I'm using the following script to download every item in the rss that has the same name as one of the existing folders: #!/usr/bin/env bash
set -e
# Retrive name from rss title ($1) & remove special chars
name=$(guessit "$1" -P "title" | tr -d "[:punct:]")
# Check if we should download the item (if not grep will return 1)
ls /mnt/kyoo/shows/ | tr -d "[:punct:]" | grep -qix "$name"
echo "Downloading $1"
exit 80 |
b6eef36
to
b256916
Compare
Description
Allow users to define a script to decide if a rss item should be downloaded or not. If the scripts return the magic code of 80 (and regex match if it is specified), the item will be downloaded.
This PR also specifies a user agent of 'flood' for http requests used to retrieve the rss since some servers sent 403 when no user agent was specified.
Related Issue
Screenshots
Types of changes