s0len / meta-manager-config

GNU General Public License v3.0
27 stars 13 forks source link

400 error on download #20

Open dweagle79 opened 7 months ago

dweagle79 commented 7 months ago

Not sure what this means. It's the only error I get from your overlays.

Overlay Error: Status 400 when attempting download of: https://raw.githubusercontent.com/s0len/meta-manager-config/main/overlays/network-top-left/#0.png |

ymendel commented 7 months ago

You need to use https://raw.githubusercontent.com/s0len/meta-manager-config/main/overlays/network-top-left/%230.png

The # is a special character.

If you're getting #0 as a variable in PMM and not some hard-coded text, then use the _encoded version of the variable. (see https://metamanager.wiki/en/latest/files/templates/?h=_encoded#template-definition)

shanester64 commented 6 months ago

Same results here. The script runs, with the network overlays and status with exception... Here are the last errors of the log..

Plex Error: network: Crave not found Overlay Error: Status 400 when attempting download of: https://raw.githubusercontent.com/s0len/meta-manager-config/main/overlays/network-top-left/#0.png

Using the code from the exampleconfig (replacing pmm with default, per kometa)

Droppisalt commented 6 months ago

@dweagle79 @shanester64 Not sure for Shane's Crave error. But for the #0.png error, here's what I did (last line):

- default: network
  template_variables:
    horizontal_align: left
    horizontal_offset: 0
    vertical_offset: 0
    vertical_align: top
    back_width: 1000
    back_height: 1500
    url: https://raw.githubusercontent.com/s0len/meta-manager-config/main/overlays/network-top-left/<<key>>.png
    url_#0: https://raw.githubusercontent.com/s0len/meta-manager-config/main/overlays/network-top-left/%230.png
shanester64 commented 5 months ago

I added the line url_#0: https://raw.githubusercontent.com/s0len/meta-manager-config/main/overlays/network-top-left/%230.png which helped.. Still get the crave error. The error appears to come from the call to:

Below are the logs and a section of my config.yaml

[2024-05-07 02:30:18,723] [builder.py:204] [INFO] ==================================================================================================== [2024-05-07 02:30:18,723] [builder.py:204] [INFO] Plex Overlay in TV Shows [2024-05-07 02:30:18,723] [builder.py:204] [INFO] ==================================================================================================== [2024-05-07 02:30:18,723] [builder.py:205] [INFO] [2024-05-07 02:30:18,723] [builder.py:244] [INFO] ==================================== Validating Plex Attributes ==================================== [2024-05-07 02:30:18,723] [plex.py:1055] [DEBUG] [2024-05-07 02:30:18,740] [plex.py:1058] [DEBUG] Looking for: Plex [2024-05-07 02:30:18,740] [overlay.py:101] [DEBUG] [2024-05-07 02:30:18,740] [overlay.py:102] [DEBUG] Validating Method: overlay [2024-05-07 02:30:18,740] [overlay.py:103] [DEBUG] Value: {'name': 'plex', 'url': 'https://raw.githubusercontent.com/s0len/meta-manager-config/main/overlays/network-top-left/Plex.png', 'group': 'ICONS', 'weight': 100} [2024-05-07 02:30:18,851] [builder.py:968] [DEBUG] [2024-05-07 02:30:18,851] [builder.py:972] [DEBUG] Validating Method: plex_all [2024-05-07 02:30:18,851] [builder.py:973] [DEBUG] Value: True [2024-05-07 02:30:18,851] [builder.py:1153] [INFO] [2024-05-07 02:30:18,851] [builder.py:1154] [INFO] Validation Successful [2024-05-07 02:30:18,851] [overlays.py:559] [INFO] [2024-05-07 02:30:18,851] [overlays.py:561] [INFO] ================================= Gathering Items for Plex Overlay ================================= [2024-05-07 02:30:18,851] [overlays.py:569] [DEBUG] [2024-05-07 02:30:18,851] [overlays.py:570] [DEBUG] Builder: plex_all: show [2024-05-07 02:30:18,851] [overlays.py:571] [INFO] [2024-05-07 02:30:18,851] [plex.py:1130] [INFO] Processing Plex All Shows [2024-05-07 02:30:18,864] [builder.py:2240] [DEBUG] [2024-05-07 02:30:18,864] [builder.py:2241] [DEBUG] 321 IDs Found [2024-05-07 02:30:18,864] [builder.py:2243] [DEBUG] [2024-05-07 02:30:19,026] [overlays.py:591] [INFO] 321 Items found for Overlay File (3) Plex [2024-05-07 02:30:19,026] [overlays.py:595] [INFO] [2024-05-07 02:30:19,026] [builder.py:204] [INFO] ==================================================================================================== [2024-05-07 02:30:19,026] [builder.py:204] [INFO] Overlay in TV Shows [2024-05-07 02:30:19,026] [builder.py:204] [INFO] ==================================================================================================== [2024-05-07 02:30:19,026] [builder.py:205] [INFO] [2024-05-07 02:30:19,026] [builder.py:244] [INFO] =================================== Validating Crave Attributes ==================================== [2024-05-07 02:30:19,041] [plex.py:1055] [DEBUG] [2024-05-07 02:30:19,041] [plex.py:1058] [DEBUG] Looking for: Crave [2024-05-07 02:30:19,041] [overlay.py:101] [DEBUG] [2024-05-07 02:30:19,041] [overlay.py:102] [DEBUG] Validating Method: overlay [2024-05-07 02:30:19,041] [overlay.py:103] [DEBUG] Value: {'name': 'crave', 'url': 'https://raw.githubusercontent.com/s0len/meta-manager-config/main/overlays/network-top-left/Crave.png'} [2024-05-07 02:30:19,216] [builder.py:968] [DEBUG] [2024-05-07 02:30:19,216] [builder.py:972] [DEBUG] Validating Method: plex_search [2024-05-07 02:30:19,216] [builder.py:973] [DEBUG] Value: {'all': {'network': 'Crave'}} [2024-05-07 02:30:19,312] [overlays.py:601] [DEBUG] Traceback (most recent call last): File "D:\PMM\modules\builder.py", line 1938, in _plex self.builders.append((method_name, self.build_filter("plex_search", dict_data))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PMM\modules\builder.py", line 2635, in build_filter built_filter, filter_text = _filter(base_dict, is_all=base_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PMM\modules\builder.py", line 2574, in _filter validation = self.validate_attribute(attr, modifier, final_attr, _data, validate, plex_search=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PMM\modules\builder.py", line 2759, in validate_attribute raise FilterFailed(error) modules.util.FilterFailed: Plex Error: network: Crave not found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\PMM\modules\overlays.py", line 558, in compile_overlays
builder = CollectionBuilder(self.config, overlay_file, k, v, library=self.library, overlay=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\PMM\modules\builder.py", line 1050, in init
self._plex(method_name, method_data)
File "D:\PMM\modules\builder.py", line 1943, in _plex
raise Failed(str(e))
modules.util.Failed: Plex Error: network: Crave not found
[2024-05-07 02:30:19,327] [overlays.py:602] [ERROR] Plex Error: network: Crave not found
[2024-05-07 02:30:19,327] [overlays.py:603] [INFO]
[2024-05-07 02:30:19,332] [builder.py:204] [INFO] ====================================================================================================

TV Shows: report_path: config/reports/TV_Shows.yml template_variables: use_imdb: true use_oscars: false use_common: false use_rotten: false use_metacritic: false rating1: critic rating1_image: trakt rating2: audience rating2_image: tmdb rating3: user rating3_image: imdb vertical_position: bottom collection_files:

2wenty2wo commented 2 weeks ago

I'm also getting the same 400 error for some reason