nzbgetcom / nzbget

Efficient usenet downloader
https://nzbget.com
GNU General Public License v2.0
355 stars 16 forks source link

Videosort error when using RSS #434

Open Helieux opened 2 days ago

Helieux commented 2 days ago

Videosort has been working well for me until recently when I tried to use it to rename file from RSS.

Download via RSS will cause the pp failure below:

error   Mon Nov 18 2024 17:21:04    Post-process-script VideoSort for XYZ failed
error   Mon Nov 18 2024 17:21:04    Video Sort: expected string or bytes-like object, got 'list'
error   Mon Nov 18 2024 17:21:04    Video Sort: Failed: XYZ
info    Mon Nov 18 2024 17:21:04    Video Sort: TypeError: expected string or bytes-like object, got 'list'
info    Mon Nov 18 2024 17:21:04    Video Sort: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
info    Mon Nov 18 2024 17:21:04    Video Sort: return _compile(pattern, flags).sub(repl, string, count)
info    Mon Nov 18 2024 17:21:04    Video Sort: File "C:\Program Files\Python312\Lib\re\__init__.py", line 186, in sub
info    Mon Nov 18 2024 17:21:04    Video Sort: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
info    Mon Nov 18 2024 17:21:04    Video Sort: title = re.sub(r"[\"\:\?\*\\\/\<\>\|]", " ", name)
info    Mon Nov 18 2024 17:21:04    Video Sort: File "D:\NZBGet\Scripts\VideoSort\main.py", line 427, in get_titles
info    Mon Nov 18 2024 17:21:04    Video Sort: ^^^^^^^^^^^^^^^^^^^^^^^^
info    Mon Nov 18 2024 17:21:04    Video Sort: show_tname, show_tname_two, show_tname_three = get_titles(series, True)
info    Mon Nov 18 2024 17:21:04    Video Sort: File "D:\NZBGet\Scripts\VideoSort\main.py", line 634, in add_series_mapping
info    Mon Nov 18 2024 17:21:04    Video Sort: add_series_mapping(guess, mapping)
info    Mon Nov 18 2024 17:21:04    Video Sort: File "D:\NZBGet\Scripts\VideoSort\main.py", line 1054, in construct_path
info    Mon Nov 18 2024 17:21:04    Video Sort: ^^^^^^^^^^^^^^^^^^^^^^^^
info    Mon Nov 18 2024 17:21:04    Video Sort: new_path = construct_path(old_path)
info    Mon Nov 18 2024 17:21:04    Video Sort: File "D:\NZBGet\Scripts\VideoSort\main.py", line 1165, in <module>
info    Mon Nov 18 2024 17:21:04    Video Sort: Traceback (most recent call last):
info    Mon Nov 18 2024 17:21:03    Executing post-process-script VideoSort for XYZ
dnzbk commented 2 days ago

Thanks, I'll look into it. And thanks for the link to nzb and RSS - they'll be verry useful but please share such links to denis@nzbget.com next time.

liv-mrr commented 2 days ago

Helieux What version of Python do you have? Show the STATUS page, please

Helieux commented 2 days ago

Screenshot 2024-11-19 at 20 34 40 @liv-mrr Python v3.12.6

Helieux commented 2 days ago

Thanks, I'll look into it. And thanks for the link to nzb and RSS - they'll be verry useful but please share such links to denis@nzbget.com next time.

@dnzbk, Thanks, I will remove the filename for privacy in the original post.