- author: Thiago Andrade thiagoh@gmail.com
- license: GPLv3
- description:
- watches the given paths for changes
- and executes a given command when changes occur
- usage:
- watchfiles <paths...>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| import tidalapi | |
| import json | |
| from pathlib import Path | |
| from configparser import ConfigParser | |
| strawberry_conf_file_path = str(Path.home()) + "/.config/strawberry/strawberry.conf" | |
| strawberry_conf_file = ConfigParser() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| import tidalapi | |
| import json | |
| from pathlib import Path | |
| from configparser import ConfigParser | |
| strawberry_conf_file_path = str(Path.home()) + "/.config/strawberry/strawberry.conf" | |
| strawberry_conf_file = ConfigParser() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| radarr_label="movies" | |
| # Make sure we're working on torrents. | |
| if ! [[ "${radarr_moviefile_sourcepath}" =~ torrent ]]; then | |
| echo "[Torrent Symlink] Path ${radarr_moviefile_sourcepath} does not contain \"torrent\", exiting." | |
| exit | |
| fi | |
| # If the source file doesn't exist, error out. |