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
@azgnetov
Copy link

azgnetov commented Oct 9, 2019

http://retre.org/rssdd.xml заменить на http://n.retre.org/rssdd.xml

С удивлением обнаружил, что rss сейчас необязательно указывать

@NEODjazz
Copy link

переключение на n.retre.org помогло, но не до конца
В новой версии RSS они не указывают quality для MP4 формата.
пришлось вот так звратиться

tasks:
lostfilm:
thetvdb_lookup: yes
template:
- tvshows
headers:
cookie: '{? lostfilm.cookie ?}'
rss: '{? RRSUrls.lostfilm ?}'
verify_ssl_certificates: no
regexp:
from: title
reject:
- The Complete
- mkv
- avi
- 720p
- 1080p
accept:
- "Stranger Things.*MP4"
- "American Horror Story.*MP4"
- "Batwoman.*MP4"
- "Castle Rock.*MP4"
- "The Walking Dead.*MP4"
- "Preacher.*MP4"
- "Dirk Gently's Holistic Detective Agency.*MP4"
- "Z Nation.*MP4"
- "The Punisher.*MP4"
- "Agents of S H I E L D.*MP4"
- "Supernatural.*MP4"
- "The Defenders.*MP4"
- "The 100.*MP4"
- "American Gods.*MP4"
- "Iron Fist.*MP4"
- "Legion.*MP4"
- "The Orville.*MP4"
- "The Flash.*MP4"
- "Arrow.*MP4"
- "Future Man.*MP4"
- "Legends of Tomorrow.*MP4"
- "Philip K. Dick's Electric Dreams.*MP4"
- "Luke Cage.*MP4"
- "Fear the Walking Dead.*MP4"
- "Supergirl.*MP4"
- "Inhumans.*MP4"
- "Black Lightning.*MP4"
- "Altered Carbon.*MP4"
- "Jessica Jones.*MP4"
- "Daredevil.*MP4"
- "Star Trek Discovery.*MP4"
- "Krypton.*MP4"
- "Lost in Space.*MP4"
- "Titans.*MP4"
- "Vikings.*MP4"
- "Wu Assassins.*MP4"
- "Carnival Row.*MP4"

include: series_lostfilm.yml

Кто знает как можно использовать regexp совместно с include?

@tvister
Copy link

tvister commented Jan 17, 2020

14 января lostfilm опять изменили адрес rss ленты на http://insearch.site/rssdd.xml но проблема не в этом, они убрали из rss ленты названия сериалов, оставили только какой сезон и номер серии и косяк с датой (:

> <rss version="0.91">
> <channel>
> <title>LostFilm.TV</title>
> <description>Новинки от LostFilm.TV</description>
> <link>https://www.lostfilm.tv/</link>
> <lastBuildDate>Thu, 16 Jan 2020 21:09:06 +0000</lastBuildDate>
> <language>ru</language>
> <item>
> <title> (). (S05E01) [MP4]</title>
> <category>[MP4]</category>
> <pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
> <link>http://n.tracktor.site/rssdownloader.php?id=37581</link>
> </item>
> <item>
> <title> (). (S05E01) [1080p]</title>
> <category>[1080p]</category>
> <pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
> <link>http://n.tracktor.site/rssdownloader.php?id=37580</link>
> </item>
> <item>
> <title> (). (S05E01) [SD]</title>
> <category>[SD]</category>
> <pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
> <link>http://n.tracktor.site/rssdownloader.php?id=37579</link>
> </item>

П.С. Вчера вечером ленту починили.

@nafanz
Copy link

nafanz commented Sep 30, 2020

Помоги, пожалуйста, разобраться. Это моя первая настройка flexget.
Где ошибка, почему у меня не скачиваются торрент файлы?

tasks:
  lostfilm:
    headers:
      cookie: "uid=ххх;usess=ххх"
    rss: https://www.lostfilm.run/rss.xml
    series:
      - Ratched
    download: /home/pi/

pi@xxx:~ $ flexget execute
2020-09-30 20:46 VERBOSE  task_queue                    There are 1 tasks to execute. Shutdown will commence when they have completed.
2020-09-30 20:46 VERBOSE  details       lostfilm        Produced 15 entries.
2020-09-30 20:46 VERBOSE  details       lostfilm        Summary - Accepted: 0 (Rejected: 0 Undecided: 15 Failed: 0)

@leaf-avf
Copy link

leaf-avf commented Oct 1, 2020

Помоги, пожалуйста, разобраться. Это моя первая настройка flexget.
Где ошибка, почему у меня не скачиваются торрент файлы?

  1. RSS не содержит ссылки на файлы торрентов
  2. не указаны настройки для transmission (или чем вы собираетесь качать?)

Вот набросал по образу своих конфигов - проверь так

lostfilm_config.yml

variables: secretfile.yml
templates:
  tvshows:
    thetvdb_lookup: yes
    set:
      path: /volume1/video_1/test/{{series_name|replace(' ', '.')}}/Season.{{series_season}}
      label: TV Shows
    transmission:
      host: '{? transmission.host ?}'
      port: 9091
      username: '{? transmission.username ?}'
      password: '{? transmission.password ?}'
    #series_premiere: no
tasks:
  lostfilm:
    template: [tvshows]
    headers:
      cookie: '{? lostfilm.cookie ?}'
    rss: '{? lostfilm.RSS ?}'
    manipulate:
      - title:
          replace:
            regexp: '[^a-zA-Z0-9()]+|\bPilot\b'
            format: ''
    include: lostfilm_series.yml

secretfile.yml

series:
  '1080p':
    - 'Fargo'

lostfilm_series.yml

transmission:
  host: 192.168.1.XX
  username: XX
  password: YY
lostfilm:
  cookie: uid=XXXXXX;usess=YYYYYYYYYYYYYYYy
  RSS: 'http://n.retre.org/rssdd.xml'
  regexp: 'https://www.lostfilm.tv/download.php\?(?P<details>.*)' 
  format: 'http://old.lostfilm.tv/download.php?\g<details>'

@superjerrry
Copy link

superjerrry commented Oct 18, 2020

Добрый день,а как убрать с имени файла 1080p.rus.LostFilm.TV.mkv

@leaf-avf
Copy link

а как убрать с имени файла 1080p.rus.LostFilm.TV.mkv

Regexp - replace
Пример выше

@superjerrry
Copy link

а как убрать с имени файла 1080p.rus.LostFilm.TV.mkv

Regexp - replace
Пример выше

Спасибо за ответ
если про эту секцию
manipulate:
- title:
replace:
я так понял она редактирует title например Звездный путь: Дискавери (Star Trek: Discovery). Эта надежда-вы (S03E01) [1080p]
внем нет самого файла Star.Trek.Discovery.S03E01.1080p.rus.LostFilm.TV.mkv и соответсвенно и не получится заменить ?
писал так
replace:
regexp: '.1080p.rus.LostFilm.TV'
format: ''
на имя файла не повлияло

@tvister
Copy link

tvister commented Jun 4, 2021

У lostfilm rss insearch.site/rssdd.xml лента сломалась, возможно что то делают, по логам последний раз работала 2021-06-02 22:30 в 2021-06-02 23:00 уже была сломана в данный момент 21-06-04 14:50 ошибка
`This page contains the following errors:
error on line 27 at column 36: xmlParseEntityRef: no name
Below is a rendering of the page up to the first error.

LostFilm.TV Новинки от LostFilm.TV https://www.lostfilm.tv/ Fri, 04 Jun 2021 10:04:35 +0000 ru Корона (The Crown). Виндзор (S01E03) [MP4] [MP4] Fri, 04 Jun 2021 10:04:21 +0000 http://n.tracktor.site/rssdownloader.php?id=45048 Корона (The Crown). Виндзор (S01E03) [1080p] [1080p] Fri, 04 Jun 2021 10:04:21 +0000 http://n.tracktor.site/rssdownloader.php?id=45047 Корона (The Crown). Виндзор (S01E03) [SD] [SD] Fri, 04 Jun 2021 10:04:21 +0000 http://n.tracktor.site/rssdownloader.php?id=45046`

@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