Skip to content

Instantly share code, notes, and snippets.

@danilvalov
Last active March 23, 2024 19:47
Show Gist options
  • Save danilvalov/fecfce169d2ff0d31e53eff3e0be991e to your computer and use it in GitHub Desktop.
Save danilvalov/fecfce169d2ff0d31e53eff3e0be991e to your computer and use it in GitHub Desktop.
FlexGet: Автоматическая RSS-скачка сериалов Lostfilm.tv для новой версии сайта
templates:
global:
transmission:
host: xxxxxxxxxxxx
port: xxxx
username: xxxxxxx
password: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
tvshows:
set:
path: /tmp/mnt/222AFAA02AFA6FE1/Torrents/download/DLNA/Serials/{{series_name}}
notify:
task:
title: FlexGet Notification
template: series
via:
- email:
from: xxxxxx@xxxxxxx.com
to: xxxxxxx@xxxxxxx.com
smtp_host: xxxxxxxx
smtp_port: 25
smtp_username: xxxxxxxx@xxxxxx.com
smtp_password: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
manipulate:
- url:
replace:
regexp: '&amp'
format: '&'
tasks:
lostfilm:
headers:
cookie: "uid=xxxxxxxxxx;usess=xxxxxxxxxxxxxxx"
rss:
url: http://insearch.site/rssdd.xml
ascii: yes
template:
- global
- tvshows
regexp:
reject:
- E99
manipulate:
- title:
replace:
regexp: '(.*)\((.+)\).(.*)\s\((.+)\)\s\[(.+)\]'
format: '\2.\4.\5'
- title:
replace:
regexp: '(.*)\.MP4'
format: '\1.720p'
- title:
replace:
regexp: '(.*)\.SD'
format: '\1.480p'
include: lostfilm.yml
series:
1080p:
- Волшебники:
alternate_name: The Magicians
720p:
- Американские боги:
alternate_name: American Gods
- Барыги:
alternate_name: Narcos
480p:
- Видоизмененный углерод:
alternate_name: Altered Carbon
@v-milenin
Copy link

Судя по всему, такая ошибка возникает при наличии символа "&" в xml
image

@Zodt
Copy link

Zodt commented Nov 17, 2021

Судя по всему, такая ошибка возникает при наличии символа "&" в xml image

Замени «&» на «& amp ;»(без пробелов). Амперсант в xml формате не может храниться в чистом виде и должен быть экранирован

@superjerrry
Copy link

Как избавиться от ":" в path: {{series_name}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment