nas-movie-download
This skill automates searching and downloading movies via Jackett and qBittorrent using the provided scripts/*.sh tools. It reads JACKETT_API_KEY, QB_USERNAME, and QB_PASSWORD and runs shell scripts that call http://192.168.1.246:9117 and http://192.168.1.246:8888.
NAS Movie Download
Automated movie downloading system using Jackett for torrent search and qBittorrent for download management.
Configuration
Environment Variables
Set these environment variables for the skill to function properly:
Jackett Configuration:
JACKETT_URL: Jackett service URL (default: http://192.168.1.246:9117)JACKETT_API_KEY: Jackett API key (default: o5gp976vq8cm084cqkcv30av9v3e5jpy)
qBittorrent Configuration:
QB_URL: qBittorrent Web UI URL (default: http://192.168.1.246:8888)QB_USERNAME: qBittorrent username (default: admin)QB_PASSWORD: qBittorrent password (default: adminadmin)
Indexer Setup
The skill works with Jackett indexers. Currently configured indexers:
- The Pirate Bay
- TheRARBG
- YTS
Ensure these indexers are enabled and configured in your Jackett installation for best results.
Usage
Search Movies
Search for movies without downloading:
scripts/jackett-search.sh -q "Inception"
scripts/jackett-search.sh -q "The Matrix"
scripts/jackett-search.sh -q "死期将至" # Chinese movie names supported
Download Highest Quality Version
Search and automatically download the highest quality version:
scripts/download-movie.sh -q "Inception"
scripts/download-movie.sh -q "The Matrix"
Manual Download Workflow
For more control over the download process:
- Search:
scripts/jackett-search.sh -q "movie name" - Review results and copy magnet link
- Add to qBittorrent:
scripts/qbittorrent-add.sh -m "magnet:?xt=urn:btih:..."
Test Configuration
Verify your Jackett and qBittorrent setup:
scripts/test-config.sh
Quality Selection
The skill automatically prioritizes quality in this order:
- 4K/UHD: Contains "4K", "2160p", "UHD"
- 1080P/Full HD: Contains "1080p", "FHD"
- 720P/HD: Contains "720p", "HD"
- Other: Other quality levels
When using download-movie.sh, the highest quality available torrent will be selected automatically.
Script Details
jackett-search.sh
Search Jackett for torrents.
Parameters:
-q, --query: Search query (required)-u, --url: Jackett URL (optional, uses env var)-k, --api-key: API key (optional, uses env var)
Example:
scripts/jackett-search.sh -q "Inception" -u http://192.168.1.246:9117
qbittorrent-add.sh
Add torrent to qBittorrent.
Parameters:
-m, --magnet: Magnet link (required)-u, --url: qBittorrent URL (optional, uses env var)-n, --username: Username (optional, uses env var)-p, --password: Password (optional, uses env var)
Example:
scripts/qbittorrent-add.sh -m "magnet:?xt=urn:btih:..."
download-movie.sh
One-click search and download.
Parameters:
-q, --query: Movie name (required)
Example:
scripts/download-movie.sh -q "The Matrix"
Tips and Best Practices
- Use English movie names for better search results
- Check Jackett indexer status if searches return no results
- Monitor qBittorrent to manage download progress
- Consider storage space when downloading 4K content
- Test configuration periodically to ensure services are running
Troubleshooting
No Search Results
- Verify Jackett is running:
curl http://192.168.1.246:9117 - Check Jackett indexers are enabled in Jackett UI
- Try English movie names
- Verify API key is correct
qBittorrent Connection Failed
- Confirm qBittorrent is running
- Check Web UI is enabled in qBittorrent settings
- Verify username and password
- Ensure network connectivity to qBittorrent server
Permission Issues
Ensure scripts have execute permissions:
chmod +x scripts/*.sh
Security Notes
- Keep API keys secure and don't commit them to version control
- Use HTTPS connections when possible
- Consider setting up VPN for torrent traffic
- Monitor qBittorrent for unauthorized downloads
Dependencies
curl: For HTTP requestsjq: For JSON parsing- Bash shell
Install jq if missing:
apt-get install jq