[44] Merge remote-tracking branch 'yozora/docfixes' into nightly

pull/1949/head
meisnate12 8 months ago
commit f5c5aa345d

@ -8,14 +8,14 @@ Updated tmdbapis requirement to 1.2.7
Due to FlixPatrol moving a lot of their data behind a paywall and them reworking their pages to remove IMDb IDs and TMDb IDs the flixpatrol builders and default files have been removed. There currently are no plans to re-add them. Due to FlixPatrol moving a lot of their data behind a paywall and them reworking their pages to remove IMDb IDs and TMDb IDs the flixpatrol builders and default files have been removed. There currently are no plans to re-add them.
# New Features # New Features
Added new [BoxOfficeMojo Builder](https://metamanager.wiki/en/latest/files/builders/mojo/) - credit to @nwithan8 for the suggestion and initial code submission
Added `monitor_existing` to sonarr and radarr. To update the monitored status of items existing in plex to match the `monitor` declared. Added `monitor_existing` to sonarr and radarr. To update the monitored status of items existing in plex to match the `monitor` declared.
Added [Gotify](https://gotify.net/) as a notification service. Thanks @krstn420 for the initial code. Added [Gotify](https://gotify.net/) as a notification service. Thanks @krstn420 for the initial code.
Added [Trakt and MyAnimeList Authentication Page](https://metamanager.wiki/en/latest/config/auth/) allowing users to authenticate against those services directly from the wiki. credit to @chazlarson for developing the script
# Updates # Updates
Reworked PMM Default Streaming [Collections](https://metamanager.wiki/en/latest/defaults/both/streaming) and [Overlays](https://metamanager.wiki/en/latest/defaults/overlays/streaming) to utilize TMDB Watch Provider data, allowing users to customize regions without relying on mdblist. This data will be more accurate and up-to-date now. Reworked PMM Default Streaming [Collections](https://metamanager.wiki/en/latest/defaults/both/streaming) and [Overlays](https://metamanager.wiki/en/latest/defaults/overlays/streaming) to utilize TMDB Watch Provider data, allowing users to customize regions without relying on mdblist. This data will be more accurate and up-to-date now.
Added new [BoxOfficeMojo Builder](https://metamanager.wiki/en/latest/files/builders/mojo/) - credit to @nwithan8 for the suggestion and initial code submission
Added new [`trakt_chart` attributes](https://metamanager.wiki/en/latest/files/builders/trakt/#trakt-chart) `network_ids`, `studio_ids`, `votes`, `tmdb_ratings`, `tmdb_votes`, `imdb_ratings`, `imdb_votes`, `rt_meters`, `rt_user_meters`, `metascores` and removed the deprecated `network` attribute Added new [`trakt_chart` attributes](https://metamanager.wiki/en/latest/files/builders/trakt/#trakt-chart) `network_ids`, `studio_ids`, `votes`, `tmdb_ratings`, `tmdb_votes`, `imdb_ratings`, `imdb_votes`, `rt_meters`, `rt_user_meters`, `metascores` and removed the deprecated `network` attribute
Added [Trakt and MyAnimeList Authentication Page](https://metamanager.wiki/en/latest/config/auth/) allowing users to authenticate against those services directly from the wiki. credit to @chazlarson for developing the script
Trakt Builder `trakt_userlist` value `recommendations` removed and `favorites` added. Trakt Builder `trakt_userlist` value `recommendations` removed and `favorites` added.
Mass Update operations now can be given a list of sources to fall back on when one fails including a manual source. Mass Update operations now can be given a list of sources to fall back on when one fails including a manual source.
`mass_content_rating_update` has a new source `mdb_age_rating` `mass_content_rating_update` has a new source `mdb_age_rating`

@ -507,7 +507,7 @@ The available attributes for each library are as follows:
upgrade_existing: false upgrade_existing: false
monitor_existing: false monitor_existing: false
root_folder_path: /movies root_folder_path: /movies
monitor: movie monitor: false
availability: released availability: released
tag: tag:
search: false search: false

@ -29,7 +29,7 @@ radarr:
upgrade_existing: false upgrade_existing: false
monitor_existing: false monitor_existing: false
root_folder_path: S:/Movies root_folder_path: S:/Movies
monitor: movie monitor: false
availability: announced availability: announced
quality_profile: HD-1080p quality_profile: HD-1080p
tag: pmm tag: pmm
@ -80,7 +80,7 @@ radarr:
upgrade_existing: # upgrade_existing: #
monitor_existing: # monitor_existing: #
root_folder_path: /movies root_folder_path: /movies
monitor: movie monitor: false
availability: announced availability: announced
quality_profile: HD-1080p quality_profile: HD-1080p
tag: tag:
@ -146,7 +146,7 @@ radarr:
upgrade_existing: false upgrade_existing: false
monitor_existing: false monitor_existing: false
root_folder_path: /movies root_folder_path: /movies
monitor: movie monitor: false
availability: released availability: released
tag: tag:
search: false search: false

@ -295,7 +295,6 @@ table.dualTable td, table.dualTable th {
/* Custom tooltips */ /* Custom tooltips */
.md-tooltip { .md-tooltip {
background-color: var(--md-primary-fg-color);
border-radius: 6px; border-radius: 6px;
} }

@ -417,31 +417,35 @@ class IMDb:
imdb_ids = [] imdb_ids = []
logger.ghost("Parsing Page 1") logger.ghost("Parsing Page 1")
response_json = self._graph_request(json_obj) response_json = self._graph_request(json_obj)
total = response_json["data"]["advancedTitleSearch"]["total"] try:
limit = data["limit"] total = response_json["data"]["advancedTitleSearch"]["total"]
if limit < 1 or total < limit: limit = data["limit"]
limit = total if limit < 1 or total < limit:
remainder = limit % item_count limit = total
if remainder == 0: remainder = limit % item_count
remainder = item_count if remainder == 0:
num_of_pages = math.ceil(int(limit) / item_count) remainder = item_count
end_cursor = response_json["data"]["advancedTitleSearch"]["pageInfo"]["endCursor"] num_of_pages = math.ceil(int(limit) / item_count)
imdb_ids.extend([n["node"]["title"]["id"] for n in response_json["data"]["advancedTitleSearch"]["edges"]]) end_cursor = response_json["data"]["advancedTitleSearch"]["pageInfo"]["endCursor"]
if num_of_pages > 1: imdb_ids.extend([n["node"]["title"]["id"] for n in response_json["data"]["advancedTitleSearch"]["edges"]])
for i in range(2, num_of_pages + 1): if num_of_pages > 1:
start_num = (i - 1) * item_count + 1 for i in range(2, num_of_pages + 1):
logger.ghost(f"Parsing Page {i}/{num_of_pages} {start_num}-{limit if i == num_of_pages else i * item_count}") start_num = (i - 1) * item_count + 1
json_obj["variables"]["after"] = end_cursor logger.ghost(f"Parsing Page {i}/{num_of_pages} {start_num}-{limit if i == num_of_pages else i * item_count}")
response_json = self._graph_request(json_obj) json_obj["variables"]["after"] = end_cursor
end_cursor = response_json["data"]["advancedTitleSearch"]["pageInfo"]["endCursor"] response_json = self._graph_request(json_obj)
ids_found = [n["node"]["title"]["id"] for n in response_json["data"]["advancedTitleSearch"]["edges"]] end_cursor = response_json["data"]["advancedTitleSearch"]["pageInfo"]["endCursor"]
if i == num_of_pages: ids_found = [n["node"]["title"]["id"] for n in response_json["data"]["advancedTitleSearch"]["edges"]]
ids_found = ids_found[:remainder] if i == num_of_pages:
imdb_ids.extend(ids_found) ids_found = ids_found[:remainder]
logger.exorcise() imdb_ids.extend(ids_found)
if len(imdb_ids) > 0: logger.exorcise()
return imdb_ids if len(imdb_ids) > 0:
raise Failed("IMDb Error: No IMDb IDs Found") return imdb_ids
raise Failed("IMDb Error: No IMDb IDs Found")
except KeyError:
logger.error(f"Response: {response_json}")
raise
def _award(self, data): def _award(self, data):
final_list = [] final_list = []

Loading…
Cancel
Save