Advertisement
Guest User

11

a guest
Feb 3rd, 2017
506
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.34 KB | None | 0 0
  1. variables: private/secretfile.yml
  2. schedules:
  3.   - tasks: '*'
  4.     interval:
  5.       hours: 1
  6. templates:  
  7.   tvshows:
  8.     template: False
  9.     plugin_priority:
  10.       manipulate: 0
  11.       set: 1
  12.     thetvdb_lookup: yes
  13.     set:
  14.       title1: "{{ title }}"
  15.       title2: "{{ title }}"
  16.     content_size: {max: 4300}
  17.     deluge:
  18.       host: '{? delugelogin.host ?}'
  19.       username: '{? delugelogin.name ?}'
  20.       password: '{? delugelogin.pass ?}'
  21.       ratio: 0
  22.       removeatratio: yes
  23.       content_filename: "{{series_episode|pad(2)}} - {{title1}} - {{ quality|upper }}"
  24.       path: /DataVolume/shares/Serials/{{title2}}/Сезон {{series_season}}/
  25.       label: tv
  26.     manipulate:
  27.       - title2:
  28.           replace:
  29.             regexp: \((.*)\)
  30.             format: ''
  31.       - title1:
  32.           replace:
  33.             regexp: ^[a-zA-Zа-яА-Я(.' ]*\)?
  34.             format: ''
  35.       - title1:
  36.           replace:
  37.             regexp: ([a-zA-Z0-9_/[\]().]+)
  38.             format: ''
  39.   notifycation2:
  40.     notify:
  41.       entries:
  42.         message: |+
  43.          *{{series_name}}*
  44.         via:
  45.           - telegram:
  46.              bot_token: '{? telegram.bot_token ?}'
  47.              parse_mode: markdown
  48.              recipients:
  49.                - username: '{? telegram.username ?}'
  50.   notifycation1:
  51.     make_html:
  52.       file: /var/www/flexget.html
  53.       template: temp.html
  54.     thetvdb_lookup: yes
  55.     metainfo_series: yes
  56.     notify:
  57.       entries:
  58.         title: "{{title2}} - Сезон {{series_season}}"
  59.         message: "Загружается: {{series_episode|pad(2)}} - {{title1}}"
  60.         via:
  61.           - pushbullet:
  62.               api_key: '{? pushbullet.apikey ?}'
  63. tasks:
  64.   lostfilm:
  65.     template:
  66.      - tvshows
  67.       - notifycation1
  68.       - notifycation2
  69.     headers:
  70.       cookie: '{? lostfilm.cookie ?}'
  71.     rss: '{? RRSUrls.lostfilm ?}'
  72.     verify_ssl_certificates: no
  73.     urlrewrite:
  74.       newlost:  
  75.         regexp: 'https://www.lostfilm.tv/download.php\?(?P<details>.*)'
  76.         format: 'http://old.lostfilm.tv/download.php?\g<details>'
  77.     manipulate:
  78.       - title:
  79.           replace:
  80.             regexp: \)\.\s\(
  81.             format: ') [webdl 480p]. ('
  82.       - title:
  83.           replace:
  84.             regexp: '[0-9]\.\s\('
  85.             format: ') [webdl 480p]. ('
  86.     include: private/series_lostfilm.yml
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement