Skip to content

Commit

Permalink
Key error decode fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Sep 11, 2024
1 parent 650e139 commit c038481
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 17 deletions.
24 changes: 12 additions & 12 deletions config.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Password = "CHANGE_ME"
# Toggle whether to manage the Servarr instance torrents.
Managed = true

# The URL used to access Servarr interface (if you use a domain enter the domain without a port)
# The URL used to access Servarr interface eg. http://ip:port (if you use a domain enter the domain without a port)
URI = "CHANGE_ME"

# The Servarr API Key, Can be found it Settings > General > Security
Expand Down Expand Up @@ -159,7 +159,7 @@ PrioritizeTodaysReleases = true
# Search Ombi for pending requests (Will only work if 'SearchMissing' is enabled.)
SearchOmbiRequests = false

# Ombi URI (Note that this has to be the instance of Ombi which manage the Arr instance request (If you have multiple Ombi instances)
# Ombi URI eg. http://ip:port (Note that this has to be the instance of Ombi which manage the Arr instance request (If you have multiple Ombi instances)
OmbiURI = "CHANGE_ME"

# Ombi's API Key
Expand All @@ -174,7 +174,7 @@ ApprovedOnly = true
# If this and Ombi are both enable, Ombi will be ignored
SearchOverseerrRequests = false

# Overseerr's URI
# Overseerr's URI eg. http://ip:port
OverseerrURI = "CHANGE_ME"

# Overseerr's API Key
Expand Down Expand Up @@ -278,7 +278,7 @@ AddTags = ["qBitrr-anime"]
# Toggle whether to manage the Servarr instance torrents.
Managed = true

# The URL used to access Servarr interface (if you use a domain enter the domain without a port)
# The URL used to access Servarr interface eg. http://ip:port (if you use a domain enter the domain without a port)
URI = "CHANGE_ME"

# The Servarr API Key, Can be found it Settings > General > Security
Expand Down Expand Up @@ -362,7 +362,7 @@ PrioritizeTodaysReleases = true
# Search Ombi for pending requests (Will only work if 'SearchMissing' is enabled.)
SearchOmbiRequests = false

# Ombi URI (Note that this has to be the instance of Ombi which manage the Arr instance request (If you have multiple Ombi instances)
# Ombi URI eg. http://ip:port (Note that this has to be the instance of Ombi which manage the Arr instance request (If you have multiple Ombi instances)
OmbiURI = "CHANGE_ME"

# Ombi's API Key
Expand All @@ -377,7 +377,7 @@ ApprovedOnly = true
# If this and Ombi are both enable, Ombi will be ignored
SearchOverseerrRequests = false

# Overseerr's URI
# Overseerr's URI eg. http://ip:port
OverseerrURI = "CHANGE_ME"

# Overseerr's API Key
Expand Down Expand Up @@ -481,7 +481,7 @@ AddTags = ["qBitrr-anime"]
# Toggle whether to manage the Servarr instance torrents.
Managed = true

# The URL used to access Servarr interface (if you use a domain enter the domain without a port)
# The URL used to access Servarr interface eg. http://ip:port (if you use a domain enter the domain without a port)
URI = "CHANGE_ME"

# The Servarr API Key, Can be found it Settings > General > Security
Expand Down Expand Up @@ -561,7 +561,7 @@ TempQualityProfile = "CHANGE_ME"
# Search Ombi for pending requests (Will only work if 'SearchMissing' is enabled.)
SearchOmbiRequests = false

# Ombi URI (Note that this has to be the instance of Ombi which manage the Arr instance request (If you have multiple Ombi instances)
# Ombi URI eg. http://ip:port (Note that this has to be the instance of Ombi which manage the Arr instance request (If you have multiple Ombi instances)
OmbiURI = "CHANGE_ME"

# Ombi's API Key
Expand All @@ -576,7 +576,7 @@ ApprovedOnly = true
# If this and Ombi are both enable, Ombi will be ignored
SearchOverseerrRequests = false

# Overseerr's URI
# Overseerr's URI eg. http://ip:port
OverseerrURI = "CHANGE_ME"

# Overseerr's API Key
Expand Down Expand Up @@ -693,7 +693,7 @@ SuperSeedMode = false
# Toggle whether to manage the Servarr instance torrents.
Managed = true

# The URL used to access Servarr interface (if you use a domain enter the domain without a port)
# The URL used to access Servarr interface eg. http://ip:port (if you use a domain enter the domain without a port)
URI = "CHANGE_ME"

# The Servarr API Key, Can be found it Settings > General > Security
Expand Down Expand Up @@ -773,7 +773,7 @@ TempQualityProfile = "CHANGE_ME"
# Search Ombi for pending requests (Will only work if 'SearchMissing' is enabled.)
SearchOmbiRequests = false

# Ombi URI (Note that this has to be the instance of Ombi which manage the Arr instance request (If you have multiple Ombi instances)
# Ombi URI eg. http://ip:port (Note that this has to be the instance of Ombi which manage the Arr instance request (If you have multiple Ombi instances)
OmbiURI = "CHANGE_ME"

# Ombi's API Key
Expand All @@ -788,7 +788,7 @@ ApprovedOnly = true
# If this and Ombi are both enable, Ombi will be ignored
SearchOverseerrRequests = false

# Overseerr's URI
# Overseerr's URI eg. http://ip:port
OverseerrURI = "CHANGE_ME"

# Overseerr's API Key
Expand Down
5 changes: 3 additions & 2 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -2677,10 +2677,11 @@ def db_update_single_series(
requests.exceptions.ContentDecodingError,
requests.exceptions.ConnectionError,
JSONDecodeError,
KeyError,
):
completed = True
except KeyError:
self.logger.warning("Key Error [%s]", db_entry["id"])
# except KeyError:
# self.logger.warning("Key Error [%s]", db_entry["id"])
QualityUnmet = (
db_entry["episodeFile"]["qualityCutoffNotMet"]
if "episodeFile" in db_entry
Expand Down
8 changes: 5 additions & 3 deletions qBitrr/gen_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def _gen_default_cat(category: str, config: TOMLDocument):
)
_gen_default_line(
cat_default,
"The URL used to access Servarr interface "
"The URL used to access Servarr interface eg. http://ip:port"
"(if you use a domain enter the domain without a port)",
"URI",
"CHANGE_ME",
Expand Down Expand Up @@ -665,7 +665,7 @@ def _gen_default_ombi_table(category: str, search_table: Table):
)
_gen_default_line(
ombi_table,
"Ombi URI (Note that this has to be the instance of Ombi which manage the Arr instance request (If you have multiple Ombi instances)",
"Ombi URI eg. http://ip:port (Note that this has to be the instance of Ombi which manage the Arr instance request (If you have multiple Ombi instances)",
"OmbiURI",
"CHANGE_ME",
)
Expand All @@ -685,7 +685,9 @@ def _gen_default_overseerr_table(category: str, search_table: Table):
"SearchOverseerrRequests",
False,
)
_gen_default_line(overseerr_table, "Overseerr's URI", "OverseerrURI", "CHANGE_ME")
_gen_default_line(
overseerr_table, "Overseerr's URI eg. http://ip:port", "OverseerrURI", "CHANGE_ME"
)
_gen_default_line(overseerr_table, "Overseerr's API Key", "OverseerrAPIKey", "CHANGE_ME")
_gen_default_line(overseerr_table, "Only process approved requests", "ApprovedOnly", True)
overseerr_table.add(comment("Only for 4K Instances"))
Expand Down

0 comments on commit c038481

Please sign in to comment.