torrent-explosiv: category can be missing

This commit is contained in:
ilike2burnthing 2023-06-17 05:32:35 +01:00 committed by GitHub
parent 92ef4068ea
commit 6acba8684a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -73,6 +73,8 @@ caps:
- {id: 96, cat: Books/Other, desc: "ePaper Zeitungen"}
- {id: 136, cat: Books/EBook, desc: "ePaper E-Book"}
- {id: 137, cat: Books/Comics, desc: "ePaper Comics"}
# Other - dummy cat
- {id: 0, cat: Other, desc: "Other Other"}
modes:
search: [q]
@ -145,8 +147,12 @@ search:
fields:
category_p1:
selector: div.kat_cat_pic_name
optional: true
default: Other
category_p2:
selector: div.kat_cat_pic_name_b
optional: true
default: Other
categorydesc:
text: "{{ .Result.category_p1 }} {{ .Result.category_p2 }}"
title: