Merge branch 'develop' into feat/genre-tag-changes

# Conflicts:
#	README.md
#	helpers/misc.py
#	media/trakt.py
#	traktarr.py
pull/28/head
James 7 years ago
commit e1a2d6e9ed

@ -25,7 +25,8 @@
--- ---
[![made-with-python](https://img.shields.io/badge/Made%20with-Python-blue.svg)](https://www.python.org/) [![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://github.com/l3uddz/traktarr/blob/master/LICENSE) [![made-with-python](https://img.shields.io/badge/Made%20with-Python-blue.svg)](https://www.python.org/)
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://github.com/l3uddz/traktarr/blob/master/LICENSE)
[![Feature Requests](https://img.shields.io/badge/Requests-Feathub-blue.svg)](http://feathub.com/l3uddz/traktarr) [![Feature Requests](https://img.shields.io/badge/Requests-Feathub-blue.svg)](http://feathub.com/l3uddz/traktarr)
[![Discord](https://img.shields.io/discord/381077432285003776.svg)](https://discord.gg/xmNYmSJ) [![Discord](https://img.shields.io/discord/381077432285003776.svg)](https://discord.gg/xmNYmSJ)
@ -606,49 +607,46 @@ Sonarr configuration.
### Tags ### Tags
To show how tags work, we will create a sample tag `AMZN` and assign it to certain networks. The `tags` option allows Sonarr to assign tags to shows from specific television networks, so that Sonarr can filter in/out certain keywords from releases.
_Note: These are optional._ **Example:**
### Sonarr To show how tags work, we will create a tag `AMZN` and assign it to certain television networks that usually have AMZN releases.
First, we will create a tag in Sonarr (Settings > Indexers > Restrictions). 1. First, we will create a tag in Sonarr (Settings > Indexers > Restrictions).
``` ```
Must contain: BluRay, Amazon, AMZN, Must contain: BluRay, Amazon, AMZN
Must not contain: Must not contain:
Tags: AMZN Tags: AMZN
``` ```
### traktarr
Finally, we will edit the traktarr config and assign the `AMZN` tag to certain networks.
```json
"tags": {
"amzn": [
"hbo",
"amc",
"usa network",
"tnt",
"starz",
"the cw",
"fx",
"fox",
"abc",
"nbc",
"cbs",
"tbs",
"amazon",
"syfy",
"cinemax",
"bravo",
"showtime",
"paramount network"
]
}
``` 2. And, finally, we will edit the traktarr config and assign the `AMZN` tag to some networks.
```json
"tags": {
"amzn": [
"hbo",
"amc",
"usa network",
"tnt",
"starz",
"the cw",
"fx",
"fox",
"abc",
"nbc",
"cbs",
"tbs",
"amazon",
"syfy",
"cinemax",
"bravo",
"showtime",
"paramount network"
]
}
```
## Trakt ## Trakt

@ -2,6 +2,7 @@
import os.path import os.path
import sys import sys
import time import time
import signal
import click import click
import schedule import schedule
@ -703,13 +704,19 @@ def init_notifications():
return return
# Handles exit signals, cancels jobs and exits cleanly
def exit_handler(signum, frame):
log.info(f"Received {signal.Signals(signum).name}, canceling jobs and exiting.")
schedule.clear()
exit()
############################################################ ############################################################
# MAIN # MAIN
############################################################ ############################################################
if __name__ == "__main__": if __name__ == "__main__":
print(""" print("""
,--. ,--. ,--. ,--. ,--. ,--.
,-' '-.,--.--. ,--,--.| |,-.,-' '-. ,--,--.,--.--.,--.--. ,-' '-.,--.--. ,--,--.| |,-.,-' '-. ,--,--.,--.--.,--.--.
'-. .-'| .--'' ,-. || /'-. .-'' ,-. || .--'| .--' '-. .-'| .--'' ,-. || /'-. .-'' ,-. || .--'| .--'
@ -724,5 +731,11 @@ if __name__ == "__main__":
######################################################################### #########################################################################
# GNU General Public License v3.0 # # GNU General Public License v3.0 #
######################################################################### #########################################################################
""") """)
# Register the signal handlers
signal.signal(signal.SIGTERM, exit_handler)
signal.signal(signal.SIGINT, exit_handler)
# Start application
app() app()

Loading…
Cancel
Save