linuxserver / docker-qbittorrent

GNU General Public License v3.0
1.04k stars 150 forks source link

[BUG] Search plugin does not work after updating to 5.0 #346

Open KK612 opened 1 week ago

KK612 commented 1 week ago

Is there an existing issue for this?

Current Behavior

No search plugins are available under the search tab and clicking the install button and input an url still nothing happens 7321

Expected Behavior

No response

Steps To Reproduce

update to v5.0

Environment

- OS:openmediavault
- How docker service was installed:Via offical OMV plugins

CPU architecture

x86-64

Docker creation

version: "2.1"
services:
  qbittorrent:
    image: lscr.io/linuxserver/qbittorrent:latest
    container_name: qbittorrent
    environment:
      - PUID=1000
      - PGID=100
      - TZ=Asia/Hong_Kong
      - WEBUI_PORT=8080
    volumes:
      - /docker/appdata/qbittorrent:/config
      - /downloads/qbittorrent:/downloads
    ports:
      - 8080:8080
      - 6881:6881
      - 6881:6881/udp
    restart: unless-stopped

Container logs

Could not parse Nova search engine capabilities, msg:  
Error:  /config/qBittorrent/nova3/engines/tokyotoshokan.py:39: SyntaxWarning: invalid escape sequence '\s'
  self.get_size_regex = re_compile(".*Size:\s+([^ ]*)\s+.*")
/config/qBittorrent/nova3/engines/tokyotoshokan.py:102: SyntaxWarning: invalid escape sequence '\?'
  additional_links = re_compile("\?lastid=[0-9]+&page=[0-9]+&terms={}".format(query.replace('%20', '\\+')))
/config/qBittorrent/nova3/engines/pornrips.py:25: SyntaxWarning: invalid escape sequence '\d'
  size_pattern = re.compile('(\d+ ?\w+)')
/config/qBittorrent/nova3/engines/magnetdl.py:17: SyntaxWarning: invalid escape sequence '\s'
  '<td\sclass="m"><a\shref="(magnet.*?)"\stitle=".*?class="n"><a\shref="(.*?)"\stitle="(.*?)">.*?<td\sclass="t.">.*?</td><td>.*?</td><td>(.*?)</td><td\sclass="s">(.*?)</td><td\sclass="l">(.*?)</td>')
Traceback (most recent call last):
  File "/config/qBittorrent/nova3/nova2.py", line 266, in <module>
    main(sys.argv[1:])
  File "/config/qBittorrent/nova3/nova2.py", line 224, in main
    displayCapabilities(supported_engines)
  File "/config/qBittorrent/nova3/nova2.py", line 172, in displayCapabilities
    "".join(engines_to_xml(supported_engines)),
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/qBittorrent/nova3/nova2.py", line 154, in engines_to_xml
    tab, tab, "<name>", search_engine.name, "</name>\n",
                        ^^^^^^^^^^^^^^^^^^
AttributeError: type object 'tokyotoshokan' has no attribute 'name'
Could not parse Nova search engine capabilities, msg:  
Error:  Traceback (most recent call last):
  File "/config/qBittorrent/nova3/nova2.py", line 266, in <module>
    main(sys.argv[1:])
  File "/config/qBittorrent/nova3/nova2.py", line 224, in main
    displayCapabilities(supported_engines)
  File "/config/qBittorrent/nova3/nova2.py", line 172, in displayCapabilities
    "".join(engines_to_xml(supported_engines)),
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/qBittorrent/nova3/nova2.py", line 154, in engines_to_xml
    tab, tab, "<name>", search_engine.name, "</name>\n",
                        ^^^^^^^^^^^^^^^^^^
AttributeError: type object 'tokyotoshokan' has no attribute 'name'
Catching signal: SIGTERM
Exiting cleanly
[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────
      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝
   Brought to you by linuxserver.io
───────────────────────────────────────
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID:    1000
User GID:    100
───────────────────────────────────────
Linuxserver.io version: 5.0.1-r0-ls362
Build-date: 2024-11-02T05:49:15+00:00
───────────────────────────────────────

[custom-init] No custom files found, skipping...
WebUI will be started shortly after internal preparations. Please wait...
******** Information ********
To control qBittorrent, access the WebUI at: http://localhost:8080
Connection to localhost (::1) 8080 port [tcp/http-alt] succeeded!
[ls.io-init] done.
Could not parse Nova search engine capabilities, msg:  
Error:  Traceback (most recent call last):
  File "/config/qBittorrent/nova3/nova2.py", line 266, in <module>
    main(sys.argv[1:])
  File "/config/qBittorrent/nova3/nova2.py", line 224, in main
    displayCapabilities(supported_engines)
  File "/config/qBittorrent/nova3/nova2.py", line 172, in displayCapabilities
    "".join(engines_to_xml(supported_engines)),
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/qBittorrent/nova3/nova2.py", line 154, in engines_to_xml
    tab, tab, "<name>", search_engine.name, "</name>\n",
                        ^^^^^^^^^^^^^^^^^^
AttributeError: type object 'tokyotoshokan' has no attribute 'name'
github-actions[bot] commented 1 week ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.